_extra-child-theme.scss 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686
  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. // Cover & Hero block
  227. .wp-block-cover .wp-block-cover__inner-container,
  228. .wp-block-coblocks-hero .wp-block-coblocks-hero__box {
  229. & > * {
  230. margin-top: #{ 0.666 * map-deep-get($config-global, "spacing", "vertical") };
  231. margin-bottom: #{ 0.666 * map-deep-get($config-global, "spacing", "vertical") };
  232. @include media(mobile) {
  233. margin-top: map-deep-get($config-global, "spacing", "vertical");
  234. margin-bottom: map-deep-get($config-global, "spacing", "vertical");
  235. }
  236. &:first-child {
  237. margin-top: 0;
  238. }
  239. &:last-child {
  240. margin-bottom: 0;
  241. }
  242. }
  243. }
  244. // Quote block
  245. .wp-block-quote {
  246. p {
  247. @include font-family( map-deep-get($config-global, "font", "family", "secondary") );
  248. }
  249. }
  250. // Table block
  251. table,
  252. .wp-block-table {
  253. td,
  254. th {
  255. border-color: #{map-deep-get($config-global, "color", "border", "default")};
  256. }
  257. }
  258. // Blog Posts Listing
  259. .a8c-posts-list {
  260. text-align: center;
  261. .a8c-posts-list-item__featured {
  262. margin-top: #{map-deep-get($config-global, "spacing", "vertical")};
  263. span {
  264. border-radius: #{map-deep-get($config-global, "border-radius", "sm")};
  265. display: inline-block;
  266. font-weight: 900;
  267. text-transform: uppercase;
  268. }
  269. & + .a8c-posts-list-item__title {
  270. margin-top: 0;
  271. }
  272. }
  273. .a8c-posts-list-item__meta {
  274. a {
  275. text-decoration: none;
  276. &:active,
  277. &:focus,
  278. &:hover {
  279. color: #{map-deep-get($config-global, "color", "primary", "default")};
  280. }
  281. }
  282. }
  283. .a8c-posts-list-item__excerpt {
  284. text-align: left;
  285. }
  286. .a8c-posts-list__view-all {
  287. text-decoration: none;
  288. }
  289. }
  290. // Pagination
  291. .pagination {
  292. text-align: center;
  293. .nav-links {
  294. & > * {
  295. color: #{map-deep-get($config-global, "color", "foreground", "default")};
  296. font-size: #{map-deep-get($config-global, "font", "size", "base")};
  297. font-weight: 900;
  298. text-transform: uppercase;
  299. &.current,
  300. &:active,
  301. &:focus,
  302. &:hover {
  303. color: #{map-deep-get($config-global, "color", "primary", "default")};
  304. }
  305. }
  306. a {
  307. text-decoration: none;
  308. }
  309. .svg-icon {
  310. display: none;
  311. }
  312. }
  313. }
  314. // Post Navigation
  315. .post-navigation {
  316. border-top: 1px solid map-deep-get($config-global, "color", "border", "light");
  317. margin-top: -#{2 * map-deep-get($config-global, "spacing", "vertical")};
  318. padding-top: #{map-deep-get($config-global, "spacing", "vertical")};
  319. a {
  320. color: #{map-deep-get($config-global, "color", "foreground", "light")};
  321. text-decoration: none;
  322. &:active,
  323. &:hover,
  324. &:focus {
  325. color: #{map-deep-get($config-global, "color", "primary", "default")};
  326. }
  327. }
  328. .meta-nav {
  329. color: #{map-deep-get($config-global, "color", "foreground", "default")};
  330. @include font-family( map-deep-get($config-global, "font", "family", "primary") );
  331. font-size: #{map-deep-get($config-global, "font", "size", "sm")};
  332. font-weight: 900;
  333. text-transform: uppercase;
  334. }
  335. .post-title {
  336. @include font-family( map-deep-get($config-global, "font", "family", "secondary") );
  337. font-size: #{map-deep-get($config-global, "font", "size", "sm")};
  338. font-weight: normal;
  339. }
  340. }
  341. // Footer
  342. #colophon {
  343. flex-direction: column;
  344. padding-left: 0;
  345. padding-right: 0;
  346. padding-bottom: #{map-deep-get($config-global, "spacing", "vertical")};
  347. .site-info {
  348. background: #{map-deep-get($config-global, "color", "foreground", "default")};
  349. border-bottom: 5px solid #{map-deep-get($config-global, "color", "primary", "default")};
  350. border-top: 5px solid #{map-deep-get($config-global, "color", "primary", "default")};
  351. font-weight: 900;
  352. padding: #{map-deep-get($config-global, "spacing", "vertical")} #{map-deep-get($config-global, "spacing", "horizontal")};
  353. @extend %responsive-alignfull;
  354. @include media(tablet) {
  355. flex: 1 0 100%;
  356. width: 100%;
  357. }
  358. a {
  359. text-decoration: none;
  360. }
  361. .site-name {
  362. font-weight: inherit;
  363. }
  364. }
  365. .footer-navigation {
  366. background: #{map-deep-get($config-global, "color", "foreground", "default")};
  367. border-top: 5px solid #{map-deep-get($config-global, "color", "primary", "default")};
  368. display: block;
  369. margin-bottom: 0;
  370. padding: #{0.5 * map-deep-get($config-global, "spacing", "vertical")} #{map-deep-get($config-global, "spacing", "horizontal")};
  371. text-align: center;
  372. text-transform: uppercase;
  373. @extend %responsive-alignfull;
  374. @include media(tablet) {
  375. flex: 1 0 100%;
  376. order: 1;
  377. width: 100%;
  378. .footer-menu {
  379. justify-content: center;
  380. }
  381. }
  382. a {
  383. text-decoration: none;
  384. }
  385. & + .site-info {
  386. border-top: 0;
  387. margin-top: 0;
  388. padding: 0 #{map-deep-get($config-global, "spacing", "horizontal")} #{0.666 * map-deep-get($config-global, "spacing", "vertical")};
  389. }
  390. & > div {
  391. display: block;
  392. }
  393. }
  394. }
  395. // Comments
  396. .comments-area {
  397. .comment-list,
  398. .children {
  399. border: 0;
  400. > li {
  401. border: 0;
  402. .comment-body {
  403. border: 1px solid map-deep-get($config-global, "color", "border", "light");
  404. padding: 0 #{map-deep-get($config-global, "spacing", "vertical")};
  405. }
  406. }
  407. }
  408. .comment-meta {
  409. a {
  410. color: inherit;
  411. text-decoration: none;
  412. &:active,
  413. &:focus,
  414. &:hover {
  415. color: #{map-deep-get($config-global, "color", "primary", "default")};
  416. }
  417. }
  418. .fn {
  419. font-weight: 900;
  420. }
  421. }
  422. .avatar {
  423. border-radius: 50%;
  424. }
  425. .reply {
  426. color: #{map-deep-get($config-global, "color", "foreground", "light")};;
  427. @include font-family( map-deep-get($config-global, "font", "family", "primary") );
  428. font-size: #{map-deep-get($config-global, "font", "size", "base")};
  429. font-weight: 900;
  430. text-align: center;
  431. text-transform: uppercase;
  432. a {
  433. color: inherit;
  434. text-decoration: none;
  435. &:active,
  436. &:focus,
  437. &:hover {
  438. color: #{map-deep-get($config-global, "color", "primary", "default")};
  439. }
  440. }
  441. }
  442. @include media(mobile) {
  443. .comment-meta,
  444. .comment-author {
  445. flex-direction: column;
  446. }
  447. .comment-meta {
  448. margin-top: -16px;
  449. }
  450. .avatar {
  451. margin-left: #{0.5 * map-deep-get($config-global, "spacing", "vertical")};
  452. }
  453. }
  454. }
  455. .comments-title,
  456. .comment-reply-title {
  457. font-size: #{map-deep-get($config-heading, "font", "size", "h4")};
  458. }
  459. .comment-form {
  460. .form-submit {
  461. justify-content: center;
  462. text-align: center;
  463. }
  464. }
  465. // Comments Navigation
  466. .comment-navigation {
  467. a {
  468. font-size: #{map-deep-get($config-global, "font", "size", "base")};
  469. font-weight: 900;
  470. text-decoration: none;
  471. text-transform: uppercase;
  472. }
  473. }
  474. // Widgets
  475. .widget-area {
  476. border-top: 1px solid map-deep-get($config-global, "color", "border", "light");
  477. padding-top: #{map-deep-get($config-global, "spacing", "vertical")};
  478. width: 100%;
  479. .widget-title,
  480. .widgettitle {
  481. font-size: #{map-deep-get($config-global, "font", "size", "base")};
  482. margin-bottom: #{0.5 * map-deep-get($config-global, "spacing", "vertical")};
  483. text-transform: uppercase;
  484. &:empty {
  485. display: none;
  486. }
  487. }
  488. @include media(laptop) {
  489. display: flex;
  490. flex-wrap: wrap;
  491. justify-content: space-between;
  492. & > *:nth-child(2) {
  493. margin-top: 0;
  494. }
  495. .widget {
  496. width: calc(50% - #{map-deep-get($config-global, "spacing", "horizontal")});
  497. }
  498. }
  499. }
  500. .widget_calendar,
  501. .widget_calendar {
  502. caption {
  503. font-weight: bold;
  504. }
  505. td,
  506. th {
  507. text-align: center;
  508. }
  509. }
  510. .widget_archive,
  511. .widget_categories,
  512. .widget_links,
  513. .widget_meta,
  514. .widget_nav_menu,
  515. .widget_pages,
  516. .widget_recent_comments,
  517. .widget_recent_entries,
  518. .widget_rss,
  519. .widget_rss_links,
  520. .widget_top-posts,
  521. .widget_authors,
  522. .widget_jp_blogs_i_follow,
  523. .widget_top-click,
  524. .widget_upcoming_events_widget {
  525. ul {
  526. border-bottom: 1px solid map-deep-get($config-global, "color", "border", "light");
  527. list-style: none;
  528. margin-left: 0;
  529. }
  530. li {
  531. border-top: 1px solid map-deep-get($config-global, "color", "border", "light");
  532. padding: #{0.25 * map-deep-get($config-global, "spacing", "vertical")} 0;
  533. }
  534. }
  535. .widget_categories .children,
  536. .widget_nav_menu .sub-menu,
  537. .widget_pages .children {
  538. border-bottom: 0;
  539. margin-bottom: #{-0.25 * map-deep-get($config-global, "spacing", "vertical")};
  540. margin-top: #{0.25 * map-deep-get($config-global, "spacing", "vertical")};
  541. padding-left: map-deep-get($config-global, "spacing", "horizontal");
  542. }
  543. .widget_recent_entries .post-date {
  544. display: block;
  545. }
  546. .widget_rss {
  547. cite,
  548. .rssSummary,
  549. .rss-date {
  550. display: block;
  551. }
  552. }
  553. .widget_search {
  554. input[type="search"] {
  555. display: block;
  556. margin-bottom: #{0.25 * map-deep-get($config-global, "spacing", "vertical")};
  557. width: 100%;
  558. }
  559. }
  560. // Homepage, if first block is full-width
  561. .home.hide-homepage-title {
  562. #masthead {
  563. &:before {
  564. z-index: 1;
  565. }
  566. }
  567. .entry-content {
  568. & > *:first-child {
  569. &.alignfull {
  570. margin-top: -#{2 * map-deep-get($config-global, "spacing", "vertical")};
  571. position: relative;
  572. }
  573. }
  574. }
  575. }