123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847 |
- /**
- * Extra Child Theme Styles
- */
- /**
- * Reset
- */
- // Reset Links
- a {
- text-decoration: none;
- .reply &,
- .widget-area &,
- .wp-block-cover &,
- .wp-block-cover-image &,
- .wp-block-media-text &,
- p:not(.site-title) & {
- text-decoration: underline;
- &.wp-block-button__link,
- &:hover {
- text-decoration: none;
- }
- }
- }
- // Reset Navigations
- .main-navigation > div > ul,
- .social-navigation > div > ul,
- .pagination .nav-links {
- justify-content: center;
- }
- /**
- * Header
- */
- #masthead {
- background: #{map-deep-get($config-global, "color", "foreground", "dark")};
- display: flex;
- justify-content: space-between;
- margin: 0;
- padding: #{0.25 * map-deep-get($config-global, "spacing", "vertical")} #{map-deep-get($config-global, "spacing", "horizontal")};
- position: relative;
- text-align: left;
- z-index: 9999;
- //@extend %responsive-alignfull;
- @include media(mobile) {
- align-items: flex-end;
- }
- @include media(tablet) {
- left: 0;
- max-width: 100%;
- position: absolute;
- right: 0;
- .wp-sticky-header & {
- position: fixed;
- }
- }
- }
- /**
- * Site Branding
- */
- .site-branding {
- margin: 0;
- margin-right: auto;
- padding-bottom: #{0.25 * map-deep-get($config-global, "spacing", "vertical")};
- padding-right: #{map-deep-get($config-global, "spacing", "horizontal")};
- padding-top: #{0.25 * map-deep-get($config-global, "spacing", "vertical")};
- text-align: inherit;
- @include media(mobile) {
- padding-bottom: 0;
- padding-top: 0;
- }
- }
- .site-title {
- display: inline;
- }
- .site-description {
- display: none;
- }
- @include media(tablet) {
- .site-description {
- display: inline;
- }
- .site-title:not(:empty) + .site-description:not(:empty)::before {
- color: map-deep-get($config-global, "color", "foreground", "light");
- content: "\2022";
- font-family: Arial, Helvetica, sans-serif; // For browsers without CSS custom properties support.
- font-family: var(--font-headings, "Arial, Helvetica, sans-serif");
- margin: 0 0.25em;
- }
- }
- /**
- * Header Menu
- */
- #site-navigation {
- margin: 0;
- text-align: right;
- > div {
- background: #{map-deep-get($config-global, "color", "foreground", "dark")};
- border-top: #{0.25 * map-deep-get($config-global, "spacing", "vertical")} solid #{map-deep-get($config-global, "color", "foreground", "dark")};
- box-shadow: inset 0 1px 0 0 #{map-deep-get($config-global, "color", "primary", "default")};
- left: 0;
- position: absolute;
- padding: 0 #{map-deep-get($config-global, "spacing", "horizontal")};
- right: 0;
- @include media(mobile) {
- background: transparent;
- border: 0;
- box-shadow: none;
- left: auto;
- margin-bottom: -2px;
- position: inherit;
- padding: 0;
- right: auto;
- }
- > ul {
- justify-content: flex-end;
- & > .menu-item-has-children > a::after {
- font-size: #{0.5 * map-deep-get($config-global, "font", "size", "base")};
- }
- .sub-menu .menu-item a {
- &::before {
- display: none;
- }
- &::after {
- counter-increment: nested-list;
- content: " –" counters(nested-list, " –", none);
- }
- }
- @include media(mobile) {
- > li {
- &:not(:first-child)::before {
- color: map-deep-get($config-global, "color", "foreground", "light");
- content: "\2022";
- font-family: Arial, Helvetica, sans-serif; // For browsers without CSS custom properties support.
- font-family: var(--font-headings, Arial, Helvetica, sans-serif);
- line-height: 1;
- padding-bottom: #{0.5 * map-deep-get($config-global, "spacing", "unit")};
- padding-top: #{0.5 * map-deep-get($config-global, "spacing", "unit")};
- }
- > a {
- padding-bottom: #{0.5 * map-deep-get($config-global, "spacing", "unit")};
- padding-top: #{0.5 * map-deep-get($config-global, "spacing", "unit")};
- &::before,
- &::after {
- margin: 0;
- }
- }
- > .sub-menu {
- background: map-deep-get($config-global, "color", "foreground", "dark");
- box-shadow: none;
- left: auto;
- right: 0;
- text-align: right;
- }
- }
- }
- }
- }
- }
- // Toggle Menu
- #site-navigation #toggle:focus + #toggle-menu,
- #toggle-menu {
- text-decoration: none;
- }
- #site-navigation #toggle-menu {
- align-items: center;
- display: flex;
- padding: #{0.5 * map-deep-get($config-global, "spacing", "unit")} #{map-deep-get($config-global, "spacing", "unit")};
- &::after {
- content: "";
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z'/%3E%3C/svg%3E");
- display: block;
- height: 24px;
- margin: 0;
- margin-left: #{0.25 * map-deep-get($config-global, "spacing", "unit")};
- width: 24px;
- }
- @include media(mobile) {
- display: none;
- }
- }
- #site-navigation #toggle:checked + #toggle-menu {
- &::after {
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'%3E%3C/path%3E%3C/svg%3E");
- }
- }
- /**
- * Content Area
- */
- .site-main > * {
- margin-bottom: #{map-deep-get($config-global, "spacing", "vertical")};
- margin-top: #{map-deep-get($config-global, "spacing", "vertical")};
- @include media(mobile) {
- margin-bottom: #{2 * map-deep-get($config-global, "spacing", "vertical")};
- margin-top: #{2 * map-deep-get($config-global, "spacing", "vertical")};
- }
- }
- @include media(mobile) {
- #main {
- padding-top: #{2 * map-deep-get($config-global, "spacing", "vertical")};
- .hide-homepage-header & {
- padding-top: 0;
- }
- }
- }
- @include media(tablet) {
- #primary {
- margin-top: 44px; // JS Fallback
- }
- }
- /**
- * Post Navigation
- */
- .post-navigation {
- border-bottom: 1px solid #{map-deep-get($config-global, "color", "border", "default")};
- border-top: 2px solid #{map-deep-get($config-global, "color", "border", "default")};
- padding: #{0.5 * map-deep-get($config-global, "spacing", "vertical")} 0;
- .meta-nav {
- color: #{map-deep-get($config-global, "color", "foreground", "light")};
- @include font-family( map-deep-get($config-global, "font", "family", "ui") );
- font-weight: bold;
- text-transform: uppercase;
- }
- .post-title {
- font-size: inherit;
- }
- }
- /**
- * Hentry
- */
- // Entry Header
- .entry-header {
- .entry-meta {
- display: none;
- }
- }
- // Entry Title
- .entry-header,
- .page-title,
- .a8c-posts-list-item__title,
- .a8c-posts-list .a8c-posts-list-item__featured {
- text-align: center;
- }
- // Entry Footer
- .entry-footer {
- text-align: center;
- }
- // Sticky Post
- .sticky-post,
- .a8c-posts-list .a8c-posts-list-item__featured span {
- background: #{map-deep-get($config-global, "color", "secondary", "default")};
- color: #{map-deep-get($config-global, "color", "background", "default")};
- @include font-family( map-deep-get($config-global, "font", "family", "ui") );
- text-transform: uppercase;
- }
- // Remove margin if alignfull is first element
- .home.hide-homepage-title {
- .hentry .entry-content {
- & > *:first-child {
- &.alignfull {
- margin-top: -#{map-deep-get($config-global, "spacing", "unit")};
- @include media(mobile) {
- margin-top: -#{2 * map-deep-get($config-global, "spacing", "vertical")};
- }
- }
- }
- }
- }
- // Remove margin if alignfull is first element and header is hidden.
- @include media(mobile) {
- .home.page.hide-homepage-header.hide-homepage-title .hentry .entry-content {
- > .wp-block-image.alignfull:first-child,
- > .wp-block-cover.alignfull:first-child,
- > .wp-block-media-text.alignfull:first-child,
- > .wp-block-group.has-background.alignfull:first-child {
- margin-top: -#{2.75 * map-deep-get($config-global, "spacing", "unit")};
- }
- }
- }
- // Remove margin if alignfull is last element
- .page:not(.logged-in) {
- .hentry .entry-content {
- & > *:last-child {
- &.alignfull {
- margin-bottom: -#{map-deep-get($config-global, "spacing", "vertical")};
- @include media(mobile) {
- margin-bottom: -#{2 * map-deep-get($config-global, "spacing", "vertical")};
- }
- }
- }
- }
- }
- // Author Bio
- .author-bio {
- border: 2px solid #{map-deep-get($config-global, "color", "border", "default")};
- padding: #{map-deep-get($config-global, "spacing", "unit")};
- .author-title {
- font-size: inherit;
- }
- }
- /**
- * Blocks
- */
- // Cover & Hero block
- .wp-block-cover .wp-block-cover__inner-container,
- .wp-block-coblocks-hero .wp-block-coblocks-hero__box {
- & > * {
- margin-top: #{0.666 * map-deep-get($config-global, "spacing", "vertical")};
- margin-bottom: #{0.666 * map-deep-get($config-global, "spacing", "vertical")};
- @include media(mobile) {
- margin-top: map-deep-get($config-global, "spacing", "vertical");
- margin-bottom: map-deep-get($config-global, "spacing", "vertical");
- }
- &:first-child {
- margin-top: 0;
- }
- &:last-child {
- margin-bottom: 0;
- }
- }
- }
- // Pullquote
- .wp-block-pullquote {
- border-bottom-width: 1px;
- blockquote {
- padding: 0;
- }
- }
- // Table block
- table,
- .wp-block-table {
- td,
- th {
- border-color: #{map-deep-get($config-global, "color", "border", "default")};
- }
- }
- // Blog Posts Listing
- .a8c-posts-list {
- text-align: center;
- }
- .a8c-posts-list__item {
- margin-bottom: #{map-deep-get($config-global, "spacing", "vertical")};
- margin-top: #{map-deep-get($config-global, "spacing", "vertical")};
- @include media(mobile) {
- margin-bottom: #{2 * map-deep-get($config-global, "spacing", "vertical")};
- margin-top: #{2 * map-deep-get($config-global, "spacing", "vertical")};
- }
- .a8c-posts-list-item__meta {
- text-align: center;
- }
- }
- .a8c-posts-list__listing {
- text-align: left;
- &:not(:last-child) {
- margin-bottom: #{map-deep-get($config-global, "spacing", "vertical")};
- @include media(mobile) {
- margin-bottom: #{2 * map-deep-get($config-global, "spacing", "vertical")};
- }
- }
- }
- /**
- * Blog Posts (Newspack)
- */
- .wp-block-newspack-blocks-homepage-articles {
- article {
- .entry-title a {
- &:active,
- &:focus,
- &:hover {
- text-decoration: none;
- }
- }
- .cat-links a,
- .more-link,
- .entry-meta a {
- text-decoration: none;
- &:active,
- &:focus,
- &:hover {
- text-decoration: underline;
- }
- }
- }
- &.image-alignbehind article {
- .entry-title a {
- &:active,
- &:focus,
- &:hover {
- text-decoration: underline;
- }
- }
- }
- }
- .has-background:not(.has-background-background-color),
- [class*="background-color"]:not(.has-background-background-color),
- [style*="background-color"] {
- .wp-block-newspack-blocks-homepage-articles article {
- .entry-title a {
- &:active,
- &:focus,
- &:hover {
- text-decoration: underline;
- }
- }
- }
- }
- /**
- * Comments
- */
- .comments-title {
- text-align: center;
- }
- .comment-list {
- > li:first-child {
- border-top-width: 2px;
- }
- }
- .comment-body {
- content: "";
- display: table;
- table-layout: fixed;
- width: 100%;
- }
- .comment-meta .comment-metadata {
- @include font-family( map-deep-get($config-global, "font", "family", "ui") );
- font-size: #{map-deep-get($config-global, "font", "size", "sm")};
- font-weight: bold;
- text-transform: uppercase;
- }
- .reply {
- font-size: #{map-deep-get($config-global, "font", "size", "sm")};
- }
- .comment-reply-title {
- display: inherit;
- text-align: center;
- }
- .comment .comment-reply-title {
- display: flex;
- }
- .comment-respond {
- .form-submit {
- display: flex;
- justify-content: center;
- }
- }
- @include media(tablet) {
- .comment-meta {
- border-right: 1px solid #{map-deep-get($config-global, "color", "border", "default")};
- display: block;
- float: left;
- padding-right: #{map-deep-get($config-global, "spacing", "horizontal")};
- width: 20%;
- .comment-author {
- display: block;
- width: 100%;
- .avatar,
- .fn {
- display: block;
- margin-bottom: #{0.25 * map-deep-get($config-global, "spacing", "vertical")};
- }
- }
- }
- .comment-content,
- .reply {
- float: right;
- width: 75%;
- width: calc(80% - #{map-deep-get($config-global, "spacing", "horizontal")} - 1px);
- }
- }
- .comment-navigation a {
- font-size: inherit;
- font-weight: bold;
- }
- /**
- * Widgets
- */
- // Widget Area
- .widget-area {
- width: 100%;
- &::before {
- background: map-deep-get($config-global, "color", "border", "default");
- height: 1px;
- content: "";
- display: block;
- margin-bottom: #{0.666 * map-deep-get($config-global, "spacing", "vertical")};
- @include media(mobile) {
- margin-bottom: #{2 * map-deep-get($config-global, "spacing", "vertical")};
- }
- @extend %responsive-alignfull;
- }
- .widget-title,
- .widgettitle {
- font-size: #{map-deep-get($config-global, "font", "size", "base")};
- @include font-family( map-deep-get($config-global, "font", "family", "ui") );
- margin-bottom: #{0.5 * map-deep-get($config-global, "spacing", "vertical")};
- &:empty {
- display: none;
- }
- }
- @include media(laptop) {
- column-gap: #{map-deep-get($config-global, "spacing", "horizontal")};
- display: flex;
- flex-wrap: wrap;
- justify-content: space-between;
- & > *:nth-child(n + 2) {
- margin-top: 0;
- }
- .widget {
- flex: calc(50% - #{map-deep-get($config-global, "spacing", "horizontal")});
- }
- }
- }
- // Widgets
- .widget_calendar,
- .widget_calendar {
- caption {
- font-weight: bold;
- }
- td,
- th {
- text-align: center;
- }
- }
- .widget_archive,
- .widget_categories,
- .widget_links,
- .widget_meta,
- .widget_nav_menu,
- .widget_pages,
- .widget_recent_comments,
- .widget_recent_entries,
- .widget_rss,
- .widget_rss_links,
- .widget_top-posts,
- .widget_authors,
- .widget_jp_blogs_i_follow,
- .widget_top-click,
- .widget_upcoming_events_widget {
- ul {
- border-bottom: 1px solid map-deep-get($config-global, "color", "border", "default");
- list-style: none;
- padding-left: 0;
- }
- li {
- border-top: 1px solid map-deep-get($config-global, "color", "border", "default");
- padding: #{0.25 * map-deep-get($config-global, "spacing", "vertical")} 0;
- }
- }
- .widget_categories .children,
- .widget_nav_menu .sub-menu,
- .widget_pages .children {
- border-bottom: 0;
- margin-bottom: #{-0.25 * map-deep-get($config-global, "spacing", "vertical")};
- margin-top: #{0.25 * map-deep-get($config-global, "spacing", "vertical")};
- padding-left: map-deep-get($config-global, "spacing", "horizontal");
- }
- .widget_recent_entries .post-date {
- display: block;
- }
- .widget_rss {
- cite,
- .rssSummary,
- .rss-date {
- display: block;
- }
- }
- .widget_search {
- input[type="search"] {
- display: block;
- margin-bottom: #{0.25 * map-deep-get($config-global, "spacing", "vertical")};
- width: 100%;
- }
- }
- /**
- * Social Menu
- */
- .social-navigation {
- background: #{map-deep-get($config-global, "color", "foreground", "dark")};
- padding: #{map-deep-get($config-global, "spacing", "vertical")} 0;
- width: calc(100% + #{map-deep-get($config-global, "spacing", "horizontal")});
- @extend %responsive-alignfull;
- .social-links-menu {
- margin: 0;
- padding: 0 #{map-deep-get($config-global, "spacing", "horizontal")};
- text-align: center;
- }
- }
- /**
- * Footer
- */
- .site-footer {
- align-items: unset;
- flex-direction: column;
- padding-left: 0;
- padding-right: 0;
- }
- .site-footer > * {
- padding-left: #{map-deep-get($config-global, "spacing", "horizontal")};
- padding-right: #{map-deep-get($config-global, "spacing", "horizontal")};
- }
- /**
- * Footer Menu
- */
- .footer-navigation {
- display: block;
- flex: 1 0 100%;
- order: 1;
- text-align: center;
- .footer-menu {
- justify-content: center;
- text-align: inherit;
- > li {
- &:not(:first-child)::before {
- color: map-deep-get($config-global, "color", "border", "dark");
- content: "\2022";
- font-family: Arial, Helvetica, sans-serif; // For browsers without CSS custom properties support.
- font-family: var(--font-headings, "Arial, Helvetica, sans-serif");
- }
- }
- }
- @include media(mobile) {
- margin-bottom: #{0.25 * map-deep-get($config-global, "spacing", "vertical")};
- }
- }
- /**
- * Site Info
- */
- .site-info {
- font-weight: bold;
- text-align: center;
- a {
- font-weight: inherit;
- }
- }
- /**
- * Buttons
- */
- .button,
- .wp-block-button__link,
- .wp-block-file__button,
- .a8c-posts-list__view-all {
- position: relative;
- &::before {
- border: 2px solid;
- border-radius: inherit;
- content: "";
- display: block;
- left: 3px;
- margin: 0;
- position: absolute;
- top: 3px;
- height: calc(100% - 6px);
- width: calc(100% - 6px);
- }
- }
- button,
- input[type="submit"] {
- outline: 2px solid;
- outline-offset: -5px;
- }
- /**
- * AMP Support
- */
- html[amp] {
- @include media( tablet ) {
- #masthead {
- position: sticky;
- top: 0;
- }
- .logged-in #masthead {
- top: 32px;
- }
- }
- @media screen and ( max-width: 782px ) {
- .logged-in #masthead {
- top: 46px;
- }
- }
- }
- /**
- * Search block
- */
- .wp-block-search {
- .wp-block-search__input {
- margin-right: calc(0.1 * #{map-deep-get($config-button, "padding", "horizontal")});
- }
- .wp-block-search__button {
- margin-left: calc(0.1 * #{map-deep-get($config-button, "padding", "horizontal")});
- }
- }
|