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
| .hamburger {
| width: 18px;
| height: 14px;
| cursor: pointer;
| position: relative;
| display: inline-block;
|
| span {
| height: 2px;
| width: 100%;
| display: block;
| position: absolute;
| background-color: var(--color-neutral-content);
|
| &:nth-child(1) {
| top: 0;
| }
|
| &:nth-child(2) {
| top: 50%;
| transform: translate3d(0, -50%, 0);
| }
|
| &:nth-child(3) {
| bottom: 0;
| }
| }
|
| &_animated span {
| transition: all var(--menu-animation-duration) ease;
| }
|
| &:hover span,
| &_opened span {
| background-color: var(--color-neutral-content);
| }
|
| &_opened span {
| &:nth-child(1) {
| top: 6px;
| transform: rotate(135deg);
| }
|
| &:nth-child(2) {
| opacity: 0;
| transform: translate3d(-100%, -50%, 0);
| }
|
| &:nth-child(3) {
| bottom: 6px;
| transform: rotate(-135deg);
| }
| }
| }
|
|