style-child-theme-editor.scss 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  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,
  14. body {
  15. @include global-variables();
  16. }
  17. /**
  18. * Child Theme Name
  19. */
  20. @import "config-child-theme-deep";
  21. /**
  22. * Base
  23. * - Reset the browser
  24. */
  25. @import "../../varia/sass/base/editor";
  26. /**
  27. * Elements
  28. * - Styles for basic HTML elemants
  29. */
  30. @import "../../varia/sass/elements/editor";
  31. /**
  32. * Blocks
  33. * - These styles replace key Gutenberg Block styles for fonts, colors, and
  34. * spacing with CSS-variables overrides
  35. */
  36. @import "../../varia/sass/blocks/editor";
  37. /**
  38. * Vendors
  39. * - Styles for 3rd party plugins and WP extensions
  40. */
  41. @import "../../varia/sass/vendors/editor";
  42. /**
  43. * Extra Editor Styles
  44. *
  45. * 1. General Styles
  46. * 2. Block Specific Styles
  47. * 2.1. Column Block
  48. * 2.2. Quote Block
  49. * 2.3. File Block
  50. * 2.4. Pre Block and Verse Block
  51. * 2.5. Button Block
  52. * 2.6. Search Block
  53. */
  54. .editor-post-title__input {
  55. text-align: center;
  56. }
  57. /**
  58. * 1. General Styles
  59. */
  60. body {
  61. background-color: #{map-deep-get($config-global, "color", "white")};
  62. font-weight: 300;
  63. }
  64. a {
  65. text-decoration: none;
  66. }
  67. .block-editor-block-list__layout a:link,
  68. .block-editor-block-list__layout a:active {
  69. text-decoration: underline;
  70. }
  71. .block-editor-block-list__layout a:hover,
  72. .block-editor-block-list__layout a:active {
  73. text-decoration: none;
  74. }
  75. /**
  76. * 2. Block Specific Styles
  77. */
  78. /**
  79. * 2.1. Column Block
  80. */
  81. .wp-block-coblocks-column {
  82. h1,
  83. h2,
  84. h3,
  85. h4,
  86. h5,
  87. h6 {
  88. margin-bottom: 0.857em;
  89. }
  90. a {
  91. color: #{map-deep-get($config-global, "color", "secondary", "default")};
  92. &:hover {
  93. color: #{map-deep-get($config-global, "color", "secondary", "hover")};
  94. }
  95. }
  96. }
  97. /**
  98. * 2.2. Quote Block
  99. */
  100. .wp-block-quote,
  101. .wp-block-quote[style*="text-align:center"],
  102. .wp-block-quote[style*="text-align:right"] {
  103. border: 1px solid #f2f2f2;
  104. padding: #{map-deep-get($config-global, "spacing", "horizontal")};
  105. p {
  106. @include font-family( map-deep-get($config-global, "font", "family", "secondary") );
  107. }
  108. .wp-block-quote__citation {
  109. color: #{map-deep-get($config-global, "color", "secondary", "default")};
  110. }
  111. }
  112. /**
  113. * 2.3. File Block
  114. */
  115. .wp-block-file {
  116. div {
  117. &.wp-block-file__button {
  118. text-transform: uppercase;
  119. line-height: #{map-deep-get($config-button, "font", "line-height")};
  120. color: #{map-deep-get($config-button, "color", "text")};
  121. cursor: pointer;
  122. font-weight: #{map-deep-get($config-button, "font", "weight")};
  123. @include font-family( map-deep-get($config-button, "font", "family") );
  124. font-size: #{map-deep-get($config-button, "font", "size")};
  125. background-color: #{map-deep-get($config-button, "color", "background")};
  126. border-radius: #{map-deep-get($config-button, "border-radius")};
  127. border-width: #{map-deep-get($config-button, "border-width")};
  128. padding: #{map-deep-get($config-button, "padding", "vertical")} #{map-deep-get($config-button, "padding", "horizontal")};
  129. display: inline-block;
  130. &:focus,
  131. &:hover,
  132. &:visited {
  133. color: #{map-deep-get($config-button, "color", "text-hover")};
  134. background-color: #{map-deep-get($config-button, "color", "background-hover")};
  135. opacity: 1;
  136. }
  137. }
  138. }
  139. }
  140. /**
  141. * 2.4. Pre Block and Verse Block
  142. */
  143. .wp-block-preformatted,
  144. .wp-block-verse {
  145. pre {
  146. font-family: #{map-deep-get($config-global, "font", "family", "code") "}";
  147. }
  148. }
  149. /**
  150. * 2.5. Button Block
  151. */
  152. .wp-block-button {
  153. div {
  154. &.wp-block-button__link {
  155. text-transform: uppercase;
  156. }
  157. }
  158. }
  159. /**
  160. * 2.6. Search Block
  161. */
  162. .wp-block-search {
  163. .wp-block-search__button {
  164. text-transform: uppercase;
  165. line-height: #{map-deep-get($config-button, "font", "line-height")};
  166. color: #{map-deep-get($config-button, "color", "text")};
  167. cursor: pointer;
  168. font-weight: #{map-deep-get($config-button, "font", "weight")};
  169. @include font-family( map-deep-get($config-button, "font", "family") );
  170. font-size: #{map-deep-get($config-button, "font", "size")};
  171. background-color: #{map-deep-get($config-button, "color", "background")};
  172. border-radius: #{map-deep-get($config-button, "border-radius")};
  173. border-width: #{map-deep-get($config-button, "border-width")};
  174. padding: #{map-deep-get($config-button, "padding", "vertical")} #{map-deep-get($config-button, "padding", "horizontal")};
  175. display: inline-block;
  176. &:focus,
  177. &:hover,
  178. &:visited {
  179. color: #{map-deep-get($config-button, "color", "text-hover")};
  180. background-color: #{map-deep-get($config-button, "color", "background-hover")};
  181. opacity: 1;
  182. }
  183. border: none;
  184. box-shadow: none;
  185. }
  186. }
  187. .wp-block-a8c-blog-posts {
  188. .entry-title a {
  189. &:active,
  190. &:focus,
  191. &:hover {
  192. text-decoration: none;
  193. }
  194. }
  195. .cat-links a,
  196. .more-link,
  197. .entry-meta a {
  198. text-decoration: none;
  199. &:active,
  200. &:focus,
  201. &:hover {
  202. text-decoration: underline;
  203. }
  204. }
  205. &.image-alignbehind article {
  206. .entry-title a {
  207. &:active,
  208. &:focus,
  209. &:hover {
  210. text-decoration: underline;
  211. }
  212. }
  213. }
  214. }
  215. .has-background:not(.has-background-background-color),
  216. [class*="background-color"]:not(.has-background-background-color),
  217. [style*="background-color"] {
  218. .wp-block-a8c-blog-posts {
  219. .entry-title a {
  220. &:active,
  221. &:focus,
  222. &:hover {
  223. text-decoration: underline;
  224. }
  225. }
  226. }
  227. }
  228. .wp-block-a8c-blog-posts + .button {
  229. font-size: (strip-unit(map-deep-get($config-global, "font", "size", "xs")) + 0);
  230. }
  231. /**
  232. * Full Site Editing
  233. * - Full Site Editing overrides
  234. */
  235. @import "full-site-editing-editor";