style-child-theme-editor.scss 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. $font_size_xxxxl: map-deep-get($config-global, "font", "size", "xxxxl");
  33. $font_size_xxxl: map-deep-get($config-global, "font", "size", "xxxl");
  34. $font_size_xxl: map-deep-get($config-global, "font", "size", "xxl");
  35. $font_size_xl: map-deep-get($config-global, "font", "size", "xl");
  36. $font_size_lg: map-deep-get($config-global, "font", "size", "lg");
  37. $font_size_md: map-deep-get($config-global, "font", "size", "md");
  38. .wp-block-cover,
  39. .wp-block-cover-image {
  40. h1,h2,h3,h4,h5,h6 {
  41. font-weight: 700;
  42. }
  43. @include media(desktop) {
  44. min-height: #{20 * map-deep-get($config-global, "spacing", "vertical")};
  45. h1 {
  46. font-size: (strip-unit( $font_size_xxxxl ) + 0em);
  47. }
  48. h2 {
  49. font-size: (strip-unit( $font_size_xxxl ) + 0em);
  50. }
  51. h3 {
  52. font-size: (strip-unit( $font_size_xxl ) + 0em);
  53. }
  54. h4 {
  55. font-size: (strip-unit( $font_size_xl ) + 0em);
  56. }
  57. h5 {
  58. font-size: (strip-unit( $font_size_lg ) + 0em);
  59. }
  60. h6 {
  61. font-size: (strip-unit( $font_size_md ) + 0em);
  62. }
  63. }
  64. }