style-child-theme-editor.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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. * Vendors
  31. * - Styles for 3rd party plugins and WP extensions
  32. */
  33. @import "../../varia/sass/vendors/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. .wp-block-cover,
  44. .wp-block-cover-image {
  45. h1,h2,h3,h4,h5,h6 {
  46. font-weight: 700;
  47. }
  48. @include media(desktop) {
  49. min-height: #{20 * map-deep-get($config-global, "spacing", "vertical")};
  50. h1 {
  51. font-size: (strip-unit( $font_size_xxxxl ) + 0em);
  52. }
  53. h2 {
  54. font-size: (strip-unit( $font_size_xxxl ) + 0em);
  55. }
  56. h3 {
  57. font-size: (strip-unit( $font_size_xxl ) + 0em);
  58. }
  59. h4 {
  60. font-size: (strip-unit( $font_size_xl ) + 0em);
  61. }
  62. h5 {
  63. font-size: (strip-unit( $font_size_lg ) + 0em);
  64. }
  65. h6 {
  66. font-size: (strip-unit( $font_size_md ) + 0em);
  67. }
  68. }
  69. }
  70. .wp-block-a8c-blog-posts {
  71. .entry-title a {
  72. color: inherit;
  73. &:active,
  74. &:focus,
  75. &:hover {
  76. text-decoration: none;
  77. color: #{map-deep-get($config-global, "color", "primary", "default")};
  78. }
  79. }
  80. .cat-links a,
  81. .more-link,
  82. .entry-meta a {
  83. text-decoration: none;
  84. &:active,
  85. &:focus,
  86. &:hover {
  87. text-decoration: underline;
  88. }
  89. }
  90. &.image-alignbehind article {
  91. .entry-title a {
  92. &:active,
  93. &:focus,
  94. &:hover {
  95. text-decoration: underline;
  96. }
  97. }
  98. }
  99. }
  100. .has-background:not(.has-background-background-color),
  101. [class*="background-color"]:not(.has-background-background-color),
  102. [style*="background-color"] {
  103. .wp-block-a8c-blog-posts {
  104. .entry-title a{
  105. &:active,
  106. &:focus,
  107. &:hover {
  108. text-decoration: underline;
  109. }
  110. }
  111. }
  112. }
  113. .wp-block-a8c-blog-posts + .button {
  114. font-size: (strip-unit(map-deep-get($config-global, "font", "size", "base")) + 0em);
  115. }