style-child-theme-editor.scss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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. * Vendors
  25. * - Styles for 3rd party plugins and WP extensions
  26. */
  27. @import "../../varia/sass/vendors/editor";
  28. /**
  29. * Blocks
  30. * - These styles replace key Gutenberg Block styles for fonts, colors, and
  31. * spacing with CSS-variables overrides
  32. */
  33. @import "../../varia/sass/blocks/editor";
  34. /**
  35. * Extras
  36. */
  37. $font_size_xxxxl: map-deep-get($config-global, "font", "size", "xxxxl");
  38. $font_size_xxxl: map-deep-get($config-global, "font", "size", "xxxl");
  39. $font_size_xxl: map-deep-get($config-global, "font", "size", "xxl");
  40. $font_size_xl: map-deep-get($config-global, "font", "size", "xl");
  41. $font_size_lg: map-deep-get($config-global, "font", "size", "lg");
  42. $font_size_md: map-deep-get($config-global, "font", "size", "md");
  43. html,
  44. body {
  45. font-weight: 300;
  46. }
  47. b, strong {
  48. font-weight: 700;
  49. }
  50. .editor-post-title__block .editor-post-title__input {
  51. font-weight: 300;
  52. text-align: center;
  53. font-size: (strip-unit( $font_size_xxl ) + 0em);
  54. @include media(laptop) {
  55. font-size: (strip-unit( $font_size_xxxxl ) + 0em);
  56. }
  57. }
  58. .wp-block-cover,
  59. .wp-block-cover-image {
  60. h1,h2,h3,h4,h5,h6 {
  61. font-weight: 300;
  62. }
  63. // Only use a text shadow if there's a background image or video.
  64. &[style*="background-image"],
  65. video + .wp-block-cover__inner-container {
  66. p {
  67. text-shadow: 0 0 6px #000
  68. }
  69. h1,h2,h3,h4,h5,h6 {
  70. font-weight: 300;
  71. text-shadow: 0 0 12px #000;
  72. }
  73. }
  74. @include media(desktop) {
  75. min-height: #{20 * map-deep-get($config-global, "spacing", "vertical")};
  76. h1 {
  77. font-size: (strip-unit( $font_size_xxxxl ) + 0em);
  78. }
  79. h2 {
  80. font-size: (strip-unit( $font_size_xxxl ) + 0em);
  81. }
  82. h3 {
  83. font-size: (strip-unit( $font_size_xxl ) + 0em);
  84. }
  85. h4 {
  86. font-size: (strip-unit( $font_size_xl ) + 0em);
  87. }
  88. h5 {
  89. font-size: (strip-unit( $font_size_lg ) + 0em);
  90. }
  91. h6 {
  92. font-size: (strip-unit( $font_size_md ) + 0em);
  93. }
  94. }
  95. }
  96. .wp-block-a8c-blog-posts {
  97. .entry-title {
  98. font-weight: 300;
  99. a {
  100. color: inherit;
  101. &:hover {
  102. text-decoration: none;
  103. }
  104. }
  105. }
  106. .cat-links a,
  107. .more-link,
  108. .entry-meta a {
  109. text-decoration: none;
  110. &:hover {
  111. text-decoration: underline;
  112. }
  113. }
  114. &.image-alignbehind article {
  115. .entry-title a:hover {
  116. text-decoration: underline;
  117. }
  118. }
  119. }
  120. .has-background:not(.has-background-background-color),
  121. [class*="background-color"]:not(.has-background-background-color),
  122. [style*="background-color"] {
  123. .wp-block-a8c-blog-posts {
  124. .entry-title a:hover {
  125. text-decoration: underline;
  126. }
  127. }
  128. }
  129. .wp-block-a8c-blog-posts + .button {
  130. font-size: (strip-unit(map-deep-get($config-global, "font", "size", "sm")) + 0em);
  131. }
  132. /**
  133. * Full Site Editing
  134. * - Full Site Editing overrides
  135. */
  136. @import "full-site-editing-editor";