_extra-child-theme.scss 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401
  1. /**
  2. * Extra Child Theme Styles
  3. */
  4. $color_background: map-deep-get($config-global, "color", "background", "default");
  5. $color_foreground: map-deep-get($config-global, "color", "foreground", "default");
  6. $color_foreground_light: map-deep-get($config-global, "color", "foreground", "light");
  7. $color_primary: map-deep-get($config-global, "color", "primary", "default");
  8. $color_primary_hover: map-deep-get($config-global, "color", "primary", "hover");
  9. $spacing_horizontal: map-deep-get($config-global, "spacing", "horizontal");
  10. $spacing_vertical: map-deep-get($config-global, "spacing", "vertical");
  11. $spacing_unit: map-deep-get($config-global, "spacing", "unit");
  12. /**
  13. * Elements
  14. */
  15. b, strong {
  16. font-weight: 600;
  17. }
  18. a {
  19. text-decoration: none;
  20. .wp-block-cover &,
  21. .wp-block-cover-image &,
  22. .wp-block-media-text &,
  23. p:not(.site-title) & {
  24. text-decoration: underline;
  25. &.wp-block-button__link,
  26. &:hover {
  27. text-decoration: none;
  28. }
  29. }
  30. }
  31. /**
  32. * Header
  33. */
  34. .site-header {
  35. max-width: 100%;
  36. padding-left: $spacing_unit;
  37. padding-right: $spacing_unit;
  38. position: relative;
  39. @include media(mobile) {
  40. padding: #{1.5 * $spacing_unit} $spacing_vertical;
  41. }
  42. }
  43. /**
  44. * CSS-grid Desktop Menu
  45. */
  46. @include media(mobile) {
  47. .site-header {
  48. align-items: center;
  49. display: grid;
  50. grid-template-columns: auto;
  51. grid-template-rows: auto;
  52. grid-column-gap: #{map-deep-get($config-global, "spacing", "unit")};
  53. grid-template-areas:
  54. "site-branding main-navigation";
  55. &:before,
  56. &:after {
  57. content: none;
  58. display: none;
  59. }
  60. & > * {
  61. margin-top: 0;
  62. margin-bottom: 0;
  63. }
  64. .site-branding {
  65. grid-area: site-branding;
  66. align-self: center;
  67. }
  68. .site-logo {
  69. & + .site-title {
  70. margin-top: #{map-deep-get($config-global, "spacing", "unit")};
  71. }
  72. }
  73. .site-title {
  74. & + .site-description {
  75. margin-top: #{0.5 * $baseline-unit};
  76. }
  77. }
  78. .main-navigation {
  79. align-self: center;
  80. grid-area: main-navigation;
  81. justify-self: flex-end;
  82. & > div > ul {
  83. justify-content: flex-end;
  84. margin-left: -#{0.5 * map-deep-get($config-global, "spacing", "horizontal")};
  85. margin-right: -#{0.5 * map-deep-get($config-global, "spacing", "horizontal")};
  86. & > li > a {
  87. padding: 0 #{map-deep-get($config-header, "main-nav", "link-padding")};
  88. }
  89. & > .menu-item-has-children > a::after {
  90. font-size: #{0.5 * map-deep-get($config-global, "font", "size", "base")};
  91. }
  92. }
  93. & > div > ul > li:hover,
  94. & > div > ul > li.focus,
  95. & > div > ul > li.current-menu-item {
  96. & > a {
  97. color: #{map-deep-get($config-global, "color", "primary", "default")};
  98. }
  99. & > ul {
  100. box-shadow: none;
  101. overflow: hidden;
  102. &:before {
  103. border-bottom: #{0.5 * map-deep-get($config-global, "spacing", "unit")} solid #{map-deep-get($config-global, "color", "primary", "default")};
  104. border-left: #{0.5 * map-deep-get($config-global, "spacing", "unit")} solid transparent;
  105. border-right: #{0.5 * map-deep-get($config-global, "spacing", "unit")} solid transparent;
  106. content: "";
  107. display: block;
  108. margin-left: #{map-deep-get($config-global, "spacing", "unit")};
  109. width: #{map-deep-get($config-global, "spacing", "unit")};
  110. }
  111. }
  112. & li {
  113. & > a {
  114. background: #{map-deep-get($config-global, "color", "primary", "default")};
  115. color: #{map-deep-get($config-global, "color", "background", "default")};
  116. }
  117. &:hover > a,
  118. &.focus > a,
  119. &.current-menu-item > a {
  120. background: #{map-deep-get($config-global, "color", "primary", "hover")};
  121. }
  122. }
  123. }
  124. }
  125. .social-navigation {
  126. align-self: center;
  127. justify-self: flex-end;
  128. }
  129. }
  130. }
  131. /**
  132. * Main
  133. */
  134. .site-main {
  135. padding-top: 0;
  136. }
  137. .site-main > article > .entry-header,
  138. .site-main > .page-header,
  139. .site-main > .not-found > .page-header {
  140. margin-top: #{0.666 * $spacing_vertical};
  141. @include media(mobile) {
  142. margin-top: #{2 * $spacing_vertical};
  143. }
  144. }
  145. /**
  146. * Content
  147. */
  148. // Entry Title Link
  149. .entry-title,
  150. .page-title,
  151. .a8c-posts-list .a8c-posts-list-item__title {
  152. a {
  153. color: inherit;
  154. text-decoration: none;
  155. &:active,
  156. &:focus,
  157. &:hover {
  158. color: map-deep-get($config-global, "color", "primary", "default");
  159. }
  160. }
  161. }
  162. // Sticky tag
  163. .sticky-post,
  164. .a8c-posts-list .a8c-posts-list-item__featured span {
  165. padding: #{0.5 * $baseline-unit} #{0.66 * $spacing_unit};
  166. }
  167. /**
  168. * Next/Previous navigation
  169. */
  170. // Singular navigation
  171. .post-navigation {
  172. .meta-nav {
  173. color: map-deep-get($config-global, "color", "foreground", "light");
  174. }
  175. .post-title {
  176. font-size: #{map-deep-get($config-heading, "font", "size", "h4")};
  177. line-height: #{map-deep-get($config-global, "font", "line-height", "heading")};
  178. }
  179. }
  180. /**
  181. * Comments
  182. */
  183. .logged-in-as,
  184. .comment-notes,
  185. .comment-form-cookies-consent {
  186. font-size: map-deep-get($config-global, "font", "size", "sm");
  187. }
  188. .comment-form-cookies-consent input[type=checkbox] + label {
  189. line-height: #{map-deep-get($config-global, "font", "line-height", "body")};
  190. }
  191. .comment-notes {
  192. color: map-deep-get($config-global, "color", "foreground", "light");
  193. }
  194. .comment-form > p:not(.comment-form-cookies-consent) label {
  195. font-weight: 600;
  196. }
  197. /**
  198. * Blocks
  199. */
  200. // Cover
  201. .wp-block-cover,
  202. .wp-block-cover-image {
  203. h1, h2, h3, h4, h5, h6 {
  204. font-weight: 700;
  205. }
  206. @include media(desktop) {
  207. min-height: #{20 * map-deep-get($config-global, "spacing", "vertical")};
  208. h1 {
  209. font-size: map-deep-get($config-global, "font", "size", "xxxxl")
  210. }
  211. h2 {
  212. font-size: map-deep-get($config-global, "font", "size", "xxxl");
  213. }
  214. h3 {
  215. font-size: map-deep-get($config-global, "font", "size", "xxl");
  216. }
  217. h4 {
  218. font-size: map-deep-get($config-global, "font", "size", "xl");
  219. }
  220. h5 {
  221. font-size: map-deep-get($config-global, "font", "size", "lg");
  222. }
  223. h6 {
  224. font-size: map-deep-get($config-global, "font", "size", "md");
  225. }
  226. }
  227. }
  228. // Column
  229. .wp-block-columns.alignfull {
  230. @include media(mobile) {
  231. padding-right: $spacing_vertical;
  232. padding-left: $spacing_vertical;
  233. }
  234. }
  235. .jetpack-business-hours {
  236. dd {
  237. padding-left: 0;
  238. }
  239. }
  240. /**
  241. * Widgets
  242. */
  243. .widget {
  244. select {
  245. max-width: 100%;
  246. }
  247. }
  248. .widget-title {
  249. font-size: #{map-deep-get($config-heading, "font", "size", "h3")};
  250. margin-bottom: #{0.5 * $spacing_vertical};
  251. }
  252. .widget_archive,
  253. .widget_categories,
  254. .widget_meta,
  255. .widget_nav_menu,
  256. .widget_pages,
  257. .widget_recent_comments,
  258. .widget_recent_entries,
  259. .widget_rss {
  260. ul {
  261. padding-left: 0;
  262. list-style: none;
  263. li {
  264. color: map-deep-get($config-global, "color", "foreground", "light");
  265. font-weight: 600;
  266. }
  267. ul {
  268. counter-reset: submenu;
  269. }
  270. ul > li > a::before {
  271. font-weight: normal;
  272. content: "\2013\00a0" counters(submenu, "\2013\00a0", none);
  273. counter-increment: submenu
  274. }
  275. }
  276. }
  277. .widget_tag_cloud {
  278. .tagcloud {
  279. font-weight: 600;
  280. }
  281. }
  282. .widget_search {
  283. .search-field {
  284. width: 100%;
  285. @include media(mobile) {
  286. width: auto;
  287. }
  288. }
  289. .search-submit {
  290. display: block;
  291. margin-top: $typescale-base;
  292. }
  293. }
  294. .widget_calendar .calendar_wrap {
  295. text-align: center;
  296. table td,
  297. table th {
  298. border: none;
  299. }
  300. a {
  301. text-decoration: underline;
  302. }
  303. }
  304. .widget_links li,
  305. .widget_jp_blogs_i_follow li,
  306. .widget_rss_links li {
  307. font-family: inherit;
  308. font-family: var( --font-base, inherit );
  309. }
  310. /**
  311. * Footer
  312. */
  313. @include media(mobile-only) {
  314. .site-info {
  315. text-align: center;
  316. }
  317. }
  318. //Social Navigation
  319. .social-navigation {
  320. flex: 1 0 50%;
  321. order: 2;
  322. margin-bottom: 0;
  323. }
  324. .social-links-menu {
  325. flex-wrap: wrap;
  326. justify-content: flex-end;
  327. }
  328. @include media(mobile-only) {
  329. .social-links-menu {
  330. justify-content: center;
  331. }
  332. }