-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaccordion.css
45 lines (39 loc) · 958 Bytes
/
accordion.css
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
37
38
39
40
41
42
43
44
45
/* Стилизация аккордеона */
.accordion{
display:flex;
flex-direction: column;
flex-wrap: nowrap;
}
.accordion__summary {
display:flex;
flex-direction: row;
justify-content: space-between;
width: 100%;
}
.accordion__item {
display:block;
border: 1px solid var(--grey-3);
border-radius: 8px;
box-sizing: border-box;
padding: 32px;
max-width: 730px;
font-family: Inter;
font-style: normal;
font-weight: 400;
font-size: 16px;
line-height: 24px;
color: var(--grey-4);
margin-bottom: 8px;
}
.accordion__item:last-child {
margin-bottom: 0;
}
.accordion__item[open] > .accordion__summary > .accordion__icon {
transform: rotate(-180deg);
}
.accordion__icon {
fill: none;
width: 20px;
height: 10px;
color: var(--black);
}