// Accordions .accordion { .accordion-item { input { &:checked { & ~ .accordion-header { .icon { transform: rotate(270deg); transition: all .25s ease; } } & ~ .accordion-body { max-height: 100rem; transition: max-height 3s ease; } } } .accordion-header { background: @bg-color; display: block; padding: 1rem; .icon { transition: all .25s ease; } } .accordion-body { margin-bottom: 1rem; max-height: 0; overflow: hidden; transition: max-height .3s ease; } } }