_extra-child-theme.scss 14 KB

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