_editor.scss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. @import "../components/header/header";
  2. @import "../components/footer/footer";
  3. .template-block {
  4. .site-header,
  5. .site-footer {
  6. padding: #{map-deep-get($config-global, "spacing", "unit")};
  7. @include media(mobile) {
  8. padding: #{map-deep-get($config-global, "spacing", "vertical")} 0;
  9. }
  10. }
  11. .wp-block-cover,
  12. .wp-block-cover-image {
  13. .site-title,
  14. .site-description {
  15. background: transparent;
  16. color: inherit;
  17. }
  18. }
  19. }
  20. .a8c-template-editor {
  21. .wp-block-cover,
  22. .wp-block-cover-image {
  23. .site-title,
  24. .site-description {
  25. background: transparent;
  26. color: inherit;
  27. }
  28. }
  29. }
  30. .site-header {
  31. .site-title {
  32. font-size: 21.6px;
  33. font-weight: 700;
  34. text-decoration: underline;
  35. }
  36. .site-description {
  37. font-size: 15px;
  38. }
  39. .main-navigation {
  40. @import "../blocks/button/style";
  41. }
  42. }
  43. .post-content__block {
  44. margin-bottom: 160px;
  45. margin-top: 36px;
  46. // Minimum z-index to appear above the Template block overlay.
  47. // @see https://github.com/WordPress/gutenberg/blob/f198997e2c8e377423beb230ce5283914076d396/packages/block-editor/src/components/block-list/style.scss#L495-L496
  48. // @see https://github.com/WordPress/gutenberg/blob/f198997e2c8e377423beb230ce5283914076d396/assets/stylesheets/_z-index.scss#L8
  49. z-index: 20;
  50. }
  51. .site-footer {
  52. @include media(tablet) {
  53. display: block;
  54. }
  55. .main-navigation {
  56. @extend .footer-navigation;
  57. .footer-menu {
  58. color: inherit;
  59. }
  60. display: block;
  61. & > div {
  62. display: block;
  63. }
  64. .hide-visually,
  65. #toggle-menu {
  66. display: none;
  67. }
  68. @include media(mobile-only) {
  69. > div {
  70. display: block;
  71. }
  72. li {
  73. width: auto;
  74. .sub-menu {
  75. display: none;
  76. }
  77. }
  78. }
  79. }
  80. }
  81. .site-header,
  82. .site-footer {
  83. .site-title,
  84. .site-description {
  85. &.has-background {
  86. border-radius: 0;
  87. padding: #{map-deep-get($config-global, "spacing", "unit")};
  88. }
  89. }
  90. .main-navigation {
  91. .main-menu.footer-menu li {
  92. a {
  93. font-size: inherit;
  94. }
  95. &.menu-item-has-children > a::after {
  96. font-size: 0.6em;
  97. vertical-align: middle;
  98. }
  99. }
  100. .has-text-color > .main-menu.footer-menu > li > a {
  101. color: inherit;
  102. }
  103. .has-text-align-left > .main-menu.footer-menu {
  104. justify-content: flex-start;
  105. }
  106. .has-text-align-center > .main-menu.footer-menu {
  107. justify-content: center;
  108. }
  109. .has-text-align-right > .main-menu.footer-menu {
  110. justify-content: flex-end;
  111. }
  112. .has-background > .main-menu.footer-menu {
  113. padding: #{map-deep-get($config-global, "spacing", "unit")};
  114. }
  115. }
  116. }