style-child-theme-editor.scss 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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__block .editor-post-title__input {
  33. font-weight: 600;
  34. }
  35. .wp-block-media-text {
  36. background: #{map-deep-get($config-global, "color", "secondary", "default")};
  37. color: #{map-deep-get($config-global, "color", "background", "default")};
  38. &.is-style-inset-borders:before {
  39. border-color: #{map-deep-get($config-global, "color", "background", "default")};
  40. }
  41. }
  42. .wp-block-a8c-blog-posts {
  43. .cat-links a,
  44. .entry-title a:hover,
  45. .more-link,
  46. .entry-meta a {
  47. text-decoration: none;
  48. }
  49. &.image-alignbehind {
  50. .cat-links a:hover,
  51. .entry-title a:hover,
  52. .more-link:hover,
  53. .entry-meta a:hover {
  54. text-decoration: underline;
  55. }
  56. }
  57. }
  58. .has-background:not(.has-background-background-color),
  59. [class*="background-color"]:not(.has-background-background-color),
  60. [style*="background-color"] {
  61. .wp-block-a8c-blog-posts {
  62. .cat-links a:hover,
  63. .entry-title a:hover,
  64. .more-link:hover,
  65. .emtry-meta a:hover {
  66. text-decoration: underline;
  67. }
  68. }
  69. }
  70. .wp-block-a8c-blog-posts + .button {
  71. font-size: (strip-unit(map-deep-get($config-global, "font", "size", "base")) + 0em);
  72. }