-
Notifications
You must be signed in to change notification settings - Fork 0
/
_auk-accordion.scss
104 lines (83 loc) · 1.9 KB
/
_auk-accordion.scss
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
/* ==========================================================================
auk-accordion
========================================================================== */
.auk-accordion__item {
& + .auk-accordion__item {
margin-top: 1.6rem;
}
.auk-accordion__header {
display: flex;
align-items: center;
border-radius: .3rem;
height: 4rem;
.auk-toolbar-complex {
min-height: 4rem - (2 * .15rem); // height of the header minus top + bottom border
}
}
.auk-accordion__button {
appearance: none;
width: 100%;
border: .15rem solid transparent;
border-radius: .3rem;
background-color: $auk-white;
cursor: pointer;
color: $auk-blue-500;
font-family: $g-base-font-family;
font-size: 1.5rem;
&:hover {
background-color: $auk-gray-100;
}
&:focus {
border: .15rem solid $auk-yellow-500;
background-color: $auk-gray-100;
}
&:active {
background-color: $auk-gray-200;
}
&[disabled],
&:disabled {
pointer-events: none;
color: $auk-gray-700;
opacity: .3;
.au-c-icon {
color: $auk-gray-600;
}
}
}
.auk-accordion__header--controls-left {
.auk-accordion__button {
padding: 0 1.5rem;
}
}
.auk-accordion__header--controls-right {
.auk-accordion__button {
padding: 0 1.5rem 0 0;
}
}
.auk-accordion__title {
padding: 0 1.5rem;
font-size: 1.6rem;
font-weight: 500;
line-height: 1.2;
}
.auk-accordion__content {
display: block;
margin-top: 2rem;
}
.auk-accordion__toggle-icon {
transform: rotate(90deg);
transition: .150s ease-in-out;
}
&.auk-accordion__item--closed {
.auk-accordion__content {
display: none;
}
.auk-accordion__toggle-icon {
transform: rotate(0deg);
}
}
.auk-toolbar-complex__item {
display: flex;
align-items: center;
}
}