style-child-theme-editor.scss 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. $color_background: #{map-deep-get($config-global, "color", "background", "default")};
  33. $color_background_light: #{map-deep-get($config-global, "color", "background", "light")};
  34. $color_foreground: #{map-deep-get($config-global, "color", "foreground", "default")};
  35. $color_primary: #{map-deep-get($config-global, "color", "primary", "default")};
  36. $color_secondary: #{map-deep-get($config-global, "color", "secondary", "default")};
  37. $color_primary_hover: #{map-deep-get($config-global, "color", "primary", "hover")};
  38. $color_secondary_hover: #{map-deep-get($config-global, "color", "secondary", "hover")};
  39. $spacing_horizontal: #{map-deep-get($config-global, "spacing", "horizontal")};
  40. $spacing_vertical: #{map-deep-get($config-global, "spacing", "vertical")};
  41. $font_size_xs: #{map-deep-get($config-global, "font", "size", "xs")};
  42. $font_size_sm: #{map-deep-get($config-global, "font", "size", "sm")};
  43. $font_size_md: #{map-deep-get($config-global, "font", "size", "md")};
  44. $font_size_base: #{map-deep-get($config-global, "font", "size", "base")};
  45. $font_size_lg: #{map-deep-get($config-global, "font", "size", "lg")};
  46. $font_size_xl: #{map-deep-get($config-global, "font", "size", "xl")};
  47. $font_family_primary: #{map-deep-get($config-global, "font", "family", "primary")};
  48. $font_family_secondary: #{map-deep-get($config-global, "font", "family", "secondary")};
  49. $font_family_code: #{map-deep-get($config-global, "font", "family", "code")};
  50. $font_line_height_body: #{map-deep-get($config-global, "font", "line-height", "body")};
  51. $button_line_height: #{map-deep-get($config-button, "font", "line-height")};
  52. $button_font_weight: #{map-deep-get($config-button, "font", "weight")};
  53. $button_font_family: #{map-deep-get($config-button, "font", "family")};
  54. $button_font_size: #{map-deep-get($config-button, "font", "size")};
  55. $button_spacing_vertical: #{map-deep-get($config-button, "padding", "vertical")};
  56. $button_spacing_horizontal: #{map-deep-get($config-button, "padding", "horizontal")};
  57. $button_background_hover: #{map-deep-get($config-button, "color", "background-hover")};
  58. $font_size_widget_title: #{map-deep-get($config-heading, "font", "size", "h4")};
  59. .editor-post-title__input {
  60. text-align: center;
  61. }
  62. /**
  63. * 1. General Styles
  64. */
  65. a {
  66. text-decoration: none;
  67. .wp-block-group &,
  68. .wp-block-cover &,
  69. .wp-block-cover-image &,
  70. .wp-block-media-text &,
  71. p:not(.site-title) & {
  72. text-decoration: underline;
  73. &.wp-block-button__link,
  74. &:hover {
  75. text-decoration: none;
  76. }
  77. }
  78. }
  79. .has-background {
  80. a {
  81. color: currentColor;
  82. }
  83. }