style-child-theme-editor.scss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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. * Global variables
  11. */
  12. @import "global-variables";
  13. :root, body {
  14. @include global-variables();
  15. }
  16. /**
  17. * Child Theme Name
  18. */
  19. @import "config-child-theme-deep";
  20. /**
  21. * Base
  22. * - Reset the browser
  23. */
  24. @import "../../varia/sass/base/editor";
  25. /**
  26. * Elements
  27. * - Styles for basic HTML elemants
  28. */
  29. @import "../../varia/sass/elements/editor";
  30. /**
  31. * Blocks
  32. * - These styles replace key Gutenberg Block styles for fonts, colors, and
  33. * spacing with CSS-variables overrides
  34. */
  35. @import "../../varia/sass/blocks/editor";
  36. /**
  37. * Vendors
  38. * - Styles for 3rd party plugins and WP extensions
  39. */
  40. @import "../../varia/sass/vendors/editor";
  41. /**
  42. * Extras
  43. */
  44. .editor-post-title__input {
  45. text-align: center;
  46. }
  47. .wp-block-a8c-blog-posts {
  48. .entry-title a {
  49. color: inherit;
  50. &:active,
  51. &:focus,
  52. &:hover {
  53. color: #{map-deep-get($config-global, "color", "primary", "default")};
  54. }
  55. }
  56. .cat-links a,
  57. .entry-title a:hover,
  58. .entry-meta a {
  59. text-decoration: none;
  60. }
  61. &.image-alignbehind {
  62. .cat-links a:hover,
  63. .entry-title a:hover,
  64. .entry-meta a:hover {
  65. text-decoration: underline;
  66. }
  67. }
  68. }
  69. .has-background:not(.has-background-background-color),
  70. [class*="background-color"]:not(.has-background-background-color),
  71. [style*="background-color"] {
  72. .wp-block-a8c-blog-posts {
  73. .cat-links a:hover,
  74. .entry-title a:hover,
  75. .entry-meta a:hover {
  76. text-decoration: underline;
  77. }
  78. }
  79. }
  80. .wp-block-a8c-blog-posts + .button {
  81. font-size: (strip-unit(map-deep-get($config-global, "font", "size", "base")) + 0em);
  82. }
  83. /**
  84. * Full Site Editing
  85. * - Full Site Editing overrides
  86. */
  87. @import "full-site-editing-editor";