D10 theme for Island Lives. This is a clone of drupals core theme Olivero. Notice this theme is named Olivera not Olivero :)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

239 lines
4.7 KiB

1 year ago
/*
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/3084859
* @preserve
*/
/**
* @file
* Navigation in header.
*/
12 months ago
/*
* Media query breakpoints.
* Processed by postcss/postcss-custom-media.
*/
/* Navigation related breakpoints */
/* Grid related breakpoints */
/* Grid shifts from 6 to 14 columns. */
/* Width of the entire grid maxes out. */
[dir="ltr"] .header-nav {
left: 100%
}
[dir="rtl"] .header-nav {
right: 100%
}
[dir="ltr"] .header-nav {
padding-left: var(--sp)
}
[dir="rtl"] .header-nav {
padding-right: var(--sp)
}
[dir="ltr"] .header-nav {
padding-right: var(--sp)
}
[dir="rtl"] .header-nav {
padding-left: var(--sp)
}
1 year ago
.header-nav {
position: fixed;
z-index: 501; /* Appear above overlay and contextual links in header. */
12 months ago
top: 0;
1 year ago
visibility: hidden;
overflow: auto;
/* Ensure that header nav not use additional space and force system branding
* block text to unnecessarily wrap. */
flex-basis: max-content;
width: 100%;
max-width: var(--mobile-nav-width);
height: 100%;
12 months ago
padding-top: 0;
padding-bottom: var(--sp);
1 year ago
/* Create room for the "close" button. We cannot use margin because the
* mobile navigation needs to slide beneath the button, but we also cannot
* use padding because that would enable the button to scroll out of the
* viewport on short screens. */
12 months ago
border-top: solid var(--color--white) calc(var(--sp3));
1 year ago
background-color: var(--color--white);
12 months ago
box-shadow: 0 0 72px rgba(0, 0, 0, 0.1)
1 year ago
}
.header-nav.is-active {
12 months ago
visibility: visible;
transform: translateX(-100%) /* LTR */
}
1 year ago
[dir="rtl"] .header-nav.is-active {
12 months ago
transform: translateX(100%);
}
1 year ago
@media (min-width: 31.25rem) {
12 months ago
.header-nav {
border-top-width: calc(var(--sp5))
1 year ago
}
12 months ago
}
1 year ago
@media (min-width: 43.75rem) {
12 months ago
[dir="ltr"] .header-nav {
padding-left: var(--sp3)
1 year ago
}
12 months ago
[dir="rtl"] .header-nav {
padding-right: var(--sp3)
}
.header-nav {
padding-bottom: var(--sp3);
border-top-width: calc(var(--sp7))
1 year ago
}
12 months ago
}
1 year ago
@media (min-width: 62.5rem) {
12 months ago
.header-nav {
-ms-grid-column: 5;
-ms-grid-column-span: 9;
grid-column: 5 / 14
1 year ago
}
12 months ago
}
1 year ago
12 months ago
.header-nav {
/*
1 year ago
* Ensure top border has the same color as the background when in forced colors.
*/
12 months ago
}
1 year ago
@media (forced-colors: active) {
12 months ago
.header-nav {
border-top-color: canvas
1 year ago
}
12 months ago
}
1 year ago
/*
* Only apply transition styles when JS is loaded. This
* works around https://bugs.chromium.org/p/chromium/issues/detail?id=332189
*/
html.js .header-nav {
transition: visibility 0.2s, transform 0.2s;
}
@media (min-width: 75rem) {
12 months ago
[dir="ltr"] body:not(.is-always-mobile-nav) .header-nav {
padding-left: 0
}
[dir="rtl"] body:not(.is-always-mobile-nav) .header-nav {
padding-right: 0
}
[dir="ltr"] body:not(.is-always-mobile-nav) .header-nav {
padding-right: 0
}
[dir="rtl"] body:not(.is-always-mobile-nav) .header-nav {
padding-left: 0
}
body:not(.is-always-mobile-nav) .header-nav {
1 year ago
position: static;
display: flex;
visibility: visible;
overflow: visible;
12 months ago
-ms-grid-column: 5;
-ms-grid-column-span: 10;
1 year ago
grid-column: 5 / 15;
align-items: center;
justify-content: flex-end;
max-width: none;
height: var(--header-height-wide-when-fixed);
12 months ago
margin-top: auto;
padding-top: 0;
padding-bottom: 0;
1 year ago
transition: transform 0.2s;
transform: none;
12 months ago
border-top: 0;
box-shadow: none
1 year ago
}
12 months ago
}
1 year ago
@media (min-width: 75rem) {
12 months ago
[dir="ltr"] body.is-always-mobile-nav .header-nav {
padding-right: var(--sp)
1 year ago
}
12 months ago
[dir="rtl"] body.is-always-mobile-nav .header-nav {
padding-left: var(--sp)
}
body.is-always-mobile-nav .header-nav {
overflow: auto;
max-width: calc(var(--grid-col-width)*7 + var(--grid-gap)*7);
transition: transform 0.2s, visibility 0.2s;
border-top-width: calc(var(--sp11))
}
}
1 year ago
@media (min-width: 90rem) {
12 months ago
[dir="ltr"] body.is-always-mobile-nav .header-nav {
padding-right: calc(100vw - var(--max-width) - var(--content-left) + var(--sp))
}
[dir="rtl"] body.is-always-mobile-nav .header-nav {
padding-left: calc(100vw - var(--max-width) - var(--content-left) + var(--sp))
1 year ago
}
12 months ago
body.is-always-mobile-nav .header-nav {
max-width: calc(100vw - var(--max-width) - var(--content-left) + var(--grid-col-width)*7 + var(--grid-gap)*7)
}
}
[dir="ltr"] .header-nav-overlay {
left: 0
}
[dir="rtl"] .header-nav-overlay {
right: 0
1 year ago
}
.header-nav-overlay {
position: fixed;
z-index: 101;
12 months ago
top: 0;
1 year ago
display: none;
width: 100%;
height: 100vh;
opacity: 0.2;
12 months ago
background: var(--color--gray-5)
1 year ago
}
@media (forced-colors: active) {
12 months ago
.header-nav-overlay {
background: canvastext
1 year ago
}
12 months ago
}
1 year ago
.is-overlay-active .header-nav-overlay {
12 months ago
display: block
1 year ago
}