blob: b46b5ba7cf9c7f4f02ffff748238a61383fa6219 (
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
|
@use "../../../styles/abstracts/functions" as fun;
.icon {
display: flex;
place-content: center;
place-items: center;
width: var(--icon-size, #{fun.convert-px(30)});
height: var(--icon-size, #{fun.convert-px(30)});
position: relative;
background: var(--color-bg);
border: fun.convert-px(1) solid var(--color-primary);
border-radius: fun.convert-px(3);
color: var(--color-primary);
&::before,
&::after {
content: "";
position: absolute;
background: var(--color-primary);
transition: transform 0.4s ease-out 0s;
}
&::after {
height: fun.convert-px(3);
width: 60%;
}
&::before {
height: 60%;
width: fun.convert-px(3);
transform: scaleY(1);
}
&--minus {
&::before {
transform: scaleY(0);
}
}
}
|