accordion.css

Same filename in this branch
  1. 8.9.x core/assets/vendor/jquery.ui/themes/base/accordion.css
Same filename in other branches
  1. 9 core/themes/claro/css/components/accordion.css
  2. 10 core/themes/claro/css/components/accordion.css
  3. 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/2815083
  5. * @preserve
  6. */
  7. /**
  8. * @file
  9. * Accordion styles.
  10. */
  11. .accordion {
  12. color: #222330;
  13. border: 1px solid rgba(216, 217, 224, 0.8);
  14. border-radius: 2px;
  15. background-color: #fff;
  16. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  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: 2px;
  25. border-top-right-radius: 2px;
  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: 2px;
  33. border-bottom-left-radius: 2px;
  34. }
  35. /**
  36. * Hide JS summary from the details polyfill to make it consistent with native
  37. * details elements.
  38. *
  39. * @todo Consider removing this after https://www.drupal.org/node/2493957 has
  40. * been solved.
  41. */
  42. .accordion__item .claro-details__summary .summary {
  43. display: none;
  44. }

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