123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643 |
- /**
- * Extra Child Theme Styles
- */
- // HTML reset
- html {
- @include font-family (map-deep-get($config-global, "font", "family", "primary") );
- }
- // Link style
- a {
- text-decoration: none;
- .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;
- }
- }
- }
- // Page
- .site {
- border-top: 5px solid map-deep-get($config-global, "color", "foreground", "default");
- position: relative;
- &:before {
- border-top: 1px solid rgba(#fff, 0.5);
- content: "";
- left: 0;
- position: absolute;
- top: -5px;
- width: 100%;
- }
- }
- // Header
- #masthead {
- padding-top: map-deep-get($config-global, "spacing", "vertical");
- .custom-logo-link {
- display: inline-block;
- margin-bottom: #{0.5 * map-deep-get($config-global, "spacing", "vertical")};
- }
- @include media(mobile) {
- align-content: center;
- align-items: center;
- display: flex;
- flex-flow: row wrap;
- justify-content: center;
- max-width: 92vw;
- padding-bottom: #{0.5 * map-deep-get($config-global, "spacing", "vertical")};
- padding-top: #{1.5 * map-deep-get($config-global, "spacing", "vertical")};
- .site-branding {
- flex: 1 100%;
- }
- .main-navigation {
- padding-left: #{2 * map-deep-get($config-global, "spacing", "horizontal")};
- padding-right: #{2 * map-deep-get($config-global, "spacing", "horizontal")};
- }
- .social-navigation {
- padding-left: #{2 * map-deep-get($config-global, "spacing", "horizontal")};
- padding-right: #{2 * map-deep-get($config-global, "spacing", "horizontal")};
- margin: 0;
- }
- }
- }
- // Footer
- #colophon {
- @include media(mobile) {
- margin-top: map-deep-get($config-global, "spacing", "vertical");
- }
- .site-info {
- @include media(mobile) {
- max-width: 92vw;
- margin-left: auto;
- margin-right: auto;
- }
- }
- .footer-navigation {
- & + .site-info {
- text-align: left;
- }
- .footer-menu > li:last-of-type > a {
- padding-right: 0;
- }
- }
- }
- // Navigation
- .main-navigation {
- #toggle-menu {
- text-transform: uppercase;
- }
- @include media(mobile) {
- a {
- padding: #{0.75 * map-deep-get($config-header, "main-nav", "link-padding")} map-deep-get($config-header, "main-nav", "link-padding");
- }
- }
- & > div > ul > li > a {
- text-transform: uppercase;
- }
- & > div {
- background: #{map-deep-get($config-global, "color", "border", "light")};
- border-radius: #{map-deep-get($config-global, "border-radius", "sm")};
- padding-left: map-deep-get($config-global, "spacing", "horizontal");
- padding-right: map-deep-get($config-global, "spacing", "horizontal");
- @include media(mobile) {
- background: none;
- border-radius: 0;
- padding-left: 0;
- padding-right: 0;
- }
- }
- @include media(mobile) {
- & > div > ul > li {
- margin: 0 #{0.25 * map-deep-get($config-global, "spacing", "horizontal")};
- }
- & > div > ul > li:first-of-type > a {
- padding-left: #{map-deep-get($config-header, "main-nav", "link-padding")};
- }
- & > div > ul > li:last-of-type > a {
- padding-right: #{map-deep-get($config-header, "main-nav", "link-padding")};
- }
- & > div > ul > li:hover,
- & > div > ul > li:focus-within,
- & > div > ul > li.current-menu-item {
- & > a {
- background: #{map-deep-get($config-global, "color", "primary", "default")};
- border-radius: #{map-deep-get($config-global, "border-radius", "sm")};
- color: #{map-deep-get($config-global, "color", "background", "default")};
- }
- & > ul {
- border-radius: #{map-deep-get($config-global, "border-radius", "sm")};
- overflow: hidden;
- }
- & li {
- & > a {
- background: #{map-deep-get($config-global, "color", "foreground", "default")};
- color: #{map-deep-get($config-global, "color", "background", "default")};
- font-weight: normal;
- }
- &:hover > a,
- &.focus > a,
- &.current-menu-item > a {
- background: #{map-deep-get($config-global, "color", "primary", "default")};
- }
- }
- }
- & > div > ul > .menu-item-has-children > a::after {
- opacity: 0.67;
- }
- }
- }
- // Center common elements
- .site-branding,
- .site-info,
- .main-navigation,
- .entry-header,
- .entry-footer,
- .page-title,
- .author-title,
- .comments-title,
- .comment-reply-title,
- .a8c-posts-list {
- text-align: center;
- }
- .main-navigation > div {
- text-align: left;
- }
- .comment-reply-title {
- display: inherit;
- }
- .comment .comment-reply-title {
- display: flex;
- }
- .main-navigation > div > ul,
- .social-navigation > div > ul,
- .pagination .nav-links {
- justify-content: center;
- }
- .home.page.hide-homepage-title .site-main {
- padding-top: 0;
- }
- .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: 0;
- }
- }
- // 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;
- }
- }
- }
- // Quote block
- .wp-block-quote {
- p {
- @include font-family( map-deep-get($config-global, "font", "family", "primary") );
- }
- }
- // Table block
- table,
- .wp-block-table {
- td,
- th {
- border-color: map-deep-get($config-global, "color", "border", "default");
- }
- }
- // Posts List block
- .a8c-posts-list-item__excerpt {
- text-align: left;
- }
- .wp-block-newspack-blocks-homepage-articles {
- article {
- .entry-title a{
- &:active,
- &:focus,
- &:hover {
- text-decoration: none;
- }
- }
- .cat-links,
- .entry-meta {
- @include font-family( map-deep-get($config-global, "font", "family", "secondary") );
- }
- .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:hover {
- text-decoration: underline;
- }
- }
- }
- // Hentry
- .entry-header {
- .entry-meta {
- display: none;
- }
- }
- .entry-footer {
- border-top: 1px solid #{map-deep-get($config-global, "color", "border", "default")};
- @include font-family( map-deep-get($config-global, "font", "family", "secondary") );
- font-size: #{map-deep-get($config-global, "font", "size", "xs")};
- padding-top: #{map-deep-get($config-global, "spacing", "unit")};
- }
- article .entry-header .entry-title,
- .page-title,
- .a8c-posts-list-item__title {
- @include font-family( map-deep-get($config-global, "font", "family", "primary") );
- font-size: #{map-deep-get($config-global, "font", "size", "xxxl")};
- margin-bottom: #{1.5 * map-deep-get($config-global, "spacing", "vertical")};
- a {
- color: inherit;
- &:active,
- &:focus,
- &:hover {
- color: #{map-deep-get($config-global, "color", "primary", "default")};
- }
- }
- }
- .wp-block-newspack-blocks-homepage-articles article .entry-title {
- @include font-family( map-deep-get($config-global, "font", "family", "primary") );
- margin-top: #{map-deep-get($config-global, "spacing", "vertical")};
- a {
- color: inherit;
- text-decoration: none;
- &:active,
- &:focus,
- &:hover {
- color: #{map-deep-get($config-global, "color", "primary", "default")};
- }
- }
- }
- .entry-content {
- @include font-family( map-deep-get($config-global, "font", "family", "primary") );
- }
- // Pagination
- .pagination {
- text-align: center;
- .nav-links > * {
- color: map-deep-get($config-global, "color", "foreground", "light");
- @include font-family( map-deep-get($config-global, "font", "family", "secondary") );
- font-size: #{map-deep-get($config-global, "font", "size", "base")};
- text-transform: uppercase;
- &.current,
- &:active,
- &:focus,
- &:hover {
- color: map-deep-get($config-global, "color", "primary", "default");
- }
- }
- svg {
- fill: currentColor;
- }
- &:before {
- background: map-deep-get($config-global, "color", "border", "default");;
- height: 1px;
- content: "";
- display: block;
- margin-bottom: #{0.5 * map-deep-get($config-global, "spacing", "vertical")};
- @include media(mobile) {
- margin-bottom: #{2 * map-deep-get($config-global, "spacing", "vertical")};
- }
- @extend %responsive-alignfull;
- }
- }
- // Post Navigation
- .post-navigation {
- a {
- color: map-deep-get($config-global, "color", "foreground", "default");
- &:active,
- &:hover,
- &:focus {
- color: map-deep-get($config-global, "color", "primary", "default");
- }
- }
- .meta-nav {
- color: map-deep-get($config-global, "color", "foreground", "light");
- @include font-family( map-deep-get($config-global, "font", "family", "secondary") );
- font-size: #{map-deep-get($config-global, "font", "size", "sm")};
- font-weight: bold;
- text-transform: uppercase;
- }
- .post-title {
- font-size: #{map-deep-get($config-global, "font", "size", "base")};
- }
- &:before {
- background: map-deep-get($config-global, "color", "border", "default");;
- height: 1px;
- content: "";
- display: block;
- margin-bottom: #{0.5 * map-deep-get($config-global, "spacing", "vertical")};
- @include media(mobile) {
- margin-bottom: #{2 * map-deep-get($config-global, "spacing", "vertical")};
- }
- @extend %responsive-alignfull;
- }
- }
- // Comments
- .comments-area {
- &:before {
- background: map-deep-get($config-global, "color", "border", "default");;
- height: 1px;
- content: "";
- display: block;
- margin-bottom: map-deep-get($config-global, "spacing", "vertical");
- @include media(mobile) {
- margin-bottom: #{2 * map-deep-get($config-global, "spacing", "vertical")};
- }
- @extend %responsive-alignfull;
- }
- .comment-list {
- border-bottom: 1px solid map-deep-get($config-global, "color", "border", "light");
- > li {
- border-top: 1px solid map-deep-get($config-global, "color", "border", "light");
- }
- }
- .children {
- > li {
- border-top: 1px solid map-deep-get($config-global, "color", "border", "light");
- }
- }
- }
- .comments-title,
- .comment-reply-title {
- @include font-family( map-deep-get($config-global, "font", "family", "primary") );
- font-size: #{map-deep-get($config-heading, "font", "size", "h3")};
- }
- .comment-meta {
- .comment-metadata {
- color: map-deep-get($config-global, "color", "foreground", "light");
- @include font-family( map-deep-get($config-global, "font", "family", "secondary") );
- a {
- color: inherit;
- }
- a:active,
- a:focus,
- a:hover {
- color: map-deep-get($config-global, "color", "primary", "default");
- }
- }
- }
- // Comments Navigation
- .comment-navigation {
- a {
- color: map-deep-get($config-global, "color", "foreground", "light");
- @include font-family( map-deep-get($config-global, "font", "family", "secondary") );
- font-size: #{map-deep-get($config-global, "font", "size", "sm")};
- text-transform: uppercase;
- &:active,
- &:focus,
- &:hover {
- color: map-deep-get($config-global, "color", "primary", "default");
- }
- }
- .comments-title + & {
- display: none;
- }
- }
- // Widgets
- .widget-area {
- font-size: #{map-deep-get($config-global, "font", "size", "sm")};
- .widget-title,
- .widgettitle {
- @include font-family( map-deep-get($config-global, "font", "family", "secondary") );
- font-size: #{map-deep-get($config-global, "font", "size", "base")};
- margin-bottom: #{0.5 * map-deep-get($config-global, "spacing", "vertical")};
- text-transform: uppercase;
- &:empty {
- display: none;
- }
- }
- @include media(mobile) {
- padding-top: map-deep-get($config-global, "spacing", "vertical");
- }
- @include media(laptop) {
- display: flex;
- flex-wrap: wrap;
- justify-content: space-between;
- & > *:nth-child(2) {
- margin-top: 0;
- }
- .widget {
- width: calc(50% - #{map-deep-get($config-global, "spacing", "horizontal")});
- }
- }
- }
- .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", "light");
- list-style: none;
- padding-left: 0;
- }
- li {
- border-top: 1px solid map-deep-get($config-global, "color", "border", "light");
- 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%;
- }
- }
- /**
- * Search block
- */
- .wp-block-search {
- &.wp-block-search__button-inside {
- .wp-block-search__inside-wrapper{
- border-radius: #{map-deep-get($config-button, "border-radius")};
- }
- .wp-block-search__input {
- background: transparent;
- }
- }
- .wp-block-search__input {
- margin-right: calc( .1 * #{map-deep-get($config-button, "padding", "horizontal")} );
- border-radius: #{map-deep-get($config-button, "border-radius")};
- }
- }
|