UNPKG

yoda-common-boilerplate

Version:

Repository of all JCP reusable atoms, molecules and organisms

50 lines (43 loc) 991 B
@import 'base/base.css'; h3.accordion { background-color: var(--color-5); color: var(--color-3); font-size: 16px; cursor: pointer; padding: 10px; font-weight: normal; margin: 0px; text-align: left; border: none; outline: none; transition: 0.4s; &:--active { background-color: var(--color-6); &:after { content: "\2796"; /* Unicode character for "minus" sign (-) */ } } &:after { content: '\02795'; /* Unicode character for "plus" sign (+) */ font-size: 13px; color: var(--color-7); float: right; margin: 3px; } } div.panel { padding: 0 20px; background-color: var(--color-1); max-height: 0; overflow: hidden; transition: 0.5s ease-in-out; opacity: 0; margin-bottom: 1px; border: 1px solid var(--color-5); font-weight: normal; &.show { opacity: 1; padding: 20px; max-height: 500px; /* Whatever you like, as long as its more than the height of the content (on all screen sizes) */ } }