style-child-theme-editor.scss 1.5 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. //@import "config-child-theme";
  14. /**
  15. * Base
  16. * - Reset the browser
  17. */
  18. @import "../../varia/sass/base/editor";
  19. /**
  20. * Elements
  21. * - Styles for basic HTML elemants
  22. */
  23. @import "../../varia/sass/elements/editor";
  24. /**
  25. * Blocks
  26. * - These styles replace key Gutenberg Block styles for fonts, colors, and
  27. * spacing with CSS-variables overrides
  28. */
  29. @import "../../varia/sass/blocks/editor";
  30. /**
  31. * Vendors
  32. * - Styles for 3rd party plugins and WP extensions
  33. */
  34. @import "../../varia/sass/vendors/editor";
  35. /**
  36. * Extras
  37. */
  38. .has-small-font-size {
  39. @include font-family( map-deep-get($config-global, "font", "family", "primary") );
  40. }
  41. .wp-block-a8c-blog-posts {
  42. .cat-links a,
  43. .entry-title a:hover,
  44. .entry-meta a {
  45. text-decoration: none;
  46. }
  47. &.image-alignbehind {
  48. .cat-links a:hover,
  49. .entry-title a:hover,
  50. .entry-meta a:hover {
  51. text-decoration: underline;
  52. }
  53. }
  54. .more-link:hover {
  55. color: inherit;
  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. .entry-meta a:hover {
  65. text-decoration: underline;
  66. }
  67. }
  68. }
  69. .wp-block-a8c-blog-posts + .button {
  70. font-size: (strip-unit(map-deep-get($config-global, "font", "size", "md")) + 0em);
  71. }