-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path3-styles.css
91 lines (77 loc) · 1.51 KB
/
3-styles.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
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
.menu {
display: flex;
flex-direction: column;
}
.menu-open {
-webkit-appearance: none;
-moz-appearance: none;
}
.menu-open-button {
display: flex;
flex-direction: column;
border-radius: 50%;
background-color: #d73953;
height: 2rem;
width: 2rem;
margin-bottom: 5px;
}
.menu-line {
margin: 1px auto;
width: 10px;
height: 1px;
background: white;
}
.menu-item {
display: none;
align-items: center;
justify-content: center;
color: white;
font-size: 1rem;
border-radius: 50%;
background-color: #d73953;
height: 2rem;
width: 2rem;
margin-bottom: 5px;
}
.menu-open-button:hover {
height: 2.1rem;
width: 2.1rem;
transition: 0.1s ease-out;
}
.menu-open-button:hover .menu-line-1 {
margin-top: 13px;
transition: 0.1s ease-out;
}
.menu-open-button:hover .menu-line {
margin-top: 6px auto;
}
.menu-line-1 {
margin-top: 12px;
}
.menu-open:checked ~ .menu-open-button,
.menu-open:checked ~ .menu-item {
height: 1.5rem;
width: 1.5rem;
font-size: 7px;
}
.menu-open:checked ~ .menu-open-button > .menu-line-3 {
display: none;
}
.menu-open:checked ~ .menu-open-button > .menu-line-1 {
transform: rotate(45deg);
margin-top: 11.5px;
transition: 0.1s ease-out;
}
.menu-open:checked ~ .menu-open-button > .menu-line-2 {
transform: rotate(-45deg);
margin-top: -1.5px;
transition: 0.1s ease-out;
}
.menu-open:checked ~ .menu-item {
display: flex;
}
.menu-open:checked ~ .menu-item:hover {
background-color: white;
color: #d73953;
border: 0.5px solid #d73953;
}