_extra-child-theme.scss 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703
  1. /**
  2. * Extra Child Theme Styles
  3. */
  4. // @import "";
  5. // Header
  6. #masthead {
  7. align-content: center;
  8. align-items: center;
  9. background: #{map-deep-get($config-global, "color", "foreground", "default")};
  10. border-bottom: 5px solid #{map-deep-get($config-global, "color", "primary", "default")};
  11. border-top: 5px solid #{map-deep-get($config-global, "color", "primary", "default")};
  12. display: flex;
  13. flex-flow: column wrap;
  14. justify-content: space-between;
  15. margin: #{2 * map-deep-get($config-global, "spacing", "vertical")} 0 #{map-deep-get($config-global, "spacing", "vertical")};
  16. max-width: 100vw;
  17. min-height: #{100 - map-deep-get($config-global, "spacing", "vertical")};
  18. padding-top: #{0.5 * map-deep-get($config-global, "spacing", "vertical")};
  19. position: relative;
  20. z-index: 2;
  21. &:after {
  22. background: #{map-deep-get($config-global, "color", "foreground", "default")};
  23. border-bottom-left-radius: 200px;
  24. border-bottom-right-radius: 200px;
  25. content: "";
  26. display: block;
  27. height: 100px;
  28. left: 50%;
  29. margin-left: -100px;
  30. position: absolute;
  31. bottom: -#{map-deep-get($config-global, "spacing", "vertical") + 5px};
  32. width: 200px;
  33. }
  34. &:before {
  35. background: #{map-deep-get($config-global, "color", "foreground", "default")};
  36. border-top-left-radius: 200px;
  37. border-top-right-radius: 200px;
  38. content: "";
  39. display: block;
  40. height: 100px;
  41. left: 50%;
  42. margin-left: -100px;
  43. position: absolute;
  44. top: -#{map-deep-get($config-global, "spacing", "vertical") + 5px};
  45. width: 200px;
  46. }
  47. a {
  48. text-decoration: none;
  49. }
  50. .custom-logo-link {
  51. display: inline-block;
  52. margin-bottom: #{0.5 * map-deep-get($config-global, "spacing", "vertical")};
  53. }
  54. .site-branding {
  55. margin-bottom: 0;
  56. order: 1;
  57. position: relative;
  58. text-align: center;
  59. width: 100%;
  60. z-index: 2;
  61. }
  62. .main-navigation {
  63. margin-bottom: 0;
  64. order: 3;
  65. position: relative;
  66. text-align: center;
  67. z-index: 2;
  68. & > div > ul {
  69. text-align: left;
  70. }
  71. }
  72. .social-navigation {
  73. order: 2;
  74. position: relative;
  75. z-index: 2;
  76. }
  77. @include media(mobile) {
  78. padding: #{map-deep-get($config-global, "spacing", "vertical")} #{2* map-deep-get($config-global, "spacing", "horizontal")};
  79. .main-navigation {
  80. & > div > ul {
  81. justify-content: center;
  82. }
  83. }
  84. }
  85. @include media(laptop) {
  86. flex-flow: row wrap;
  87. justify-content: center;
  88. & > *:nth-child(1):nth-last-child(3),
  89. & > *:nth-child(2):nth-last-child(2),
  90. & > *:nth-child(3):nth-last-child(1) {
  91. margin: 0;
  92. padding: 0 #{0.5 * map-deep-get($config-global, "spacing", "horizontal")};
  93. width: 30%;
  94. width: calc(33.3333% - #{map-deep-get($config-global, "spacing", "horizontal")})
  95. }
  96. & > *:nth-child(2):nth-last-child(2) {
  97. order: 1;
  98. }
  99. .site-branding {
  100. order: 2;
  101. }
  102. .main-navigation {
  103. & > div > ul {
  104. justify-content: flex-start;
  105. }
  106. }
  107. .social-navigation {
  108. order: 3;
  109. & > div > ul {
  110. justify-content: flex-end;
  111. }
  112. }
  113. }
  114. }
  115. // Main Navigation
  116. .main-navigation {
  117. .button {
  118. background: #{map-deep-get($config-global, "color", "secondary", "default")};
  119. color: #{map-deep-get($config-global, "color", "foreground", "default")};
  120. text-transform: uppercase;
  121. &:active,
  122. &:focus,
  123. &:hover {
  124. background: #{map-deep-get($config-global, "color", "secondary", "hover")};
  125. text-decoration: none;
  126. }
  127. }
  128. & > div > ul > li > a {
  129. text-transform: uppercase;
  130. }
  131. & > div > ul > li.current-menu-item {
  132. & > a {
  133. color: #{map-deep-get($config-global, "color", "secondary", "hover")};
  134. }
  135. }
  136. @include media(mobile) {
  137. & > div > ul > li:first-of-type > a {
  138. padding-left: #{map-deep-get($config-header, "main-nav", "link-padding")};
  139. }
  140. & > div > ul > li:last-of-type > a {
  141. padding-right: #{map-deep-get($config-header, "main-nav", "link-padding")};
  142. }
  143. & > div > ul > li > .sub-menu {
  144. background: #{map-deep-get($config-global, "color", "foreground", "default")};
  145. }
  146. & > div > ul > li:hover,
  147. & > div > ul > li:focus-within,
  148. & > div > ul > li.current-menu-item {
  149. & > ul {
  150. box-shadow: none;
  151. overflow: hidden;
  152. }
  153. & li {
  154. & > a {
  155. background: #{map-deep-get($config-global, "color", "foreground", "default")};
  156. border-top: 1px solid #{map-deep-get($config-global, "color", "secondary", "hover")};
  157. }
  158. }
  159. }
  160. }
  161. }
  162. .site-info,
  163. .entry-header,
  164. .page-title,
  165. .author-title,
  166. .comments-title,
  167. .comment-reply-title {
  168. text-align: center;
  169. }
  170. .comment-reply-title {
  171. display: inherit;
  172. }
  173. .comment .comment-reply-title {
  174. display: flex;
  175. }
  176. .pagination .nav-links {
  177. justify-content: center;
  178. }
  179. // Hentry
  180. .entry-header {
  181. .entry-meta {
  182. display: none;
  183. }
  184. .sticky-post {
  185. border-radius: #{map-deep-get($config-global, "border-radius", "sm")};
  186. display: inline-block;
  187. font-weight: 900;
  188. margin-top: #{map-deep-get($config-global, "spacing", "vertical")};
  189. text-transform: uppercase;
  190. & + .entry-title {
  191. margin-top: 0;
  192. }
  193. }
  194. }
  195. .entry-footer {
  196. font-size: #{map-deep-get($config-global, "font", "size", "sm")};
  197. & > span {
  198. display: block;
  199. margin: 0;
  200. }
  201. a {
  202. color: inherit;
  203. text-decoration: none;
  204. &:active,
  205. &:focus,
  206. &:hover {
  207. color: #{map-deep-get($config-global, "color", "primary", "default")};
  208. }
  209. }
  210. }
  211. article .entry-header .entry-title,
  212. .page-title,
  213. .a8c-posts-list .a8c-posts-list-item__title {
  214. margin-top: #{map-deep-get($config-global, "spacing", "vertical")};
  215. a {
  216. color: inherit;
  217. text-decoration: none;
  218. &:active,
  219. &:focus,
  220. &:hover {
  221. color: #{map-deep-get($config-global, "color", "primary", "default")};
  222. }
  223. }
  224. }
  225. .wp-block-newspack-blocks-homepage-articles article .entry-title {
  226. a {
  227. color: inherit;
  228. text-decoration: none;
  229. &:active,
  230. &:focus,
  231. &:hover {
  232. color: #{map-deep-get($config-global, "color", "primary", "default")};
  233. }
  234. }
  235. }
  236. // Cover & Hero block
  237. .wp-block-cover .wp-block-cover__inner-container,
  238. .wp-block-coblocks-hero .wp-block-coblocks-hero__box {
  239. & > * {
  240. margin-top: #{ 0.666 * map-deep-get($config-global, "spacing", "vertical") };
  241. margin-bottom: #{ 0.666 * map-deep-get($config-global, "spacing", "vertical") };
  242. @include media(mobile) {
  243. margin-top: map-deep-get($config-global, "spacing", "vertical");
  244. margin-bottom: map-deep-get($config-global, "spacing", "vertical");
  245. }
  246. &:first-child {
  247. margin-top: 0;
  248. }
  249. &:last-child {
  250. margin-bottom: 0;
  251. }
  252. }
  253. }
  254. // Quote block
  255. .wp-block-quote {
  256. p {
  257. @include font-family( map-deep-get($config-global, "font", "family", "secondary") );
  258. }
  259. }
  260. // Table block
  261. table,
  262. .wp-block-table {
  263. td,
  264. th {
  265. border-color: #{map-deep-get($config-global, "color", "border", "default")};
  266. }
  267. }
  268. // Blog Posts Listing
  269. .a8c-posts-list {
  270. text-align: center;
  271. .a8c-posts-list-item__featured {
  272. margin-top: #{map-deep-get($config-global, "spacing", "vertical")};
  273. span {
  274. border-radius: #{map-deep-get($config-global, "border-radius", "sm")};
  275. display: inline-block;
  276. font-weight: 900;
  277. text-transform: uppercase;
  278. }
  279. & + .a8c-posts-list-item__title {
  280. margin-top: 0;
  281. }
  282. }
  283. .a8c-posts-list-item__meta {
  284. a {
  285. text-decoration: none;
  286. &:active,
  287. &:focus,
  288. &:hover {
  289. color: #{map-deep-get($config-global, "color", "primary", "default")};
  290. }
  291. }
  292. }
  293. .a8c-posts-list-item__excerpt {
  294. text-align: left;
  295. }
  296. .a8c-posts-list__view-all {
  297. text-decoration: none;
  298. }
  299. }
  300. // Pagination
  301. .pagination {
  302. text-align: center;
  303. .nav-links {
  304. & > * {
  305. color: #{map-deep-get($config-global, "color", "foreground", "default")};
  306. font-size: #{map-deep-get($config-global, "font", "size", "base")};
  307. font-weight: 900;
  308. text-transform: uppercase;
  309. &.current,
  310. &:active,
  311. &:focus,
  312. &:hover {
  313. color: #{map-deep-get($config-global, "color", "primary", "default")};
  314. }
  315. }
  316. a {
  317. text-decoration: none;
  318. }
  319. .svg-icon {
  320. display: none;
  321. }
  322. }
  323. }
  324. // Post Navigation
  325. .post-navigation {
  326. border-top: 1px solid map-deep-get($config-global, "color", "border", "light");
  327. margin-top: -#{2 * map-deep-get($config-global, "spacing", "vertical")};
  328. padding-top: #{map-deep-get($config-global, "spacing", "vertical")};
  329. a {
  330. color: #{map-deep-get($config-global, "color", "foreground", "light")};
  331. text-decoration: none;
  332. &:active,
  333. &:hover,
  334. &:focus {
  335. color: #{map-deep-get($config-global, "color", "primary", "default")};
  336. }
  337. }
  338. .meta-nav {
  339. color: #{map-deep-get($config-global, "color", "foreground", "default")};
  340. @include font-family( map-deep-get($config-global, "font", "family", "primary") );
  341. font-size: #{map-deep-get($config-global, "font", "size", "sm")};
  342. font-weight: 900;
  343. text-transform: uppercase;
  344. }
  345. .post-title {
  346. @include font-family( map-deep-get($config-global, "font", "family", "secondary") );
  347. font-size: #{map-deep-get($config-global, "font", "size", "sm")};
  348. font-weight: normal;
  349. }
  350. }
  351. // Footer
  352. #colophon {
  353. flex-direction: column;
  354. padding-left: 0;
  355. padding-right: 0;
  356. padding-bottom: #{map-deep-get($config-global, "spacing", "vertical")};
  357. .site-info {
  358. background: #{map-deep-get($config-global, "color", "foreground", "default")};
  359. border-bottom: 5px solid #{map-deep-get($config-global, "color", "primary", "default")};
  360. border-top: 5px solid #{map-deep-get($config-global, "color", "primary", "default")};
  361. font-weight: 900;
  362. padding: #{map-deep-get($config-global, "spacing", "vertical")} #{map-deep-get($config-global, "spacing", "horizontal")};
  363. @extend %responsive-alignfull;
  364. @include media(tablet) {
  365. flex: 1 0 100%;
  366. width: 100%;
  367. }
  368. a {
  369. text-decoration: none;
  370. }
  371. .site-name {
  372. font-weight: inherit;
  373. }
  374. }
  375. .footer-navigation {
  376. background: #{map-deep-get($config-global, "color", "foreground", "default")};
  377. border-top: 5px solid #{map-deep-get($config-global, "color", "primary", "default")};
  378. display: block;
  379. margin-bottom: 0;
  380. padding: #{0.5 * map-deep-get($config-global, "spacing", "vertical")} #{map-deep-get($config-global, "spacing", "horizontal")};
  381. text-align: center;
  382. text-transform: uppercase;
  383. @extend %responsive-alignfull;
  384. @include media(tablet) {
  385. flex: 1 0 100%;
  386. order: 1;
  387. width: 100%;
  388. .footer-menu {
  389. justify-content: center;
  390. }
  391. }
  392. a {
  393. text-decoration: none;
  394. }
  395. & + .site-info {
  396. border-top: 0;
  397. margin-top: 0;
  398. padding: 0 #{map-deep-get($config-global, "spacing", "horizontal")} #{0.666 * map-deep-get($config-global, "spacing", "vertical")};
  399. }
  400. & > div {
  401. display: block;
  402. }
  403. }
  404. }
  405. // Comments
  406. .comments-area {
  407. .comment-list,
  408. .children {
  409. border: 0;
  410. > li {
  411. border: 0;
  412. .comment-body {
  413. border: 1px solid map-deep-get($config-global, "color", "border", "light");
  414. padding: 0 #{map-deep-get($config-global, "spacing", "vertical")};
  415. }
  416. }
  417. }
  418. .comment-meta {
  419. a {
  420. color: inherit;
  421. text-decoration: none;
  422. &:active,
  423. &:focus,
  424. &:hover {
  425. color: #{map-deep-get($config-global, "color", "primary", "default")};
  426. }
  427. }
  428. .fn {
  429. font-weight: 900;
  430. }
  431. }
  432. .avatar {
  433. border-radius: 50%;
  434. }
  435. .reply {
  436. color: #{map-deep-get($config-global, "color", "foreground", "light")};;
  437. @include font-family( map-deep-get($config-global, "font", "family", "primary") );
  438. font-size: #{map-deep-get($config-global, "font", "size", "base")};
  439. font-weight: 900;
  440. text-align: center;
  441. text-transform: uppercase;
  442. a {
  443. color: inherit;
  444. text-decoration: none;
  445. &:active,
  446. &:focus,
  447. &:hover {
  448. color: #{map-deep-get($config-global, "color", "primary", "default")};
  449. }
  450. }
  451. }
  452. @include media(mobile) {
  453. .comment-meta,
  454. .comment-author {
  455. flex-direction: column;
  456. }
  457. .comment-meta {
  458. margin-top: -16px;
  459. }
  460. .avatar {
  461. margin-left: #{0.5 * map-deep-get($config-global, "spacing", "vertical")};
  462. }
  463. }
  464. }
  465. .comments-title,
  466. .comment-reply-title {
  467. font-size: #{map-deep-get($config-heading, "font", "size", "h4")};
  468. }
  469. .comment-form {
  470. .form-submit {
  471. justify-content: center;
  472. text-align: center;
  473. }
  474. }
  475. // Comments Navigation
  476. .comment-navigation {
  477. a {
  478. font-size: #{map-deep-get($config-global, "font", "size", "base")};
  479. font-weight: 900;
  480. text-decoration: none;
  481. text-transform: uppercase;
  482. }
  483. }
  484. // Widgets
  485. .widget-area {
  486. border-top: 1px solid map-deep-get($config-global, "color", "border", "light");
  487. padding-top: #{map-deep-get($config-global, "spacing", "vertical")};
  488. width: 100%;
  489. .widget-title,
  490. .widgettitle {
  491. font-size: #{map-deep-get($config-global, "font", "size", "base")};
  492. margin-bottom: #{0.5 * map-deep-get($config-global, "spacing", "vertical")};
  493. text-transform: uppercase;
  494. &:empty {
  495. display: none;
  496. }
  497. }
  498. @include media(laptop) {
  499. display: flex;
  500. flex-wrap: wrap;
  501. justify-content: space-between;
  502. & > *:nth-child(2) {
  503. margin-top: 0;
  504. }
  505. .widget {
  506. width: calc(50% - #{map-deep-get($config-global, "spacing", "horizontal")});
  507. }
  508. }
  509. }
  510. .widget_calendar,
  511. .widget_calendar {
  512. caption {
  513. font-weight: bold;
  514. }
  515. td,
  516. th {
  517. text-align: center;
  518. }
  519. }
  520. .widget_archive,
  521. .widget_categories,
  522. .widget_links,
  523. .widget_meta,
  524. .widget_nav_menu,
  525. .widget_pages,
  526. .widget_recent_comments,
  527. .widget_recent_entries,
  528. .widget_rss,
  529. .widget_rss_links,
  530. .widget_top-posts,
  531. .widget_authors,
  532. .widget_jp_blogs_i_follow,
  533. .widget_top-click,
  534. .widget_upcoming_events_widget {
  535. ul {
  536. border-bottom: 1px solid map-deep-get($config-global, "color", "border", "light");
  537. list-style: none;
  538. margin-left: 0;
  539. padding-left: 0;
  540. li > ul {
  541. padding-left: inherit;
  542. }
  543. }
  544. li {
  545. border-top: 1px solid map-deep-get($config-global, "color", "border", "light");
  546. padding: #{0.25 * map-deep-get($config-global, "spacing", "vertical")} 0;
  547. }
  548. }
  549. .widget_categories .children,
  550. .widget_nav_menu .sub-menu,
  551. .widget_pages .children {
  552. border-bottom: 0;
  553. margin-bottom: #{-0.25 * map-deep-get($config-global, "spacing", "vertical")};
  554. margin-top: #{0.25 * map-deep-get($config-global, "spacing", "vertical")};
  555. padding-left: map-deep-get($config-global, "spacing", "horizontal");
  556. }
  557. .widget_recent_entries .post-date {
  558. display: block;
  559. }
  560. .widget_rss {
  561. cite,
  562. .rssSummary,
  563. .rss-date {
  564. display: block;
  565. }
  566. }
  567. .widget_search {
  568. input[type="search"] {
  569. display: block;
  570. margin-bottom: #{0.25 * map-deep-get($config-global, "spacing", "vertical")};
  571. width: 100%;
  572. }
  573. }
  574. // Homepage, if first block is full-width
  575. .home.hide-homepage-title {
  576. #masthead {
  577. &:before {
  578. z-index: 1;
  579. }
  580. }
  581. .entry-content {
  582. & > *:first-child {
  583. &.alignfull {
  584. margin-top: -#{2 * map-deep-get($config-global, "spacing", "vertical")};
  585. position: relative;
  586. }
  587. }
  588. }
  589. }