style-child-theme-editor.scss 2.3 KB

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