accordion.css

Same filename in other branches
  1. 9 core/themes/claro/css/components/accordion.css
  2. 8.9.x core/themes/claro/css/components/accordion.css
  3. 8.9.x core/assets/vendor/jquery.ui/themes/base/accordion.css
  4. 11.x core/themes/claro/css/components/accordion.css

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. --accordion-color: var(--color-text);
  13. --accordion-border-size: var(--details-border-size);
  14. --accordion-border-color: var(--details-border-color);
  15. --accordion-border-radius: var(--details-accordion-border-size-radius);
  16. --accordion-bg-color: var(--color-white);
  17. --accordion-box-shadow: var(--details-box-shadow);
  18. color: var(--accordion-color);
  19. border: var(--accordion-border-size) solid var(--accordion-border-color);
  20. border-radius: var(--accordion-border-radius);
  21. background-color: var(--accordion-bg-color);
  22. box-shadow: var(--accordion-box-shadow);
  23. }
  24. .accordion__item {
  25. --accordion-item-border-radius: var(--details-accordion-border-size-radius);
  26. margin: 0 -1px;
  27. border-radius: 0;
  28. }
  29. .accordion__item:first-child {
  30. margin-top: -1px;
  31. border-top-left-radius: var(--accordion-item-border-radius);
  32. border-top-right-radius: var(--accordion-item-border-radius);
  33. }
  34. .accordion__item + .accordion__item {
  35. margin-top: -1px;
  36. }
  37. .accordion__item:last-child {
  38. margin-bottom: -1px;
  39. border-bottom-right-radius: var(--accordion-item-border-radius);
  40. border-bottom-left-radius: var(--accordion-item-border-radius);
  41. }
  42. .accordion__item .claro-details__summary .summary {
  43. --accordion-summary-color: var(--color-gray-800);
  44. display: block;
  45. color: var(--accordion-summary-color);
  46. font-weight: normal;
  47. }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.