-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
147 lines (121 loc) · 2.42 KB
/
style.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
#menuToggle input:checked ~ #menu .button:after {
right: 0;
}
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
display: flex;
height: 100vh;
}
#menuToggle {
display: block;
background: #333;
position: fixed;
width: 40px;
height: 32px;
top: 20px;
left: 20px;
z-index: 1;
-webkit-user-select: none;
user-select: none;
}
#menuToggle a
{
text-decoration: none;
color: #232323;
position: relative;
left:-78px;
transition: color 0.3s ease;
}
#menuToggle a:hover
{
color: rgb(223, 240, 138);
}
#menuToggle input {
display: block;
width: 40px;
height: 32px;
position: absolute;
top: -7px;
left: -5px;
cursor: pointer;
opacity: 0; /* hide the original checkbox */
z-index: 2; /* places the checkbox above the hamburger spans */
-webkit-touch-callout: none;
}
#menuToggle span { /* hamburger bars */
display: block;
width: 33px;
height: 4px;
margin-bottom: 5px;
position: relative;
background: #cdcdcd;
border-radius: 3px;
z-index: 1;
transform-origin: 4px 0px;
transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
opacity 0.55s ease;
}
#menuToggle span:first-child {
transform-origin: 0% 0%;
}
#menuToggle span:nth-last-child(2)
{
transform-origin: 0% 100%;
}
#menu {
position: fixed;
width: 280px;
background: #333;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
height: 100%;
overflow-y: auto;
padding-top: 180px;
margin: -100px 0 0 -50px;
top: 0;
left: -200px;
transition: all 0.3s ease-in-out;
}
#menuToggle input:checked ~ span
{
opacity: 1;
transform: rotate(45deg) translate(-2px, -1px);
background: #f2f0f0;
}
#menuToggle input:checked ~ span:nth-last-child(3)
{
opacity: 0;
transform: rotate(0deg) scale(0.2, 0.2);
}
#menuToggle input:checked ~ span:nth-last-child(2)
{
transform: rotate(-45deg) translate(0, -1px);
}
#menuToggle input:checked ~ #menu {
left: 0;
}
#menu a {
padding: 15px;
color: #fff;
text-align: right;
text-decoration: none;
font-size: 18px;
display: block;
transition: background 0.3s ease-in-out;
}
#menu a:hover {
background: #555;
}
#menuToggle input:checked ~ #menu a:hover:after {
right: 0;
}
#map-container {
flex: 1;
height: 100%;
}
#map {
width: 100%;
height: 100%;
}