-
Notifications
You must be signed in to change notification settings - Fork 0
/
kolhapurStyle.css
284 lines (246 loc) · 5.7 KB
/
kolhapurStyle.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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
body, html {
margin: 0;
padding: 0;
height: 100%;
width: 100%;
box-sizing: border-box; /* Ensure padding and borders are included in the element's width and height */
}
#map {
width: 100%;
height: 100vh;
position: relative; /* Keep map positioned relative to its container */
}
.navbar {
min-height: 50px;
display: flex;
gap: 10px;
position: absolute; /* Position navbar over the map */
top: 2vh; /* Distance from the top of the viewport */
right: 2vw; /*Distance from the left of the viewport */
bottom: 90vh;
padding: 5px; /* Add padding inside the navbar for a spacious look */
border-radius: 20px; /* High border radius for rounded corners */
background-color: rgba(255, 255, 255, 0.9); /* Optional: Add a semi-transparent background */
box-shadow: 0 0 15px rgba(0, 0, 0, 0.3); /* Optional: Add shadow for better visibility */
z-index: 1000; /* Ensure it stays on top of the map */
box-sizing: border-box; /* Ensure padding doesn’t add to the height */
}
.navbar button {
font-size: medium;
padding: 10px 15px; /* Larger padding for a more spacious button */
background-color: #007bff;
color: white;
border: none;
border-radius: 20px; /* Rounded corners for buttons */
cursor: pointer;
text-align: center; /* Center text inside the button */
}
.navbar button:hover {
background-color: #0056b3;
}
.overlay {
position: absolute;
top: 10vh;
left: 2vw;
width: 20vw;
max-height: 80vh;
overflow-y: auto;
padding: 2vh;
background-color: rgba(255, 255, 255, 0.9);
border-radius: 10px;
box-shadow: 0 0 1.5vh rgba(0, 0, 0, 0.3);
z-index: 1000;
}
.overlay h2 {
margin-top: 0;
font-size: 1.5em;
}
#markerNames {
list-style: none;
padding: 0;
margin: 0;
overflow: auto;
}
#markerNames li {
margin-bottom: 1vh;
font-size: 1em;
cursor: pointer;
}
#markerNames li:hover {
text-decoration: underline;
color: #007bff;
}
#searchInput {
width: 16vw;
padding: 10px;
margin-bottom: 10px;
border: 1px solid #ddd;
border-radius: 4px;
overflow: auto;
}
.info-overlay {
position: absolute;
top: 11vh;
right: 2vw;
width: auto;
height: auto;
max-width: 30vw;
max-height: 80vh;
overflow-y: auto;
padding: 2vh;
background-color: rgba(255, 255, 255, 0.9);
border-radius: 10px;
box-shadow: 0 0 1.5vh rgba(0, 0, 0, 0.3);
z-index: 1001;
display: none;
}
.references {
position: absolute;
top: 85vh;
right: 2vw;
width: 20vw;
max-height: 80vh;
max-width: 100px;
overflow-y: auto;
padding: 5px;
background-color: rgba(255, 255, 255, 0.9);
border-radius: 20px;
box-shadow: 0 0 1.5vh rgba(0, 0, 0, 0.3);
z-index: 1000;
}
.references button {
font-size: medium;
padding: 5px 5px; /* Larger padding for a more spacious button */
background-color: #007bff;
color: white;
border: none;
border-radius: 20px; /* Rounded corners for buttons */
cursor: pointer;
text-align: center; /* Center text inside the button */
}
.references button:hover {
background-color: #0056b3;
}
/* Add these new styles at the end of your CSS file */
#mobile-toggle {
display: none;
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
z-index: 1002;
padding: 10px 20px;
background-color: #007bff;
color: white;
border: none;
border-radius: 20px;
font-size: 16px;
}
@media (max-width: 767px) and (orientation: portrait) {
#mobile-toggle {
display: block;
}
.overlay {
position: fixed;
top: auto;
left: 0;
bottom: 0;
width: 100%;
height: 80%;
max-height: 80%;
transform: translateY(100%);
transition: transform 0.3s ease-out;
}
.overlay.show {
transform: translateY(0);
}
#searchInput {
width: 90%;
}
}
.mobile-only {
display: none;
}
@media (max-width: 767px) and (orientation: portrait) {
.mobile-only {
display: block;
}
}
.draggable-overlay {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
height: 30vh;
background-color: white;
border-radius: 20px 20px 0 0;
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
z-index: 1000;
display: none;
}
.overlay-content h2{
margin-top: 0;
margin-bottom: 5px;
}
.drag-handle {
width: 100%;
height: 40px;
display: flex;
justify-content: center;
align-items: center;
cursor: grab;
/* background-color: #00000000; */
/* background: linear-gradient(to top, #8e8e8e, #8e8e8e, transparent 100%); */
}
.drag-handle:active {
cursor: grabbing;
}
.drag-handle::before {
content: '';
width: 50px;
height: 5px;
background-color: #4a4949;
border-radius: 2.5px;
}
.overlay-content {
height: calc(100% - 20px);
overflow-y: auto;
padding: 20px;
box-sizing: border-box;
padding-top: 0px;
}
@media (max-width: 733px) {
.draggable-overlay {
display: block;
}
}
#desktopMarkerNames, #mobileMarkerNames {
list-style: none;
padding: 0;
margin: 0;
overflow: auto;
}
#desktopMarkerNames li, #mobileMarkerNames li {
margin-bottom: 1vh;
font-size: 1em;
cursor: pointer;
}
#desktopMarkerNames li:hover, #mobileMarkerNames li:hover {
text-decoration: underline;
color: #007bff;
}
#desktopSearchInput, #mobileSearchInput {
width: calc(100% - 20px);
padding: 10px;
margin-bottom: 10px;
border: 1px solid #ddd;
border-radius: 4px;
}
@media (max-width: 767px) {
.overlay {
display: none;
}
.draggable-overlay {
display: block;
}
}