_extra-child-theme.scss 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445
  1. $color_primary_default: #{map-deep-get($config-global, "color", "primary", "default")};
  2. $color_primary_hover: #{map-deep-get($config-global, "color", "primary", "hover")};
  3. /**
  4. * General Helper Styles
  5. */
  6. body {
  7. background: #{map-deep-get($config-global, "color", "foreground", "default")};
  8. }
  9. .home.hide-homepage-title {
  10. .hentry .entry-content {
  11. & > *:first-child {
  12. &.alignfull {
  13. margin-top: -#{map-deep-get($config-global, "spacing", "unit")};
  14. @include media(mobile) {
  15. margin-top: -#{3 * map-deep-get($config-global, "spacing", "unit")};
  16. }
  17. }
  18. }
  19. }
  20. }
  21. a {
  22. text-decoration: none;
  23. }
  24. .main-navigation {
  25. margin-bottom: 0;
  26. text-transform: uppercase;
  27. }
  28. .main-navigation > div > ul,
  29. .social-navigation > div > ul,
  30. .pagination .nav-links {
  31. justify-content: center;
  32. }
  33. #page {
  34. background: #{map-deep-get($config-global, "color", "background", "default")};
  35. margin-left: auto;
  36. margin-right: auto;
  37. @include media(tablet) {
  38. max-width: 90vw;
  39. }
  40. @include media(laptop) {
  41. max-width: 85vw;
  42. }
  43. @include media(wide) {
  44. max-width: 1180px;
  45. }
  46. }
  47. .responsive-max-width:not(.site-header),
  48. .wp-block-pullquote.is-style-solid-color:not(.alignleft):not(.alignright) blockquote,
  49. .wp-block-pullquote.alignwide > p,
  50. .wp-block-pullquote.alignfull > p,
  51. .wp-block-pullquote.alignwide blockquote,
  52. .wp-block-pullquote.alignfull blockquote,
  53. hr.wp-block-separator.is-style-wide,
  54. .entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator),
  55. .entry-content [class*="inner-container"] > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator),
  56. .entry-content .wp-audio-shortcode, .post-navigation, .pagination {
  57. width: calc(100% - #{4 * map-deep-get($config-global, "spacing", "unit")});
  58. }
  59. /**
  60. * Header
  61. */
  62. #masthead {
  63. align-items: center;
  64. display: flex;
  65. flex-direction: column;
  66. justify-content: flex-start;
  67. margin: 0 auto;
  68. max-width: 100%;
  69. padding: 0;
  70. // Site Branding
  71. .site-branding {
  72. text-align: center;
  73. padding: #{map-deep-get($config-global, "spacing", "unit")} 0 0;
  74. @include media(tablet) {
  75. padding: #{3 * map-deep-get($config-global, "spacing", "unit")} 0 #{2 * map-deep-get($config-global, "spacing", "unit")};
  76. }
  77. }
  78. // Social Navigation
  79. .social-navigation {
  80. order: 1;
  81. margin-bottom: #{map-deep-get($config-global, "spacing", "unit")};
  82. margin-top: 0;
  83. @include media(tablet) {
  84. margin-bottom: #{3 * map-deep-get($config-global, "spacing", "unit")};
  85. margin-top: -#{2 * map-deep-get($config-global, "spacing", "unit")};
  86. }
  87. ul {
  88. flex-wrap: wrap;
  89. margin: 0 auto;
  90. li {
  91. margin-left: #{0.25 * map-deep-get($config-global, "spacing", "unit")};
  92. margin-right: #{0.25 * map-deep-get($config-global, "spacing", "unit")};
  93. a {
  94. align-items: center;
  95. background: $color_primary_default;
  96. border-radius: 50%;
  97. display: flex;
  98. height: #{3 * map-deep-get($config-global, "spacing", "unit")};
  99. justify-content: center;
  100. width: #{3 * map-deep-get($config-global, "spacing", "unit")};
  101. &:active,
  102. &:focus,
  103. &:hover {
  104. background: $color_primary_hover;
  105. }
  106. }
  107. }
  108. }
  109. }
  110. }
  111. /**
  112. * Page
  113. */
  114. .site {
  115. margin: 0 auto;
  116. padding: 0;
  117. }
  118. .site-main {
  119. @include media(mobile) {
  120. padding-top: #{3 * map-deep-get($config-global, "spacing", "unit")};
  121. }
  122. }
  123. #page {
  124. .entry-header,
  125. .page-header,
  126. .entry-footer,
  127. .a8c-posts-list {
  128. text-align: center;
  129. }
  130. .a8c-posts-list-item__excerpt {
  131. text-align: left;
  132. }
  133. }
  134. /**
  135. * Main Menu
  136. */
  137. #site-navigation {
  138. order: 2;
  139. width: 100%;
  140. &.main-navigation {
  141. ul > li:hover > a,
  142. ul > li.focus > a,
  143. ul > li.current-menu-item > a {
  144. background-color: $color_primary_hover;
  145. }
  146. ul {
  147. li {
  148. &:first-of-type {
  149. > a {
  150. padding-left: map-deep-get($config-global, "spacing", "unit");
  151. }
  152. }
  153. &:last-of-type {
  154. > a {
  155. padding-right: map-deep-get($config-global, "spacing", "unit");
  156. }
  157. }
  158. a {
  159. padding: map-deep-get($config-global, "spacing", "unit");
  160. text-decoration: none;
  161. &:before,
  162. &:after {
  163. margin: 0;
  164. }
  165. }
  166. }
  167. @include media(mobile) {
  168. li {
  169. padding: 0;
  170. }
  171. &.main-menu > li:after {
  172. color: $color_primary_hover;
  173. content: "\2022";
  174. display: inline;
  175. font-size: map-deep-get($config-global, "font", "size", "sm");
  176. line-height: 1;
  177. padding: #{map-deep-get($config-global, "spacing", "unit")} #{0.5 * map-deep-get($config-global, "spacing", "unit")};
  178. }
  179. &.main-menu > li:last-child:after {
  180. display: none;
  181. }
  182. }
  183. ul {
  184. background-color: $color_primary_default;
  185. box-shadow: none;
  186. }
  187. }
  188. .main-menu {
  189. background-color: $color_primary_default;
  190. margin-left: 0;
  191. margin-right: 0;
  192. }
  193. }
  194. }
  195. /**
  196. * Mobile Menu
  197. */
  198. .main-navigation #toggle:focus + #toggle-menu,
  199. #toggle-menu {
  200. background: map-deep-get($config-global, "color", "primary", "default");
  201. color: map-deep-get($config-global, "color", "background", "default");
  202. border-radius: 0;
  203. text-align: center;
  204. text-decoration: none;
  205. width: 100%;
  206. &:active,
  207. &:focus,
  208. &:hover {
  209. background: map-deep-get($config-global, "color", "primary", "hover");
  210. color: map-deep-get($config-global, "color", "background", "default");
  211. }
  212. }
  213. .main-navigation #toggle:checked ~ div {
  214. border-top: 2px solid map-deep-get($config-global, "color", "background", "default");
  215. @include media(mobile) {
  216. border-top: 0;
  217. }
  218. }
  219. /**
  220. * Footer Menu
  221. */
  222. .footer-navigation {
  223. order: 1;
  224. text-align: center;
  225. text-transform: uppercase;
  226. @include media(mobile) {
  227. flex: 1 0 100%;
  228. }
  229. .footer-menu {
  230. justify-content: center;
  231. a {
  232. padding: #{0.5 * map-deep-get($config-global, "spacing", "unit")};
  233. }
  234. > li:first-of-type {
  235. > a {
  236. padding-left: #{0.5 * map-deep-get($config-global, "spacing", "unit")};
  237. }
  238. }
  239. > li:last-of-type {
  240. > a {
  241. padding-right: #{0.5 * map-deep-get($config-global, "spacing", "unit")};
  242. }
  243. }
  244. }
  245. }
  246. /**
  247. * Site Info
  248. */
  249. .site-info {
  250. margin-top: 0;
  251. text-align: center;
  252. .footer-navigation + & {
  253. margin-top: #{0.5 * map-deep-get($config-global, "spacing", "unit")};
  254. }
  255. }
  256. /**
  257. * Archive Pagination and Post Navigation
  258. */
  259. .pagination .nav-links > *,
  260. .post-navigation .post-title {
  261. font-weight: 400;
  262. }
  263. /**
  264. * Post
  265. */
  266. // Entry Header
  267. .entry-header,
  268. .a8c-posts-list-item__title {
  269. a {
  270. color: inherit;
  271. &:active,
  272. &:focus,
  273. &:hover {
  274. color: $color_primary_default;
  275. }
  276. }
  277. }
  278. // Sticky Post
  279. .sticky-post,
  280. .a8c-posts-list .a8c-posts-list-item__featured span {
  281. background: #{map-deep-get($config-global, "color", "background", "light")};
  282. color: #{map-deep-get($config-global, "color", "foreground", "light")};
  283. @include font-family( map-deep-get($config-global, "font", "family", "ui") );
  284. //text-transform: uppercase;
  285. }
  286. /**
  287. * Blocks
  288. */
  289. // Business Hours
  290. .jetpack-business-hours {
  291. dt {
  292. font-family: inherit;
  293. font-family: var( --font-base, inherit );
  294. }
  295. }
  296. // Category
  297. .wp-block-categories {
  298. .children {
  299. list-style: disc;
  300. > li {
  301. border: 0;
  302. margin-bottom: 0;
  303. margin-top: 0;
  304. }
  305. }
  306. }
  307. // Pullquote
  308. .wp-block-pullquote {
  309. blockquote {
  310. padding: 0;
  311. }
  312. }
  313. // Separator
  314. .wp-block-separator {
  315. border-bottom-color: #{map-deep-get($config-global, "color", "border", "default")};
  316. border-bottom-width: #{map-deep-get($config-separator, "height")};
  317. }
  318. // Table block
  319. table,
  320. .wp-block-table {
  321. td,
  322. th {
  323. border-color: #{map-deep-get($config-global, "color", "border", "default")};
  324. }
  325. }
  326. /**
  327. * Widgets
  328. */
  329. .widget_calendar {
  330. caption {
  331. font-weight: bold;
  332. }
  333. td,
  334. th {
  335. text-align: center;
  336. }
  337. }
  338. .widget_archive,
  339. .widget_categories,
  340. .widget_links,
  341. .widget_meta,
  342. .widget_nav_menu,
  343. .widget_pages,
  344. .widget_recent_comments,
  345. .widget_recent_entries,
  346. .widget_rss,
  347. .widget_rss_links,
  348. .widget_top-posts,
  349. .widget_authors,
  350. .widget_jp_blogs_i_follow,
  351. .widget_top-click,
  352. .widget_upcoming_events_widget {
  353. ul {
  354. border-bottom: 1px solid map-deep-get($config-global, "color", "border", "default");
  355. list-style: none;
  356. padding-left: 0;
  357. }
  358. li {
  359. border-top: 1px solid map-deep-get($config-global, "color", "border", "default");
  360. padding: #{0.25 * map-deep-get($config-global, "spacing", "vertical")} 0;
  361. }
  362. }
  363. .widget_categories .children,
  364. .widget_nav_menu .sub-menu,
  365. .widget_pages .children {
  366. border-bottom: 0;
  367. margin-bottom: #{-0.25 * map-deep-get($config-global, "spacing", "vertical")};
  368. margin-top: #{0.25 * map-deep-get($config-global, "spacing", "vertical")};
  369. padding-left: map-deep-get($config-global, "spacing", "horizontal");
  370. }
  371. .widget_recent_entries .post-date {
  372. display: block;
  373. }
  374. .widget_rss {
  375. cite,
  376. .rssSummary,
  377. .rss-date {
  378. display: block;
  379. }
  380. }