accordion.css
Same filename in this branch
Same filename in other branches
Accordion styles.
File
-
core/
themes/ claro/ css/ components/ accordion.css
View source
- /*
- * DO NOT EDIT THIS FILE.
- * See the following change record for more information,
- * https://www.drupal.org/node/2815083
- * @preserve
- */
-
- /**
- * @file
- * Accordion styles.
- */
-
- .accordion {
- color: #222330;
- border: 1px solid rgba(216, 217, 224, 0.8);
- border-radius: 2px;
- background-color: #fff;
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
- }
-
- .accordion__item {
- margin: 0 -1px;
- border-radius: 0;
- }
-
- .accordion__item:first-child {
- margin-top: -1px;
- border-top-left-radius: 2px;
- border-top-right-radius: 2px;
- }
-
- .accordion__item + .accordion__item {
- margin-top: -1px;
- }
-
- .accordion__item:last-child {
- margin-bottom: -1px;
- border-bottom-right-radius: 2px;
- border-bottom-left-radius: 2px;
- }
-
- /**
- * Hide JS summary from the details polyfill to make it consistent with native
- * details elements.
- *
- * @todo Consider removing this after https://www.drupal.org/node/2493957 has
- * been solved.
- */
-
- .accordion__item .claro-details__summary .summary {
- display: none;
- }
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.