style-child-theme-editor.scss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. /**
  2. * These styles should be loaded by the Block Editor only
  3. */
  4. /**
  5. * Abstracts
  6. * - Mixins, variables and functions
  7. */
  8. @import "../../varia/sass/abstracts/imports";
  9. /**
  10. * Global variables
  11. */
  12. @import "global-variables";
  13. :root, body {
  14. @include global-variables();
  15. }
  16. /**
  17. * Child Theme Name
  18. */
  19. @import "config-child-theme-deep";
  20. /**
  21. * Base
  22. * - Reset the browser
  23. */
  24. @import "../../varia/sass/base/editor";
  25. /**
  26. * Elements
  27. * - Styles for basic HTML elemants
  28. */
  29. @import "../../varia/sass/elements/editor";
  30. /**
  31. * Blocks
  32. * - These styles replace key Gutenberg Block styles for fonts, colors, and
  33. * spacing with CSS-variables overrides
  34. */
  35. @import "../../varia/sass/blocks/editor";
  36. /**
  37. * Vendors
  38. * - Styles for 3rd party plugins and WP extensions
  39. */
  40. @import "../../varia/sass/vendors/editor";
  41. /**
  42. * Extras
  43. */
  44. .editor-post-title__input {
  45. text-align: center;
  46. }
  47. .wp-block-a8c-blog-posts {
  48. .entry-title a {
  49. color: inherit;
  50. &:active,
  51. &:focus,
  52. &:hover {
  53. text-decoration: none;
  54. color: #{map-deep-get($config-global, "color", "primary", "default")};
  55. }
  56. }
  57. .cat-links a,
  58. .more-link,
  59. .entry-meta a {
  60. text-decoration: none;
  61. &:active,
  62. &:focus,
  63. &:hover {
  64. text-decoration: underline;
  65. }
  66. }
  67. &.image-alignbehind article {
  68. .entry-title a {
  69. &:active,
  70. &:focus,
  71. &:hover {
  72. text-decoration: underline;
  73. }
  74. }
  75. }
  76. }
  77. .has-background:not(.has-background-background-color),
  78. [class*="background-color"]:not(.has-background-background-color),
  79. [style*="background-color"] {
  80. .wp-block-a8c-blog-posts {
  81. .entry-title a:hover {
  82. text-decoration: underline;
  83. }
  84. }
  85. }
  86. .wp-block-a8c-blog-posts + .button {
  87. font-size: (strip-unit(map-deep-get($config-global, "font", "size", "base")) + 0em);
  88. }
  89. /**
  90. * Full Site Editing
  91. * - Full Site Editing overrides
  92. */
  93. @import "full-site-editing-editor";