123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
- /**
- * Extra Child Theme Styles
- */
- html {
- letter-spacing: -0.02em;
- }
- .has-small-font-size {
- @include font-family( map-deep-get($config-global, "font", "family", "primary") );
- }
- 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;
- }
- }
- }
- /**
- * Mobile-Menu
- */
- #masthead {
- position: relative;
- }
- #toggle-menu {
- position: absolute;
- right: #{map-deep-get($config-global, "spacing", "unit")};
- top: #{map-deep-get($config-global, "spacing", "unit")};
- }
- .site-branding {
- max-width: calc(100% - 100px - #{map-deep-get($config-global, "spacing", "unit")});
- }
- .site-logo:not(:last-child) {
- padding-bottom: (0.5 * map-deep-get($config-global, "spacing", "unit"));
- }
- /**
- * CSS-grid Desktop Menu
- */
- @include media(mobile) {
- #toggle-menu {
- position: inherit;
- right: auto;
- top: auto;
- }
- .site-header {
- align-items: center;
- display: grid;
- grid-template-columns: auto;
- grid-template-rows: auto;
- grid-column-gap: #{map-deep-get($config-global, "spacing", "unit")};
- grid-template-areas:
- "site-logo site-logo"
- "site-branding main-navigation"
- "site-branding social-navigation";
- &:before,
- &:after {
- content: none;
- display: none;
- }
- & > * {
- margin-top: 0;
- margin-bottom: 0;
- }
- .site-logo {
- display: block;
- grid-area: site-logo;
- }
- .site-branding {
- align-self: baseline;
- max-width: inherit;
- grid-area: site-branding;
- }
- .main-navigation {
- align-self: baseline;
- grid-area: main-navigation;
- justify-self: end;
- & > div > ul {
- justify-content: flex-end;
- }
- }
- .social-navigation {
- grid-area: social-navigation;
- justify-self: flex-end;
- & > div > ul {
- justify-content: flex-end;
- }
- }
- }
- }
- .wp-block-newspack-blocks-homepage-articles {
- article {
- .cat-links a,
- .entry-title a,
- .entry-title a:hover,
- .entry-meta a {
- text-decoration: none;
- }
- }
- &.image-alignbehind article {
- .cat-links a:hover,
- .entry-title a:hover,
- .entry-meta a: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 {
- .cat-links a:hover,
- .entry-title a:hover,
- .entry-meta a:hover {
- text-decoration: underline;
- }
- }
- }
|