You are here

accordion.css in Drupal 10

Accordion styles.

File

core/themes/claro/css/components/accordion.css
View source
  1. /*
  2. * DO NOT EDIT THIS FILE.
  3. * See the following change record for more information,
  4. * https://www.drupal.org/node/3084859
  5. * @preserve
  6. */
  7. /**
  8. * @file
  9. * Accordion styles.
  10. */
  11. .accordion {
  12. color: var(--color-text);
  13. border: var(--details-border-size) solid var(--details-border-color);
  14. border-radius: var(--details-accordion-border-size-radius);
  15. background-color: var(--color-white);
  16. box-shadow: var(--details-box-shadow);
  17. }
  18. .accordion__item {
  19. margin: 0 -1px;
  20. border-radius: 0
  21. }
  22. .accordion__item:first-child {
  23. margin-top: -1px;
  24. border-top-left-radius: var(--details-accordion-border-size-radius);
  25. border-top-right-radius: var(--details-accordion-border-size-radius);
  26. }
  27. .accordion__item + .accordion__item {
  28. margin-top: -1px;
  29. }
  30. .accordion__item:last-child {
  31. margin-bottom: -1px;
  32. border-bottom-right-radius: var(--details-accordion-border-size-radius);
  33. border-bottom-left-radius: var(--details-accordion-border-size-radius);
  34. }
  35. .accordion__item .claro-details__summary .summary {
  36. display: block;
  37. color: var(--color-gray-800);
  38. font-weight: normal;
  39. }