-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
638 lines (561 loc) · 12.5 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
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
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
/* Root Variables */
:root {
--bg-color: #eeeeee;
--text-color: #777777;
--active-section-bg: white;
--separator-color: #cccccc;
--button-bg: #dddddd;
--button-text: #545454;
--info-bg: #d0d0d0;
--weather-switch-slider: #ffffff;
--tesla-blue: #0077ff;
--tesla-red: #ff0000;
--button-radius: 13px;
--weather-warning-color: #ff7700;
}
body.dark-mode {
--bg-color: #1d1d1d;
--text-color: #777777;
--active-section-bg: #333333;
--separator-color: #444444;
--button-bg: #333333;
--button-text: #d6d6d6;
--info-bg: #302f39;
--weather-switch-slider: #222222;
--weather-warning-color: #ff9900;
}
/* Basic HTML Elements */
* {
font-family: "Inter", sans-serif !important;
}
body {
background-color: var(--bg-color);
color: var(--text-color);
font-size: 17pt;
padding: 0;
text-align: left;
word-spacing: normal;
font-weight: 500;
font-optical-sizing: auto;
font-variant-ligatures: auto;
}
a {
color: var(--tesla-blue);
text-decoration: none;
}
h1 {
color: var(--button-text);
font-size: 19pt;
margin-bottom: 15px;
text-align: left;
margin-top: 0px;
font-weight: 250;
}
h2 {
color: var(--button-text);
font-size: 17pt;
font-weight: 700;
letter-spacing: 0.01em;
margin-bottom: 9px;
margin-top: 28px;
text-align: left;
}
p {
margin-top: 12px;
margin-bottom: 0px;
text-align: justify
}
ul {
padding-left: 20px;
margin-top: 0px;
margin-bottom: 0px;
}
li {
margin: 9px 0;
line-height: 1.4;
padding-left: 0px;
margin-left: 0px;
}
hr {
border: 0;
border-top: 2px solid var(--separator-color);
margin-top: 28px;
margin-bottom: 28px;
}
.sections {
padding-bottom: 30px; /* Add padding to the bottom of all sections */
}
.section {
display: none;
padding-bottom: 30px; /* Add padding to the bottom of each section */
max-width: 940px;
}
#about {
font-variant-ligatures: all;
}
/* Navigation */
.section-buttons {
position: sticky;
top: 0;
padding-right: 20px;
display: flex;
flex-direction: column;
margin-top: 0px;
width: 250px;
min-width: 250px;
}
.section-button {
color: var(--text-color);
border-radius: var(--button-radius);
hover: var(--active-section-bg);
background-color: transparent;
font-size: 19pt;
font-weight: 675;
letter-spacing: 0.02em;
padding: 16px 20px;
border: none;
cursor: pointer;
text-align: left;
margin-bottom: 5px;
display: flex;
align-items: center;
transition: background-color 0.3s, color 0.3s;
}
.button-icon {
width: 20px;
height: 20px;
margin-right: 12px;
stroke: currentColor;
flex-shrink: 0;
}
.section-button.active {
background-color: var(--active-section-bg);
color: var(--button-text);
}
.section-button:hover {
background-color: var(--active-section-bg);
}
/* Notification dot for news section */
.section-button.has-notification {
position: relative;
}
.section-button.has-notification::after {
content: "";
position: absolute;
top: 50%; /* Center vertically */
left: 5px; /* Moved further left from 10px */
transform: translateY(-50%); /* Perfect vertical centering */
width: 10px;
height: 10px;
background-color: var(--tesla-blue);
border-radius: 50%;
animation: pulse 2s 1; /* Changed from 3 pulses to 1 */
animation-fill-mode: forwards; /* Keep final state */
}
/* Weather warning notification dot */
.section-button.weather-warning {
position: relative;
}
.section-button.weather-warning::after {
content: "";
position: absolute;
top: 50%;
left: 5px;
transform: translateY(-50%);
width: 10px;
height: 10px;
background-color: var(--weather-warning-color);
border-radius: 50%;
animation: pulse 2s 1;
animation-fill-mode: forwards;
}
@keyframes pulse {
0% {
transform: translateY(-50%) scale(0.6);
opacity: 0.6;
}
50% {
transform: translateY(-50%) scale(1.5); /* Larger pulse */
opacity: 1;
}
100% {
transform: translateY(-50%) scale(1);
opacity: 1;
}
}
/* Layout */
.frame-container {
display: flex;
height: 100vh;
width: 100vw;
position: fixed;
top: 0;
left: 0;
}
.left-frame {
background-color: var(--bg-color);
width: 290px;
min-width: 290px;
flex-shrink: 0;
height: 100%;
overflow-y: auto;
padding: 15px 15px 20px 20px;
}
.right-frame {
flex-grow: 1;
height: 100%;
overflow-y: auto;
padding: 20px 3.5% 20px 15px;
scrollbar-gutter: stable;
scrollbar-width: thin;
-ms-overflow-style: -ms-autohiding-scrollbar;
}
.right-frame.external {
padding: 0;
overflow: hidden;
}
.right-frame iframe {
width: 100%;
height: 100%;
border: none;
display: block;
}
/* Button Lists */
.button-list {
list-style: none;
padding: 0;
margin-top: 0;
display: grid;
grid-template-columns: repeat(auto-fill, 280px);
gap: 16px;
justify-content: start;
max-width: 1200px;
}
.button-list li {
margin: 0;
}
.button-list a {
color: var(--button-text);
background-color: var(--button-bg);
border-radius: var(--button-radius);
display: flex;
padding-top: 24px;
padding-bottom: 24px;
padding-left: 9px;
padding-right: 9px;
text-decoration: none;
transition: background-color 0.3s;
width: auto;
font-weight: 600;
height: 40px; /* Adjust the height as needed */
align-items: center;
justify-content: center;
gap: 10px;
text-align: center; /* Add this line to center the text */
}
.button-list a img {
width: 32px;
height: auto;
/* object-fit: contain; */
}
/* Utility Classes */
.section {
display: none;
padding-bottom: 30px; /* Add padding to the bottom of each section */
}
.hidden {
display: none;
}
/* Ping Button */
.ping-button {
color: var(--button-text);
background-color: var(--button-bg);
border-radius: var(--button-radius);
font-size: 16pt;
font-weight: 600;
padding: 24px;
width: 280px;
border: none;
cursor: pointer;
margin-bottom: 20px;
transition: background-color 0.3s;
height: 80px; /* Adjust the height as needed */
display: flex;
align-items: center;
justify-content: center;
}
/* Dark Mode Toggle */
.toggle-container {
position: fixed;
top: 10px;
right: 20px;
display: flex;
align-items: center;
}
.toggle-label {
color: var(--text-color);
font-size: 15pt;
font-weight: 600;
margin-right: 10px;
}
.toggle-switch {
position: relative;
display: inline-block;
width: 60px;
height: 34px;
}
.toggle-switch input {
opacity: 0;
width: 0;
height: 0;
}
.toggle-slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: .4s;
border-radius: 34px;
}
.toggle-slider:before {
position: absolute;
content: "";
height: 26px;
width: 26px;
left: 4px;
bottom: 4px;
background-color: white;
transition: .4s;
border-radius: 50%;
}
input:checked + .toggle-slider {
background-color: #2196F3;
}
input:focus + .toggle-slider {
box-shadow: 0 0 1px #2196F3;
}
input:checked + .toggle-slider:before {
transform: translateX(26px);
}
/* Data Display */
.data-info {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
gap: 16px;
margin-top: 16px;
width: 100%;
max-width: 1024px;
}
.data-item {
display: block;
margin-right: 0;
font-weight: 600;
}
.data-item:last-child {
margin-right: 0;
}
.data-item h2 {
margin-top: 0px;
margin-bottom: 6px;
}
/* Stats Display */
.stat-box {
display: flex;
flex-direction: column;
align-items: left;
min-width: 200px;
height: 125px; /* fixed height added */
}
.value-container {
display: flex;
align-items: center; /* Vertically align items in container */
}
.stat-value {
color: var(--button-text);
font-size: 48pt;
font-weight: 600;
display: inline;
font-variant-numeric: tabular-nums;
}
.stat-unit {
color: var(--text-color);
font-size: 24pt;
font-weight: 650;
font-family: sans-serif;
display: inline;
margin-left: 5px; /* Add some spacing between value and unit */
}
.stat-label {
color: var(--text-color);
font-size: 13pt;
font-weight: 650;
margin-top: 0px;
display: block; /* Ensure it's on its own line */
clear: both; /* Clear the float to ensure it appears below */
}
/* Dashboard Display */
.radar-container {
position: relative;
padding-top: 30px; /* Added padding to push radar down */
margin-right: 30px;
}
.radar-title {
position: absolute;
top: 0px;
left: 24px;
text-align: center;
margin: 0;
}
#radarDisplay {
border-radius: 50%;
background-color: rgba(0, 0, 0, 0.1);
}
.dark-mode #radarDisplay {
background-color: rgba(255, 255, 255, 0.1);
}
.nav-container {
display: flex;
gap: 50px;
margin: 30px 0px -25px 0px;
align-items: flex-start;
}
.nav-stats {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-rows: repeat(2, auto);
gap: 10px 0 0 0;
width: 400px;
}
.nav-info {
display: flex;
flex-direction: column;
gap: 20px;
min-width: 220px;
}
/* Waze frame */
.teslawaze-container {
height: calc(100vh - 350px);
min-height: 280px;
margin-top: 20px;
width: 100%;
margin-bottom: 0; /* Ensure no bottom margin */
position: relative; /* Add positioning context */
flex-grow: 1; /* Allow it to grow to fill available space */
}
#teslawaze {
border-radius: var(--button-radius);
width: 100%;
height: 100%;
border: none;
position: absolute; /* Position absolutely within container */
top: 0;
left: 0;
bottom: 0;
right: 0;
}
/* News Elements */
.news-headlines {
margin: 36px 0;
max-width: 900px;
}
.news-item {
background-color: var(--button-bg);
border-radius: var(--button-radius);
margin-bottom: 10px; /* Increased from 9px */
padding: 10px 10px 10px 54px; /* Increased left padding from 46px to 54px */
transition: background-color 0.3s;
border: none;
width: 100%;
text-align: left;
cursor: pointer;
position: relative; /* Added for absolute positioning of the favicon */
}
/* New item indicator */
.news-new {
position: relative;
}
.news-new::after {
content: "";
position: absolute;
top: 50%;
right: 15px;
transform: translateY(-50%);
width: 8px;
height: 8px;
background-color: var(--tesla-blue);
border-radius: 50%;
animation: news-pulse 1.5s 1;
animation-fill-mode: forwards;
}
@keyframes news-pulse {
0% {
opacity: 0.7;
transform: translateY(-50%) scale(0.7);
}
50% {
opacity: 1;
transform: translateY(-50%) scale(1.3);
}
100% {
opacity: 1;
transform: translateY(-50%) scale(1);
}
}
.news-item:hover {
background-color: var(--button-hover-bg);
}
.news-item:last-child {
margin-bottom: 0;
}
.news-source {
color: var(--tesla-blue);
font-weight: 650;
margin-right: 10px;
font-size: 11.5pt;
}
.news-time, .news-date {
color: var(--text-color);
font-size: 13pt; /* Increased from 12pt */
font-weight: 500;
margin-left: 5px;
display: inline-block;
}
.news-title {
color: var(--button-text);
display: block;
margin-top: 4px; /* Increased from 3px */
font-size: 16pt; /* Increased from 15pt */
font-weight: 600;
}
.news-favicon {
position: absolute; /* Position absolutely within the news-item */
left: 10px; /* Position on the left side with some padding */
top: 50%; /* Center vertically */
transform: translateY(-50%); /* Perfect vertical centering */
width: 32px; /* Slightly increased width */
height: 32px; /* Slightly increased height */
border-radius: 4px; /* Optional: adds a slight rounding to the icons */
opacity: 0.8;
}
/* GPS Status Indicator */
.gps-status {
margin-right: 22px; /* Good separation from the Dark Mode text */
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
transition: color 0.3s ease;
}
.gps-status.unavailable {
color: #888888; /* Gray when GPS is unavailable */
}
.gps-status.poor {
color: #f9ca24; /* Yellow when GPS accuracy is poor (>25m) */
}
.gps-status.good {
color: #6ab04c; /* Green when GPS accuracy is good (<25m) */
}