blob: 058d805ae3d48d2a9d43d9946d45c11fe39f5231 (
plain)
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
|
@use "@styles/abstracts/functions" as fun;
@use "@styles/abstracts/mixins" as mix;
.title {
margin: 0;
padding: 0;
background: none;
font-size: var(--font-size-xl);
text-align: left;
}
.icon {
display: flex;
flex-flow: row nowrap;
align-items: center;
justify-content: center;
width: fun.convert-px(30);
height: fun.convert-px(30);
background: var(--color-bg);
border: fun.convert-px(1) solid var(--color-primary);
border-radius: fun.convert-px(3);
color: var(--color-primary);
font-weight: 800;
transition: all 0.25s ease-in-out 0s;
&::before,
&::after {
content: "";
background: var(--color-primary);
transition: all 0.4s ease-out 0s;
}
&::before {
width: 10%;
height: 60%;
position: relative;
left: 30%;
}
&::after {
width: 60%;
height: 10%;
position: relative;
left: -5%;
}
}
.body {
width: 100%;
margin: 0;
overflow-y: auto;
visibility: hidden;
opacity: 0;
height: 0;
transition: all 0.5s ease-in-out 0s;
&--borders {
border: fun.convert-px(2) solid var(--color-primary-dark);
}
> *:last-child {
margin-bottom: 0;
}
@include mix.media("screen") {
@include mix.dimensions("md") {
font-size: var(--font-size-sm);
font-weight: 500;
}
}
}
.header {
flex: 0 0 auto;
display: flex;
flex-flow: row nowrap;
align-items: center;
justify-content: space-between;
gap: var(--spacing-md);
width: 100%;
min-height: var(--header-height);
position: sticky;
top: 0;
background: var(--color-bg);
border: none;
border-bottom: fun.convert-px(2) solid var(--color-primary-dark);
cursor: pointer;
transition: background 0.2s ease-in-out 0s;
> button {
padding: 0 var(--spacing-xs);
}
}
.wrapper--expanded .icon {
&::before {
height: 0;
}
}
.header:hover,
.header:focus {
.icon {
background: var(--color-primary-light);
color: var(--color-fg-inverted);
transform: scale(1.2);
&::before,
&::after {
background: var(--color-bg);
}
}
}
.wrapper {
--header-height: #{fun.convert-px(65)};
display: flex;
flex-flow: column;
min-height: var(--header-height);
position: relative;
overflow-y: hidden;
&:first-of-type {
.header {
border-top: fun.convert-px(2) solid var(--color-primary-dark);
}
}
}
.wrapper--expanded {
~ .wrapper {
.header {
border-top: fun.convert-px(2) solid var(--color-primary-dark);
}
}
.body {
visibility: visible;
opacity: 1;
min-height: inherit;
height: 100%;
margin: var(--spacing-sm) 0;
transition: all 0.45s ease-in-out 0s;
}
}
|