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.

184 lines
3.6 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
* Collapsible details.
*/
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. */
1 year ago
.olivera-details {
display: block;
12 months ago
margin-top: var(--sp1);
margin-bottom: var(--sp1);
1 year ago
color: inherit;
12 months ago
border: 1px solid var(--color--gray-95);
1 year ago
border-radius: var(--border-radius);
box-shadow: 0 1px 4px var(--color--gray-90);
}
/* Details summary styles */
12 months ago
[dir="ltr"] .olivera-details__summary {
padding-left: var(--sp2);
}
[dir="rtl"] .olivera-details__summary {
padding-right: var(--sp2);
}
[dir="ltr"] .olivera-details__summary {
padding-right: var(--sp1);
}
[dir="rtl"] .olivera-details__summary {
padding-left: var(--sp1);
}
1 year ago
.olivera-details__summary {
position: relative;
12 months ago
padding-top: var(--sp1);
padding-bottom: var(--sp1);
1 year ago
list-style: none;
cursor: pointer;
12 months ago
transition: background-color 0.12s ease-in-out;
1 year ago
word-wrap: break-word;
-webkit-hyphens: auto;
12 months ago
-ms-hyphens: auto;
1 year ago
hyphens: auto;
color: inherit;
background-color: var(--color--gray-100);
font-size: var(--line-height-s);
font-weight: 700;
line-height: var(--sp1);
}
/* Arrow icon */
12 months ago
[dir="ltr"] .olivera-details__summary::before {
left: var(--sp0-75);
}
[dir="rtl"] .olivera-details__summary::before {
right: var(--sp0-75);
}
1 year ago
.olivera-details__summary::before {
position: absolute;
12 months ago
top: 50%;
1 year ago
display: block;
width: 0.625rem;
height: 0.625rem;
content: "";
transform: translateY(-50%) rotate(45deg); /* LTR */
border-top: solid 2px currentColor;
border-right: solid 2px currentColor;
}
[dir="rtl"] .olivera-details__summary::before {
transform: translateY(-50%) rotate(-135deg);
}
/* Pseudo-selector to manage focus styles */
.olivera-details__summary::after {
position: absolute;
12 months ago
top: -1px;
right: -1px;
bottom: -1px;
left: -1px;
1 year ago
content: "";
pointer-events: none;
opacity: 0;
border-radius: var(--border-radius);
box-shadow: inset 0 0 0 2px var(--color--primary-60);
}
/* Hide the marker */
.olivera-details__summary::-webkit-details-marker {
display: none;
}
/* Disable default outline for summary, since we have own implementation */
.olivera-details__summary:focus {
outline: solid 2px transparent;
outline-offset: -4px;
}
/* Details summary, hover state */
.olivera-details__summary:hover {
background-color: var(--color--gray-95);
}
/* Details summary, focus and active states */
.olivera-details__summary:focus::after,
.olivera-details__summary:active::after {
opacity: 1;
}
/* Rotate arrow icon of the details summary, when details expanded */
.olivera-details[open] > .olivera-details__summary::before {
12 months ago
margin-top: -2px;
1 year ago
transform: translateY(-50%) rotate(135deg);
}
/* Details content wrapper */
.olivera-details__wrapper {
12 months ago
margin: var(--sp1)
1 year ago
}
@media (min-width: 62.5rem) {
12 months ago
[dir="ltr"] .olivera-details__wrapper {
margin-left: var(--sp2);
}
[dir="rtl"] .olivera-details__wrapper {
margin-right: var(--sp2);
1 year ago
}
12 months ago
[dir="ltr"] .olivera-details__wrapper {
margin-right: var(--sp2);
}
[dir="rtl"] .olivera-details__wrapper {
margin-left: var(--sp2);
}
.olivera-details__wrapper {
margin-top: var(--sp1-5);
margin-bottom: var(--sp1-5)
1 year ago
}
12 months ago
}
1 year ago
/* Description */
.olivera-details__description {
12 months ago
margin-bottom: var(--sp1);
1 year ago
color: var(--color-text-neutral-medium);
font-size: var(--font-size-xs);
line-height: var(--line-height-s);
}