-
Notifications
You must be signed in to change notification settings - Fork 0
/
MMM-VartaESS.css
63 lines (55 loc) · 1.07 KB
/
MMM-VartaESS.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
/* Battery example from https://codepen.io/nonggolf/pen/gOOvEeK */
#vartaess-wrapper {
font-size: var(--font-size);
color: var(--color-text);
font-weight: normal;
display: block;
box-sizing: border-box !important;
}
#battery-wrapper {
margin: 0;
padding: 0;
box-sizing: inherit;
width: 85%;
height: 60px;
border: 4px solid;
border-color: var(--color-text);
border-radius: 5px;
position: relative;
left: 50%;
transform: translateX(-50%);
}
#battery-wrapper::before {
content: "";
position: absolute;
width: 8px;
height: 18px;
background: var(--color-text);
right: -9px;
top: 50%;
margin-top: -9px;
border-radius: 2px;
}
#battery-state {
content: "";
position: relative;
top: 5px;
bottom: 5px;
left: 5px;
right: 5px;
background: var(--color-text);
height: 80%;
width: 50%;
}
#table-wrapper {
margin-top: 10px;
}
.battery-state-red {
background: #E09690;
}
.battery-state-yellow {
background: #FFE377;
}
.battery-state-green {
background: #CDEE69;
}