-
Notifications
You must be signed in to change notification settings - Fork 1
/
MMM-RBB-Weather.css
78 lines (62 loc) · 1.12 KB
/
MMM-RBB-Weather.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
/* Magic Mirror
* CSS: MMM-RBB-Weather
*
* By Nikolai Keist (github.com/nkl-kst)
* MIT Licensed.
*/
/*
* ##### Current data #####
*/
.current {
margin-bottom: 10px;
}
.current .weather-icon {
left: 10px;
margin-top: -40px;
margin-left: -40px;
position: relative;
top: 20px;
width: 100px;
}
/* RBB icons need slightly different positioning */
.current .weather-icon[src*='www.rbb24.de'] {
left: -10px;
position: relative;
top: 25px;
}
/*
* ##### Table data #####
*/
.weather-table td {
height: 1.5em;
text-align: right;
}
.weather-table td:not(:last-child) {
padding-right: 0.6em;
}
.weather-table .day {
text-align: center;
}
.weather-table .weather-icon {
background-position: 0.2em;
background-repeat: no-repeat;
background-size: 2em;
width: 2.2em;
}
.weather-table .wind {
padding-top: 0.2em;
}
.weather-table .wind > span {
font-size: 0.5em;
font-style: italic;
}
/* Icon size */
.weather-table .fas {
font-size: 0.8em;
}
/*
* ##### White icons #####
*/
.white .weather-icon {
filter: brightness(0) invert(1);
}