-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspeedometer.css
114 lines (95 loc) · 1.62 KB
/
speedometer.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
* {
box-sizing: border-box;
}
.root {
display: flex;
flex-wrap: wrap;
justify-content: center;
min-height: 100vh;
}
.svg-main {
width: 70vw;
height: 70vh;
min-width: 340px;
}
.arrow {
transform: rotate(312deg);
transform-origin: 50% 50%;
fill: url("#gradient");
filter: drop-shadow(2px 4px 4px black);
}
.speedometer {
/* fill: #3b3838; */
fill: url("#main-gradient");
}
.center-circle {
stroke: red;
fill: black;
}
.speed-lines {
stroke: white;
stroke-width: 2;
transform-box: fill-box;
transform-origin: 50% 50%;
}
.small-speed-lines {
stroke: white;
stroke-width: 0.5;
transform-box: fill-box;
transform-origin: 50% 50%;
}
.speed-values {
font-size: 0.65rem;
font-family: Open Sans, Roboto, Segoe UI, sans-serif;
font-weight: bold;
letter-spacing: -0.5px;
}
.unit-kmh {
fill: white;
font-family: Roboto, Segoe UI, sans-serif;
font-weight: bold;
font-size: 0.7rem;
}
.mileage {
transform: translate(96px, 72%);
}
.mileage-rect {
fill: #7de37d;
}
.mileage-text-container {
text-align: center;
margin-top: 4px;
padding-bottom: 2px;
border-bottom: 1px solid black;
}
.mileage-text {
color: black;
margin: 0;
font-family: Raleway, Segoe UI, Roboto, sans-serif;
font-size: 0.32rem;
font-weight: bold;
}
.mileage-digits {
font-family: LCD, sans-serif;
font-size: 0.6rem;
fill: black;
}
.pedal-container {
display: flex;
flex-direction: column;
align-items: center;
}
.pedal {
height: 30vh;
}
.pedal:hover,
.pedal:focus {
background-color: #8dda8d;
}
.pedal-container h6 {
margin: 0;
font-size: 3vw;
}
.pause-button {
margin-top: 1rem;
}