style-child-theme-editor.scss 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. }