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.

130 lines
2.8 KiB

11 months ago
/*
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/3084859
* @preserve
*/
/**
* @file
* Site header.
*/
10 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. */
11 months ago
.site-header {
position: relative;
/**
* Ensure mobile site header is always above other elements including
* contextual links, and Tour.
*/
10 months ago
z-index: 101
11 months ago
}
@media (min-width: 75rem) {
10 months ago
.site-header {
11 months ago
/* Necessary to keep the content from jumping up when header transitions to fixed. */
min-height: var(--site-header-height-wide);
10 months ago
border-bottom: solid 1px transparent /* Will show in Windows high contrast mode. */
11 months ago
}
10 months ago
}
11 months ago
.site-header__initial {
position: relative;
z-index: 102;
display: flex;
align-items: flex-end;
10 months ago
-ms-grid-row-align: stretch;
11 months ago
align-self: stretch;
background-color: var(--color--primary-50);
}
.site-header__fixable {
display: flex;
align-items: flex-end;
10 months ago
transition: all 0.5s
11 months ago
}
@media (min-width: 75rem) {
10 months ago
.site-header__fixable.is-fixed:not(.is-expanded) {
pointer-events: none;
}
}
11 months ago
@media (min-width: 75rem) {
10 months ago
body:not(.is-always-mobile-nav) .site-header__fixable.is-fixed {
position: fixed;
z-index: 102; /* Appear above body content that is position: relative */
top: calc(0px - var(--sp4));
max-width: var(--max-bg-color);
}
11 months ago
}
.site-header__inner {
position: relative;
z-index: 1; /* Appear in front of Drupal's tabs. */
flex-grow: 1;
10 months ago
width: calc(100vw - var(--content-left));
11 months ago
background: var(--color--white);
}
/*
* Only apply transition styles when JS is loaded. This
* works around https://bugs.chromium.org/p/chromium/issues/detail?id=332189
*/
@media (min-width: 75rem) {
10 months ago
html.js body:not(.is-always-mobile-nav) .site-header__inner {
transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s
11 months ago
}
10 months ago
}
11 months ago
@media (min-width: 75rem) {
10 months ago
.site-header__fixable.is-expanded .site-header__inner {
box-shadow: -36px 1px 36px rgba(0, 0, 0, 0.08) /* LTR */
11 months ago
}
10 months ago
}
11 months ago
@media (min-width: 75rem) {
10 months ago
[dir="rtl"] .site-header__fixable.is-expanded .site-header__inner {
box-shadow: 36px 1px 36px rgba(0, 0, 0, 0.08)
11 months ago
}
10 months ago
}
11 months ago
/* Hide the desktop nav when it's fixed and not active. */
@media (min-width: 75rem) {
10 months ago
body:not(.is-always-mobile-nav) .site-header__fixable.is-fixed:not(.is-expanded) .site-header__inner {
11 months ago
transform: translateX(-101%); /* LTR */
10 months ago
opacity: 0
11 months ago
}
10 months ago
}
11 months ago
@media (min-width: 75rem) {
10 months ago
[dir="rtl"] body:not(.is-always-mobile-nav) .site-header__fixable.is-fixed:not(.is-expanded) .site-header__inner {
transform: translateX(101%)
11 months ago
}
10 months ago
}
11 months ago
.site-header__inner__container {
display: flex;
justify-content: space-between;
}