style-child-theme-editor.scss 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. .wp-block-a8c-blog-posts {
  36. .entry-title a {
  37. color: inherit;
  38. &:active,
  39. &:focus,
  40. &:hover {
  41. text-decoration: none;
  42. color: #{map-deep-get($config-global, "color", "primary", "default")};
  43. }
  44. }
  45. .cat-links a,
  46. .more-link,
  47. .entry-meta a {
  48. text-decoration: none;
  49. &:active,
  50. &:focus,
  51. &:hover {
  52. text-decoration: underline;
  53. }
  54. }
  55. &.image-alignbehind article {
  56. .entry-title a {
  57. &:active,
  58. &:focus,
  59. &:hover {
  60. text-decoration: underline;
  61. }
  62. }
  63. }
  64. }
  65. .has-background:not(.has-background-background-color),
  66. [class*="background-color"]:not(.has-background-background-color),
  67. [style*="background-color"] {
  68. .wp-block-a8c-blog-posts {
  69. .entry-title a:hover {
  70. text-decoration: underline;
  71. }
  72. }
  73. }
  74. .wp-block-a8c-blog-posts + .button {
  75. font-size: (strip-unit(map-deep-get($config-global, "font", "size", "base")) + 0em);
  76. }
  77. /**
  78. * Full Site Editing
  79. * - Full Site Editing overrides
  80. */
  81. @import "full-site-editing-editor";