style-child-theme-editor.scss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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. .editor-post-title__input {
  33. text-align: center;
  34. }
  35. // Cover
  36. $font_size_xxxxl: map-deep-get($config-global, "font", "size", "xxxxl");
  37. $font_size_xxxl: map-deep-get($config-global, "font", "size", "xxxl");
  38. $font_size_xxl: map-deep-get($config-global, "font", "size", "xxl");
  39. $font_size_xl: map-deep-get($config-global, "font", "size", "xl");
  40. $font_size_lg: map-deep-get($config-global, "font", "size", "lg");
  41. $font_size_md: map-deep-get($config-global, "font", "size", "md");
  42. .wp-block-cover,
  43. .wp-block-cover-image {
  44. h1 {
  45. font-size: (strip-unit( $font_size_xxxxl ) + 0em);
  46. }
  47. h2 {
  48. font-size: (strip-unit( $font_size_xxxl ) + 0em);
  49. }
  50. h3 {
  51. font-size: (strip-unit( $font_size_xxl ) + 0em);
  52. }
  53. h4 {
  54. font-size: (strip-unit( $font_size_xl ) + 0em);
  55. }
  56. h5 {
  57. font-size: (strip-unit( $font_size_lg ) + 0em);
  58. }
  59. h6 {
  60. font-size: (strip-unit( $font_size_md ) + 0em);
  61. }
  62. @include media(mobile) {
  63. min-height: 60vh;
  64. }
  65. @include media(laptop) {
  66. min-height: 80vh;
  67. }
  68. }
  69. .wp-block-a8c-blog-posts {
  70. .entry-title a {
  71. color: inherit;
  72. }
  73. .cat-links a,
  74. .entry-title a:hover,
  75. .entry-meta a {
  76. text-decoration: none;
  77. }
  78. &.image-alignbehind {
  79. .cat-links a:hover,
  80. .entry-title a:hover,
  81. .entry-meta a:hover {
  82. text-decoration: underline;
  83. }
  84. }
  85. }
  86. .has-background:not(.has-background-background-color),
  87. [class*="background-color"]:not(.has-background-background-color),
  88. [style*="background-color"] {
  89. .wp-block-a8c-blog-posts {
  90. .cat-links a:hover,
  91. .entry-title a:hover,
  92. .entry-meta a:hover {
  93. text-decoration: underline;
  94. }
  95. }
  96. }
  97. .wp-block-a8c-blog-posts + .button {
  98. font-size: (strip-unit(map-deep-get($config-global, "font", "size", "sm")) + 0em);
  99. }
  100. /**
  101. * Full Site Editing
  102. * - Full Site Editing overrides
  103. */
  104. @import "full-site-editing-editor";