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.

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