style-child-theme-editor.scss 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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. * Child Theme Name
  11. */
  12. @import "config-child-theme-deep";
  13. /**
  14. * Base
  15. * - Reset the browser
  16. */
  17. @import "../../varia/sass/base/editor";
  18. /**
  19. * Elements
  20. * - Styles for basic HTML elemants
  21. */
  22. @import "../../varia/sass/elements/editor";
  23. /**
  24. * Blocks
  25. * - These styles replace key Gutenberg Block styles for fonts, colors, and
  26. * spacing with CSS-variables overrides
  27. */
  28. @import "../../varia/sass/blocks/editor";
  29. /**
  30. * Extras
  31. */
  32. $color_background: #{map-deep-get($config-global, "color", "background", "default")};
  33. $color_background_light: #{map-deep-get($config-global, "color", "background", "light")};
  34. $color_foreground: #{map-deep-get($config-global, "color", "foreground", "default")};
  35. $color_primary: #{map-deep-get($config-global, "color", "primary", "default")};
  36. $color_secondary: #{map-deep-get($config-global, "color", "secondary", "default")};
  37. $color_primary_hover: #{map-deep-get($config-global, "color", "primary", "hover")};
  38. $color_secondary_hover: #{map-deep-get($config-global, "color", "secondary", "hover")};
  39. $spacing_horizontal: #{map-deep-get($config-global, "spacing", "horizontal")};
  40. $spacing_vertical: #{map-deep-get($config-global, "spacing", "vertical")};
  41. $font_size_xs: #{map-deep-get($config-global, "font", "size", "xs")};
  42. $font_size_sm: #{map-deep-get($config-global, "font", "size", "sm")};
  43. $font_size_md: #{map-deep-get($config-global, "font", "size", "md")};
  44. $font_size_base: #{map-deep-get($config-global, "font", "size", "base")};
  45. $font_size_lg: #{map-deep-get($config-global, "font", "size", "lg")};
  46. $font_size_xl: #{map-deep-get($config-global, "font", "size", "xl")};
  47. $font_family_primary: #{map-deep-get($config-global, "font", "family", "primary")};
  48. $font_family_secondary: #{map-deep-get($config-global, "font", "family", "secondary")};
  49. $font_family_code: #{map-deep-get($config-global, "font", "family", "code")};
  50. $font_line_height_body: #{map-deep-get($config-global, "font", "line-height", "body")};
  51. $button_line_height: #{map-deep-get($config-button, "font", "line-height")};
  52. $button_font_weight: #{map-deep-get($config-button, "font", "weight")};
  53. $button_font_family: #{map-deep-get($config-button, "font", "family")};
  54. $button_font_size: #{map-deep-get($config-button, "font", "size")};
  55. $button_spacing_vertical: #{map-deep-get($config-button, "padding", "vertical")};
  56. $button_spacing_horizontal: #{map-deep-get($config-button, "padding", "horizontal")};
  57. $button_background_hover: #{map-deep-get($config-button, "color", "background-hover")};
  58. $font_size_widget_title: #{map-deep-get($config-heading, "font", "size", "h4")};
  59. .editor-post-title__input {
  60. text-align: center;
  61. }
  62. /**
  63. * 1. General Styles
  64. */
  65. a {
  66. text-decoration: none;
  67. .wp-block-group &,
  68. .wp-block-cover &,
  69. .wp-block-cover-image &,
  70. .wp-block-media-text &,
  71. p:not(.site-title) & {
  72. text-decoration: underline;
  73. &.wp-block-button__link,
  74. &:hover {
  75. text-decoration: none;
  76. }
  77. }
  78. }
  79. .has-background {
  80. a {
  81. color: currentColor;
  82. }
  83. }
  84. .wp-block-a8c-blog-posts {
  85. .entry-title a {
  86. &:active,
  87. &:focus,
  88. &:hover {
  89. text-decoration: none;
  90. }
  91. }
  92. .cat-links a,
  93. .more-link,
  94. .entry-meta a {
  95. text-decoration: none;
  96. &:active,
  97. &:focus,
  98. &:hover {
  99. text-decoration: underline;
  100. }
  101. }
  102. &.image-alignbehind article {
  103. .entry-title a {
  104. &:active,
  105. &:focus,
  106. &:hover {
  107. text-decoration: underline;
  108. }
  109. }
  110. }
  111. }
  112. .has-background:not(.has-background-background-color),
  113. [class*="background-color"]:not(.has-background-background-color),
  114. [style*="background-color"] {
  115. .wp-block-a8c-blog-posts {
  116. .entry-title a{
  117. text-decoration: none;
  118. &:active,
  119. &:focus,
  120. &:hover {
  121. text-decoration: underline;
  122. }
  123. }
  124. }
  125. }
  126. .wp-block-a8c-blog-posts + .button {
  127. font-size: (strip-unit(map-deep-get($config-global, "font", "size", "sm")) + 0em);
  128. }
  129. /**
  130. * Full Site Editing
  131. * - Full Site Editing overrides
  132. */
  133. @import "full-site-editing-editor";