style-child-theme-editor.scss 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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. .wp-block-a8c-blog-posts {
  42. .entry-title a {
  43. &:active,
  44. &:focus,
  45. &:hover {
  46. text-decoration: none;
  47. }
  48. }
  49. .cat-links a,
  50. .more-link,
  51. .entry-meta a {
  52. text-decoration: none;
  53. &:active,
  54. &:focus,
  55. &:hover {
  56. text-decoration: underline;
  57. }
  58. }
  59. &.image-alignbehind article {
  60. .entry-title a {
  61. &:active,
  62. &:focus,
  63. &:hover {
  64. text-decoration: underline;
  65. }
  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. .entry-title a{
  74. &:active,
  75. &:focus,
  76. &:hover {
  77. text-decoration: underline;
  78. }
  79. }
  80. }
  81. }
  82. .wp-block-a8c-blog-posts + .button {
  83. font-size: (strip-unit(map-deep-get($config-global, "font", "size", "sm")) + 0em);
  84. }
  85. /**
  86. * Extras
  87. */
  88. .editor-post-title__input {
  89. text-align: center;
  90. }
  91. /**
  92. * Full Site Editing
  93. * - Full Site Editing overrides
  94. */
  95. @import "full-site-editing-editor";