-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
334 lines (288 loc) · 7.15 KB
/
index.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
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
:root {
--primary-orange: #ff6600;
--primary-blue: #0044aa;
--secondary-gray: #b7c4c8;
--secondary-brown: #9B7653
}
body {
font-family: 'Source Sans Pro', sans-serif;
margin: 0;
padding: 0;
}
a {
transition: color 0.3s;
color: var(--primary-blue);
font-size: 0.8rem;
text-decoration: none;
}
a:hover {
color: var(--secondary-gray);
}
#map {
position: absolute;
top: 0;
bottom: 0;
width: 100%;
}
.geocoder {
top: 0.5rem;
position: absolute;
z-index: 2;
}
#theA {
font-weight: bold;
font-size: 0.8em;
}
/* Overall styling for the info box */
#info-box {
position: absolute;
left: 10px;
top: 10px;
width: 35vw;
min-height: 250px;
z-index: 2;
padding: 8px;
background-color: white;
font-size: 1em;
border-radius: 4px;
display: flex;
flex-direction: column; /* Stack children vertically */
}
/* Header styles */
#header {
display: flex;
justify-content: space-between; /* Space out brat and sothere */
align-items: center; /* Vertically align content */
padding-bottom: 8px;
margin-bottom: 8px;
border-bottom: 1px solid #ddd;
}
#brat {
display: flex;
align-items: center;
}
#brat img {
height: 24px;
margin-right: 8px;
}
#sothere {
display: flex; /* Use flexbox for text and wrapper alignment */
align-items: center; /* Vertically align text and emoji wrapper */
gap: 0.2em; /* Control space between text and emoji */
cursor: pointer; /* Pointer for interactivity */
position: relative; /* Establish positioning context */
}
#sothere .text {
font-size: 1em; /* Normal text size */
line-height: 1; /* Eliminate extra vertical space */
}
#sothere .emoji-wrapper {
position: relative; /* Position the emoji inside the wrapper */
display: flex; /* Needed for wrapper alignment */
align-items: center; /* Vertically align the emoji */
}
#sothere .emoji {
font-size: 5em; /* Large font size for crisp rendering */
line-height: 1; /* Prevent extra vertical space */
transform: scale(0.2); /* Visually shrink the emoji initially */
transition: transform 0.3s ease, rotate 0.3s ease; /* Smooth hover animation */
position: absolute; /* Ignore the emoji's box size in the layout */
left: 0; /* Align it to the wrapper's left */
transform-origin: center left; /* Animate from the center-left point */
}
#sothere:hover .emoji {
transform: scale(1) rotate(15deg); /* Scale up and tilt the emoji */
}
/* Controls below the header */
#controls {
display: flex;
justify-content: space-between; /* Space out share button and coords */
align-items: center;
padding: 8px 0;
}
#share-location-btn {
border-radius: 5px;
padding: 6px;
border: none;
background-color: var(--primary-orange);
color: white;
font-size: 1em;
cursor: pointer;
}
#coords {
background: #b7c4c8;
font-size: 11px;
border-radius: 8px;
padding: 4px 8px;
color: white;
}
/* Info content styling */
#info-content {
margin-top: 16px;
padding: 8px;
background-color: #f9f9f9;
border-radius: 4px;
font-size: 0.9em;
flex-grow: 1; /* Allow dynamic content to fill available space */
overflow-y: auto; /* Add scrolling if the content overflows */
}
#pin {
width: 40px;
}
#message {
position: absolute;
top: 280px;
left: 10px;
z-index: 999;
padding: 8px;
background-color: white;
visibility: hidden;
font-size: 1em;
}
.marker {
width: 72px;
height: 72px;
background-image: url("bratlas-pin.svg");
background-size: 100%;
z-index: 1
}
@media only screen and (max-width: 600px) {
.mapboxgl-ctrl-top-right {
right: none;
width: 95%;
height: 35px
}
#info-box {
top: 60px;
left: 5px;
margin-top: 4px;
width: 50%; /* Use a wider width for smaller screens */
min-height: auto; /* Allow height to adjust dynamically */
padding: 12px;
font-size: 0.9em; /* Slightly smaller font size */
}
/* Header adjustments */
#header {
flex-wrap: wrap; /* Stack elements vertically if needed */
justify-content: space-between;
margin-bottom: 12px;
}
#brat {
display: flex;
flex-direction: row; /* Ensure the icon and text stay inline */
align-items: center;
}
#pin {
width: 24px; /* Smaller icon size */
margin-right: 8px;
}
#bratlas {
font-size: 1em; /* Adjust font size for readability */
}
#sothere {
margin-top: 8px; /* Add space if it wraps below the title */
font-size: 0.9em;
}
/* Button and coords alignment */
#controls {
flex-direction: column; /* Stack the button and coords */
gap: 8px; /* Add spacing between elements */
}
#share-location-btn {
width: 100%; /* Full width for the button */
padding: 8px;
font-size: 0.9em;
}
#coords {
font-size: 0.85em; /* Smaller font size for coordinates */
padding: 4px 6px;
text-align: center;
width: 100%; /* Full width for alignment */
}
/* Info content spacing */
#info-content {
margin-top: 12px;
font-size: 0.85em;
}
}
@media only screen and (min-width: 601px) and (max-width: 1024px) {
#info-box {
top: 20px;
left: 20px;
width: 45%; /* Slightly wider for better content space */
padding: 16px;
font-size: 1em;
border-radius: 6px; /* Subtle rounding for a cleaner look */
}
/* Header adjustments */
#header {
display: flex;
justify-content: space-between; /* Properly align title and sothere */
align-items: center;
flex-wrap: wrap; /* Ensure wrapping if content overflows */
margin-bottom: 12px;
}
#brat {
display: flex;
align-items: center;
}
#pin {
width: 28px; /* Balanced icon size for tablets */
margin-right: 8px;
}
#sothere {
font-size: 1em;
text-align: right;
flex: 1; /* Allow it to adjust and align better in the space */
margin-top: 0;
}
/* Controls */
#controls {
display: flex;
flex-direction: row; /* Align controls in a single row */
justify-content: space-between;
align-items: center;
gap: 16px;
margin-bottom: 12px;
}
#share-location-btn {
flex: 1; /* Allow button to stretch proportionally */
max-width: 60%; /* Limit button width to avoid oversizing */
padding: 10px;
font-size: 1em;
text-align: center;
}
#coords {
font-size: 0.9em;
padding: 6px 10px;
border-radius: 4px;
text-align: center;
flex: 1; /* Stretch to align with the button */
max-width: 35%; /* Keep it proportionate */
}
/* Info content */
#info-content {
margin-top: 12px;
font-size: 0.95em; /* Slightly smaller for balanced proportions */
line-height: 1.4; /* Improve readability */
}
}
@media only screen and (min-width: 601px) {
#brat {
top: 0.5rem;
left: 0.5rem;
font-size: 2.2em;
}
}
.primary-orange {
color: var(--primary-orange)
}
.primary-blue {
color: var(--primary-blue)
}
.secondary-gray {
color: var(--secondary-gray)
}
.secondary-brown {
color: var(--primary-brown)
}