details.css in Drupal 10
Same filename in this branch
- 10 core/themes/starterkit_theme/css/components/details.css
- 10 core/themes/classy/css/components/details.css
- 10 core/themes/claro/css/components/details.css
- 10 core/themes/seven/css/components/details.css
- 10 core/themes/olivero/css/components/details.css
- 10 core/themes/bartik/css/classy/components/details.css
- 10 core/profiles/demo_umami/themes/umami/css/classy/components/details.css
Same filename and directory in other branches
Collapsible details.
File
core/themes/olivero/css/components/details.cssView source
- /*
- * DO NOT EDIT THIS FILE.
- * See the following change record for more information,
- * https://www.drupal.org/node/3084859
- * @preserve
- */
-
- /**
- * @file
- * Collapsible details.
- */
-
- /*
- * 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. */
-
- :root {
- --details-border-width: 1px;
- --details-summary-transition: background-color 0.12s ease-in-out;
- }
-
- .olivero-details {
- display: block;
- margin-top: var(--sp1);
- margin-bottom: var(--sp1);
- color: inherit;
- border: var(--details-border-width) solid var(--color--gray-95);
- border-radius: var(--border-radius);
- box-shadow: 0 1px 4px var(--color--gray-90);
- }
-
- /* Details summary styles */
-
- [dir="ltr"] .olivero-details__summary {
- padding-left: var(--sp2);
- }
-
- [dir="rtl"] .olivero-details__summary {
- padding-right: var(--sp2);
- }
-
- [dir="ltr"] .olivero-details__summary {
- padding-right: var(--sp1);
- }
-
- [dir="rtl"] .olivero-details__summary {
- padding-left: var(--sp1);
- }
-
- .olivero-details__summary {
- position: relative;
- padding-top: var(--sp1);
- padding-bottom: var(--sp1);
- list-style: none;
- cursor: pointer;
- transition: var(--details-summary-transition);
- 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 */
-
- [dir="ltr"] .olivero-details__summary:before,[dir="ltr"]
- .collapse-processed > .olivero-details__summary .details-title:before {
- left: var(--sp0-75);
- }
-
- [dir="rtl"] .olivero-details__summary:before,[dir="rtl"]
- .collapse-processed > .olivero-details__summary .details-title:before {
- right: var(--sp0-75);
- }
-
- .olivero-details__summary:before,
- .collapse-processed > .olivero-details__summary .details-title:before {
- position: absolute;
- top: 50%;
- 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"] .olivero-details__summary:before,
- [dir="rtl"] .collapse-processed > .olivero-details__summary .details-title:before {
- transform: translateY(-50%) rotate(-135deg);
- }
-
- /* Pseudo-selector to manage focus styles */
-
- .olivero-details__summary:after,
- .collapse-processed > .olivero-details__summary .details-title:after {
- position: absolute;
- top: calc(var(--details-border-width) * -1);
- right: calc(var(--details-border-width) * -1);
- bottom: calc(var(--details-border-width) * -1);
- left: calc(var(--details-border-width) * -1);
- 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 */
-
- .olivero-details__summary::-webkit-details-marker {
- display: none;
- }
-
- /* Disable default outline for summary, since we have own implementation */
-
- .olivero-details__summary:focus {
- outline: solid 2px transparent;
- outline-offset: -4px;
- }
-
- /* Details summary, hover state */
-
- .olivero-details__summary:hover {
- background-color: var(--color--gray-95);
- }
-
- /* Details summary, focus and active states */
-
- .olivero-details__summary:focus:after,
- .olivero-details__summary:active:after,
- .collapse-processed > .olivero-details__summary .details-title:focus:after,
- .collapse-processed > .olivero-details__summary .details-title:active:after {
- opacity: 1;
- }
-
- /* Rotate arrow icon of the details summary, when details expanded */
-
- .olivero-details[open] > .olivero-details__summary::before,
- .collapse-processed[open] > .olivero-details__summary .details-title::before {
- margin-top: -2px;
- transform: translateY(-50%) rotate(135deg);
- }
-
- /* Collapse processed for non-supporting browsers like IE or Edge */
-
- [dir="ltr"] .collapse-processed > .olivero-details__summary {
- padding-left: 0;
- }
-
- [dir="rtl"] .collapse-processed > .olivero-details__summary {
- padding-right: 0;
- }
-
- [dir="ltr"] .collapse-processed > .olivero-details__summary {
- padding-right: 0;
- }
-
- [dir="rtl"] .collapse-processed > .olivero-details__summary {
- padding-left: 0;
- }
-
- .collapse-processed > .olivero-details__summary {
- padding-top: 0;
- padding-bottom: 0
- }
-
- .collapse-processed > .olivero-details__summary:before {
- content: none;
- }
-
- .collapse-processed > .olivero-details__summary:after {
- content: none;
- }
-
- [dir="ltr"] .collapse-processed > .olivero-details__summary .details-title {
- padding-left: var(--sp2);
- }
-
- [dir="rtl"] .collapse-processed > .olivero-details__summary .details-title {
- padding-right: var(--sp2);
- }
-
- [dir="ltr"] .collapse-processed > .olivero-details__summary .details-title {
- padding-right: var(--sp1);
- }
-
- [dir="rtl"] .collapse-processed > .olivero-details__summary .details-title {
- padding-left: var(--sp1);
- }
-
- .collapse-processed > .olivero-details__summary .details-title {
- position: relative;
- display: block;
- padding-top: var(--sp1);
- padding-bottom: var(--sp1);
- transition: var(--details-summary-transition);
- text-decoration: none;
- color: inherit;
- background-color: var(--color--gray-100);
- }
-
- .collapse-processed > .olivero-details__summary .details-title:focus {
- outline: solid 2px transparent;
- }
-
- .collapse-processed > .olivero-details__summary .details-title:hover {
- background-color: var(--color--gray-95);
- }
-
- @media screen and (-ms-high-contrast: active) {
- .collapse-processed > .olivero-details__summary .details-title::after {
- top: -0.3125rem;
- right: -0.3125rem;
- bottom: -0.3125rem;
- left: -0.3125rem;
- border: 2px dotted;
- }
- }
-
- /* Details content wrapper */
-
- .olivero-details__wrapper {
- margin: var(--sp1)
- }
-
- @media (min-width: 62.5rem) {
-
- [dir="ltr"] .olivero-details__wrapper {
- margin-left: var(--sp2);
- }
-
- [dir="rtl"] .olivero-details__wrapper {
- margin-right: var(--sp2);
- }
-
- [dir="ltr"] .olivero-details__wrapper {
- margin-right: var(--sp2);
- }
-
- [dir="rtl"] .olivero-details__wrapper {
- margin-left: var(--sp2);
- }
-
- .olivero-details__wrapper {
- margin-top: var(--sp1-5);
- margin-bottom: var(--sp1-5)
- }
- }
-
- /* Description */
-
- .olivero-details__description {
- margin-bottom: var(--sp1);
- color: var(--color-text-neutral-medium);
- font-size: var(--font-size-xs);
- line-height: var(--line-height-s);
- }