clone of olivero for island lives
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.

316 lines
6.9 KiB

12 months ago
/*
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/3084859
* @preserve
*/
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. */
12 months ago
/* Breakpoint where tabs switch between vertical and horizontal layouts. */
12 months ago
[dir="ltr"] .tabs {
margin-left: 0
}
[dir="rtl"] .tabs {
margin-right: 0
}
12 months ago
.tabs {
--tabs-height: var(--sp3);
--tabs-padding-inline: var(--sp1-5);
--tabs-active-border-size: 0.375rem;
--tabs-highlight-color: var(--color--primary-50); /* Minimum 3:1 contrast ratio against --tabs-background-color and --tabs-background-color-hover. */
--tabs-text-color: var(--color-text-neutral-soft); /* Minimum 4.5:1 contrast ratio against --tabs-background-color and --tabs-background-color-hover. */
--tabs-text-color-active: var(--color--gray-5); /* Minimum 4.5:1 contrast ratio against --tabs-background-color and --tabs-background-color-hover. */
--tabs-letter-spacing: 1px;
--tabs-font-size: var(--font-size-s);
--tabs-background-color: var(--color--gray-100);
--tabs-background-color-hover: var(--color--gray-95);
--tabs-border-width: 1px;
--tabs-border-color: var(--color--gray-95);
--tabs-transition-duration: 0.2s;
display: flex;
flex-direction: column;
width: 100%;
12 months ago
margin: 0; /* Override [dir] attribute in base <ul> in compiled CSS. */
12 months ago
padding: 0;
12 months ago
list-style: none
12 months ago
}
12 months ago
12 months ago
@media (min-width: 43.75rem) {
12 months ago
.tabs {
12 months ago
flex-direction: row;
12 months ago
flex-wrap: wrap
12 months ago
}
12 months ago
}
12 months ago
.tabs__tab {
display: none;
margin: 0;
12 months ago
margin-bottom: calc(var(--tabs-border-width)*-1)
12 months ago
}
12 months ago
12 months ago
.tabs__tab.is-active {
12 months ago
display: flex;
}
12 months ago
@media (min-width: 43.75rem) {
12 months ago
[dir="ltr"] .tabs__tab {
margin-left: calc(var(--tabs-border-width)*-1)
}
[dir="rtl"] .tabs__tab {
margin-right: calc(var(--tabs-border-width)*-1)
}
.tabs__tab {
12 months ago
display: flex;
12 months ago
margin-bottom: 0
}
12 months ago
}
12 months ago
.tabs__tab {
/* Show tabs when JavaScript disabled. */
12 months ago
}
12 months ago
12 months ago
html:not(.js) .tabs__tab {
12 months ago
display: flex
}
.tabs__tab {
/* Show tabs when tabs-expanded class is present. */
12 months ago
}
12 months ago
12 months ago
.tabs.is-expanded .tabs__tab {
12 months ago
display: flex
}
.tabs__tab {
/* Secondary tabs will always be expanded. */
12 months ago
}
12 months ago
12 months ago
.tabs--secondary .tabs__tab {
12 months ago
display: block
12 months ago
}
12 months ago
12 months ago
@media (min-width: 43.75rem) {
12 months ago
.tabs--secondary .tabs__tab {
display: flex
12 months ago
}
12 months ago
}
12 months ago
.tabs__link {
display: flex;
flex-grow: 1;
align-items: center;
height: var(--tabs-height);
12 months ago
padding-top: 0;
padding-bottom: 0;
padding-left: var(--tabs-padding-inline);
padding-right: var(--tabs-padding-inline);
12 months ago
transition: background-color var(--tabs-transition-duration);
text-decoration: none;
letter-spacing: var(--tabs-letter-spacing);
color: var(--tabs-text-color);
border: var(--tabs-border-width) solid var(--tabs-border-color);
background-color: var(--tabs-background-color);
12 months ago
font-size: var(--tabs-font-size)
12 months ago
}
12 months ago
12 months ago
.tabs__link:hover {
12 months ago
color: var(--tabs-text-color-active);
background-color: var(--tabs-background-color-hover);
}
12 months ago
.tabs__link:focus {
12 months ago
position: relative;
outline: solid 3px var(--tabs-highlight-color);
outline-offset: -3px;
}
12 months ago
.tabs__link.is-active {
12 months ago
position: relative; /* Anchor ::after pseudo-element. */
color: var(--tabs-text-color-active);
font-weight: 600
12 months ago
12 months ago
/*
12 months ago
* We use ::after pseudo-element in place of border so edges do not appear
* diagonally cut off due to other edges with transparent borders.
*/
12 months ago
}
[dir="ltr"] .tabs__link.is-active::after {
left: calc(var(--tabs-border-width)*-1)
12 months ago
}
12 months ago
[dir="rtl"] .tabs__link.is-active::after {
right: calc(var(--tabs-border-width)*-1)
12 months ago
}
12 months ago
[dir="ltr"] .tabs__link.is-active::after {
border-left: var(--tabs-active-border-size) solid var(--tabs-highlight-color)
}
[dir="rtl"] .tabs__link.is-active::after {
border-right: var(--tabs-active-border-size) solid var(--tabs-highlight-color)
}
.tabs__link.is-active::after {
position: absolute;
top: calc(var(--tabs-border-width)*-1);
height: calc(100% + var(--tabs-border-width)*2);
content: ""
}
12 months ago
@media (min-width: 43.75rem) {
12 months ago
[dir="ltr"] .tabs__link.is-active::after {
border-left: 0
}
[dir="rtl"] .tabs__link.is-active::after {
border-right: 0
12 months ago
}
12 months ago
.tabs__link.is-active::after {
top: auto;
bottom: calc(var(--tabs-border-width)*-1);
width: calc(100% + var(--tabs-border-width)*2);
height: 0;
border-top: var(--tabs-active-border-size) solid var(--tabs-highlight-color)
}
}
.tabs__link {
/* No regular borders or background color for secondary tab links. */
12 months ago
}
12 months ago
12 months ago
@media (min-width: 43.75rem) {
12 months ago
.tabs--secondary .tabs__link {
border-color: transparent;
background-color: transparent
12 months ago
}
12 months ago
}
12 months ago
/* Button that opens and closes primary tabs at narrow viewports. */
12 months ago
[dir="ltr"] .tabs__trigger {
margin-left: calc(var(--tabs-border-width)*-1);
margin-right: 0
}
[dir="rtl"] .tabs__trigger {
margin-right: calc(var(--tabs-border-width)*-1);
margin-left: 0
}
12 months ago
.tabs__trigger {
display: flex;
align-items: center;
justify-content: center;
width: var(--tabs-height);
12 months ago
margin-top: 0;
margin-bottom: 0;
12 months ago
cursor: pointer;
border: solid var(--tabs-border-width) var(--tabs-border-color);
12 months ago
background-color: var(--tabs-background-color)
12 months ago
}
12 months ago
12 months ago
.tabs__trigger:hover {
12 months ago
background-color: var(--tabs-background-color-hover);
}
12 months ago
.tabs__trigger:focus {
12 months ago
position: relative;
border-color: var(--tabs-highlight-color);
outline: none;
}
.tabs__trigger {
/* Button will not work when JavaScript is disabled, so we hide it. */
12 months ago
}
12 months ago
12 months ago
html:not(.js) .tabs__trigger {
12 months ago
display: none
12 months ago
}
12 months ago
12 months ago
@media (min-width: 43.75rem) {
12 months ago
.tabs__trigger {
display: none
12 months ago
}
12 months ago
}
12 months ago
.tabs__trigger-icon {
position: relative;
display: block;
width: var(--sp);
height: 0.625rem;
12 months ago
margin-top: calc(var(--tabs-border-width)*-2)
12 months ago
}
12 months ago
[dir="ltr"] .tabs__trigger-icon > span {
left: 0
12 months ago
}
12 months ago
[dir="rtl"] .tabs__trigger-icon > span {
right: 0
12 months ago
}
12 months ago
.tabs__trigger-icon > span {
position: absolute;
display: block;
width: 100%;
transition: transform var(--tabs-transition-duration), opacity var(--tabs-transition-duration), top var(--tabs-transition-duration);
border-top: solid 2px var(--tabs-highlight-color)
}
.tabs__trigger-icon > span:nth-child(1) {
top: 0
}
.tabs__trigger[aria-expanded="true"] .tabs__trigger-icon > span:nth-child(1) {
top: calc(50% + 1px);
transform: rotate(45deg)
}
12 months ago
.tabs__trigger-icon > span:nth-child(2) {
12 months ago
top: calc(50% + 1px)
}
.tabs__trigger[aria-expanded="true"] .tabs__trigger-icon > span:nth-child(2) {
opacity: 0
}
12 months ago
.tabs__trigger-icon > span:nth-child(3) {
12 months ago
top: calc(100% + 2px)
}
.tabs__trigger[aria-expanded="true"] .tabs__trigger-icon > span:nth-child(3) {
top: calc(50% + 1px);
transform: rotate(-45deg)
}