Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
94 lines (83 loc) · 2.07 KB
/
Copy pathstyle.css
File metadata and controls
94 lines (83 loc) · 2.07 KB
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
html, body {
margin: 0;
background: transparent;
overflow: hidden;
}
body {
/* room around the widget so its drop shadow is not clipped */
padding: 24px;
}
/* One self-contained box that wraps the map and the km/h line, so the whole
widget has a single defined size/aspect and nothing hangs outside it. Its
width and height are set from main.js. */
#stage {
position: relative;
box-sizing: border-box;
}
#widget {
box-sizing: border-box;
width: 250px;
height: 250px;
border-radius: 50%;
overflow: hidden;
opacity: 0;
transition: opacity 0.4s ease;
pointer-events: none;
/* soft drop shadow only; the ring is a real border set from main.js */
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
#widget.visible {
opacity: 1;
}
#map {
width: 100%;
height: 100%;
}
.leaflet-control-zoom {
display: none;
}
.leaflet-control-attribution {
font-size: 9px;
}
#config-error {
display: none;
position: absolute;
top: 12px;
left: 12px;
max-width: 360px;
padding: 14px 16px;
font-family: system-ui, -apple-system, sans-serif;
font-size: 13px;
line-height: 1.5;
color: #fff;
background: rgba(180, 30, 30, 0.92);
border-radius: 8px;
}
#config-error code {
font-family: ui-monospace, monospace;
background: rgba(0, 0, 0, 0.25);
padding: 1px 4px;
border-radius: 3px;
}
#speed {
box-sizing: border-box;
text-align: right;
color: #fff;
font-weight: 700;
white-space: nowrap;
/* Keep the last glyph and its shadow off the right edge — display fonts tend
to overhang and get clipped by overflow:hidden otherwise. border-box means
this eats into the content width, so the stage size is unchanged. */
padding-right: 6px;
/* Fixed band so the km/h line never spills below the stage, regardless of
font. width, height, line-height, margin-top, font-family and font-size
are set from main.js. overflow keeps a tall display font inside the band. */
overflow: hidden;
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
opacity: 0;
transition: opacity 0.3s ease;
pointer-events: none;
}
#speed.visible {
opacity: 1;
}