blob: edbf648651da74de7e47c5c78b2c14267a827074 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
// 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;
}
}
}
|