forked from LeandroLuiz02/Menu-Hamburguer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
104 lines (89 loc) · 1.78 KB
/
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
92
93
94
95
96
97
98
99
100
101
102
103
104
* {
margin: 0;
padding: 0;
list-style: none;
}
body {
font-family: Arial, Helvetica, sans-serif;
background-color: #232323;
color: #CDCDCD;
}
main {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.menu .menu-faketrigger {
position: absolute;
z-index: 1000;
width: 35px;
height: 35px;
opacity: 0;
cursor: pointer;
}
.menu .menu-lines{
position: absolute;
z-index: 999;
width: 35px;
height: 35px;
}
.menu .menu-lines span {
display: block;
width: 35px;
height: 5px;
margin-bottom: 10px;
background-color: #cdcdcd;
border-radius: 3px;
transition: all ease .2s;
}
.menu .menu-faketrigger:checked ~ .menu-lines span {
/* background-color: #232323; */
}
.menu .menu-faketrigger:checked ~ .menu-lines span:nth-child(1) {
transform-origin: 0% 0%;
transform: rotate(45deg) scaleX(1.25);
}
.menu .menu-faketrigger:checked ~ .menu-lines span:nth-child(2) {
opacity: 0;
}
.menu .menu-faketrigger:checked ~ .menu-lines span:nth-child(3) {
transform-origin: 0% 100%;
transform: rotate(-45deg) scaleX(1.25);
}
.menu ul {
position: absolute;
z-index: 998;
left: 0;
top: 0;
width: 300px;
background-color: #ededed;
height: calc(100vh - 100px);
padding-top: 100px;
margin-left: -300px;
transition: all ease .2s;
}
.menu {
margin-left: 30px;
margin-top: 30px;
}
.menu .menu-faketrigger:checked ~ ul {
margin-left: 0;
}
.menu ul li {
padding: 10px 30px;
}
.menu ul li a {
text-decoration: none;
color: #000;
font-size: 22px;
transition: all ease .5s;
}
.menu ul li a:hover {
color: #999;
}