123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431 |
- $color_primary_default: #{map-deep-get($config-global, "color", "primary", "default")};
- $color_primary_hover: #{map-deep-get($config-global, "color", "primary", "hover")};
- /**
- * General Helper Styles
- */
- body {
- background: #{map-deep-get($config-global, "color", "foreground", "default")};
- }
- .home.hide-homepage-title {
- .hentry .entry-content {
- & > *:first-child {
- &.alignfull {
- margin-top: -#{map-deep-get($config-global, "spacing", "unit")};
- @include media(mobile) {
- margin-top: -#{3 * map-deep-get($config-global, "spacing", "unit")};
- }
- }
- }
- }
- }
- @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: -#{3 * map-deep-get($config-global, "spacing", "unit")};
- }
- }
- }
- a {
- text-decoration: none;
- }
- .main-navigation {
- margin-bottom: 0;
- text-transform: uppercase;
- }
- .main-navigation > div > ul,
- .social-navigation > div > ul,
- .pagination .nav-links {
- justify-content: center;
- }
- #page {
- background: #{map-deep-get($config-global, "color", "background", "default")};
- margin-left: auto;
- margin-right: auto;
- @include media(tablet) {
- max-width: 90vw;
- }
- @include media(laptop) {
- max-width: 85vw;
- }
- @include media(wide) {
- max-width: 1180px;
- }
- }
- .responsive-max-width:not(.site-header),
- .wp-block-pullquote.is-style-solid-color:not(.alignleft):not(.alignright) blockquote,
- .wp-block-pullquote.alignwide > p,
- .wp-block-pullquote.alignfull > p,
- .wp-block-pullquote.alignwide blockquote,
- .wp-block-pullquote.alignfull blockquote,
- hr.wp-block-separator.is-style-wide,
- .entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator),
- .entry-content [class*="inner-container"] > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator),
- .entry-content .wp-audio-shortcode, .post-navigation, .pagination {
- width: calc(100% - #{4 * map-deep-get($config-global, "spacing", "unit")});
- }
- /**
- * Header
- */
- #masthead {
- align-items: center;
- display: flex;
- flex-direction: column;
- justify-content: flex-start;
- margin: 0 auto;
- max-width: 100%;
- padding: 0;
- // Site Branding
- .site-branding {
- text-align: center;
- padding: #{map-deep-get($config-global, "spacing", "unit")} 0 0;
- @include media(tablet) {
- padding: #{3 * map-deep-get($config-global, "spacing", "unit")} 0 #{2 * map-deep-get($config-global, "spacing", "unit")};
- }
- }
- // Social Navigation
- .social-navigation {
- order: 1;
- margin-bottom: #{map-deep-get($config-global, "spacing", "unit")};
- margin-top: 0;
- @include media(tablet) {
- margin-bottom: #{3 * map-deep-get($config-global, "spacing", "unit")};
- margin-top: -#{2 * map-deep-get($config-global, "spacing", "unit")};
- }
- ul {
- flex-wrap: wrap;
- margin: 0 auto;
- li {
- margin-left: #{0.25 * map-deep-get($config-global, "spacing", "unit")};
- margin-right: #{0.25 * map-deep-get($config-global, "spacing", "unit")};
- a {
- align-items: center;
- background: $color_primary_default;
- border-radius: 50%;
- display: flex;
- height: #{3 * map-deep-get($config-global, "spacing", "unit")};
- justify-content: center;
- width: #{3 * map-deep-get($config-global, "spacing", "unit")};
- &:active,
- &:focus,
- &:hover {
- background: $color_primary_hover;
- }
- }
- }
- }
- }
- }
- /**
- * Page
- */
- .site {
- margin: 0 auto;
- padding: 0;
- }
- .site-main {
- @include media(mobile) {
- padding-top: #{3 * map-deep-get($config-global, "spacing", "unit")};
- }
- }
- #page {
- .entry-header,
- .page-header,
- .entry-footer,
- .a8c-posts-list {
- text-align: center;
- }
- .a8c-posts-list-item__excerpt {
- text-align: left;
- }
- }
- /**
- * Footer Menu
- */
- .footer-navigation {
- order: 1;
- text-align: center;
- text-transform: uppercase;
- @include media(mobile) {
- flex: 1 0 100%;
- }
- .footer-menu {
- justify-content: center;
- a {
- padding: #{0.5 * map-deep-get($config-global, "spacing", "unit")};
- }
- > li:first-of-type {
- > a {
- padding-left: #{0.5 * map-deep-get($config-global, "spacing", "unit")};
- }
- }
- > li:last-of-type {
- > a {
- padding-right: #{0.5 * map-deep-get($config-global, "spacing", "unit")};
- }
- }
- }
- }
- /**
- * Site Info
- */
- .site-info {
- margin-top: 0;
- text-align: center;
- .footer-navigation + & {
- margin-top: #{0.5 * map-deep-get($config-global, "spacing", "unit")};
- }
- }
- /**
- * Archive Pagination and Post Navigation
- */
- .pagination .nav-links > *,
- .post-navigation .post-title {
- font-weight: 400;
- }
- /**
- * Post
- */
- // Entry Header
- .entry-header,
- .a8c-posts-list-item__title {
- a {
- color: inherit;
- &:active,
- &:focus,
- &:hover {
- color: $color_primary_default;
- }
- }
- }
- // Sticky Post
- .sticky-post,
- .a8c-posts-list .a8c-posts-list-item__featured span {
- background: #{map-deep-get($config-global, "color", "background", "light")};
- color: #{map-deep-get($config-global, "color", "foreground", "light")};
- @include font-family( map-deep-get($config-global, "font", "family", "ui") );
- //text-transform: uppercase;
- }
- /**
- * Blocks
- */
- // Button
- .entry-content > .wp-block-button:not(.alignleft):not(.alignright) {
- margin-left: auto;
- margin-right: auto;
- text-align: center;
- }
- // Business Hours
- .jetpack-business-hours {
- dt {
- font-family: inherit;
- font-family: var( --font-base, inherit );
- }
- }
- // Category
- .wp-block-categories {
- .children {
- list-style: disc;
- > li {
- border: 0;
- margin-bottom: 0;
- margin-top: 0;
- }
- }
- }
- // Pullquote
- .wp-block-pullquote {
- blockquote {
- padding: 0;
- }
- }
- // Separator
- .wp-block-separator {
- border-bottom-color: #{map-deep-get($config-global, "color", "border", "default")};
- border-bottom-width: #{map-deep-get($config-separator, "height")};
- }
- // Table block
- table,
- .wp-block-table {
- td,
- th {
- border-color: #{map-deep-get($config-global, "color", "border", "default")};
- }
- }
- .wp-block-newspack-blocks-homepage-articles {
- article {
- .entry-title a {
- color: inherit;
- &:active,
- &:focus,
- &:hover {
- color: map-deep-get($config-global, "color", "primary", "default");
- 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 {
- color: inherit;
- 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;
- }
- }
- }
- }
- /**
- * Widgets
- */
- .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;
- }
- }
- /**
- * Search block
- */
- .wp-block-search {
- .wp-block-search__input {
- margin-right: calc( .1 * #{map-deep-get($config-button, "padding", "horizontal")} );
- }
- }
- /* center pullquote block when set to be full width */
- .wp-block-pullquote.alignfull blockquote {
- margin: auto;
- }
|