-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenu.css
76 lines (66 loc) · 1.31 KB
/
menu.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
.menu {
background: white;
position: absolute;
top: -160px;
right: 20;
height: 260px;
padding: 20px;
max-width: 100%;
transition: top 150ms cubic-bezier(0.17, 0.04, 0.03, 0.94);
overflow: hidden;
box-sizing: border-box;
border: 1px solid lightgray;
border-top:none;
}
#toggle {
position: absolute;
cursor: pointer;
left: -100%;
top: -100%;
}
#toggle + label {
z-index: 100;
position: absolute;
top: 50;
right: 35;
cursor: pointer;
border-radius: 1px;
padding: 10px;
line-height: 20px;
font-size: 2em;
text-align: center;
-webkit-font-smoothing: antialiased;
cursor: pointer;
transition: all 500ms ease;
color: gray;
transition: top 180ms cubic-bezier(0.17, 0.04, 0.03, 0.94);
}
#toggle + label:after {
content: "☰"
}
#toggle:checked ~ .menu {
top: 0;
}
#toggle:checked + label {
top: 200;
}
#toggle:checked + label:after {
content: "X"
}
.menu li {
list-style: none;
text-align: right;
}
.menu table {
background-color: transparent !important;
border: none !important;
}
.menu td {
background-color: transparent !important;
border: none !important;
}
@media screen and (max-width: 1000px) {
#root {
padding-top: 100px;
}
}