-
Notifications
You must be signed in to change notification settings - Fork 0
/
MMM-NexusMetroRTI.css
162 lines (133 loc) · 3.18 KB
/
MMM-NexusMetroRTI.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
/*
Copyright (C) 2024 jcktwd
*/
@font-face {
font-family: "Calvert MT";
src: url("public/fonts/Calvert-MT.woff2") format("woff2"),
url("public/fonts/Calvert-MT.woff") format("woff"),
url("public/fonts/Calvert-MT.ttf") format("truetype");
}
@font-face {
font-family: 'TW Metro Icons';
src: url('public/fonts/TW-Metro-Icons.woff') format("woff");
font-weight: 900;
font-style: normal;
font-display: block;
}
[class^="icon-twmetro-"], [class*=" icon-twmetro-"] {
/* use !important to prevent issues with browser extensions that change fonts */
font-family: 'TW Metro Icons' !important;
}
.icon-twmetro-logo:before {
content: "\f555f";
}
.icon-twmetro-train:before {
content: "\f555e";
}
/* Some sensible default width so the module isn't constantly resizing with each
DOM update */
.module.MMM-NexusMetroRTI {
min-width: 360px;
}
/* Collapse some of the margin between consecutive modules */
.module.MMM-NexusMetroRTI+.module.MMM-NexusMetroRTI {
margin-top: calc(8px - var(--gap-modules));
}
.NMRTI_GREEN {
color: #3fba5a;
}
.NMRTI_YELLOW {
/* color: #ffb63a; */
color: #fdb826
}
/* Module is inside a flexbox */
.module.MMM-NexusMetroRTI > .module-content > div {
display: flex;
flex-flow: row nowrap;
justify-items: flex-start;
justify-content: flex-start;
align-items: flex-start;
gap: 0px 8px;
}
.NMRTI_METRO_LOGO {
margin-top: 6px;
font-size: 32px;
line-height: 1;
}
/* */
.NMRTI_CONTENT {
display: flex;
flex-flow: column nowrap;
align-items: flex-start;
justify-content: flex-start;
width: 100%;
}
.NMRTI_HEADER_TEXT {
display: flex;
flex-flow: column nowrap;
align-items: flex-start;
justify-content: space-between;
margin: 2px 0px;
}
.NMRTI_STATION {
font-family: "Calvert MT", "Roboto", "Sans-serif";
font-weight: bold;
font-size: 32px;
line-height: 1;
}
.NMRTI_PLATFORM {
font-family: "Roboto Condensed";
font-size: 16px;
line-height: 1.2;
}
div.NMRTI_TRAIN_LIST {
display: flex;
flex-flow: column nowrap;
align-items: flex-start;
width: 100%;
justify-content: flex-start;
}
div.NMRTI_TRAIN_ITEM {
display: flex;
flex-flow: row nowrap;
justify-content: flex-start;
align-items: center;
gap: 0px 8px;
height: 32px;
width: 100%;
padding: 0px;
margin: 2px 0px;
}
div.NMRTI_TRAIN_ITEM > .NMRTI_TRAIN_ICON {
font-size: 22px;
line-height: 1;
}
div.NMRTI_TRAIN_TEXT {
display: inline-flex;
flex-flow: column nowrap;
align-items: flex-start;
justify-items: center;
justify-content: space-between;
font-size: 16px;
height: 100%;
}
div.NMRTI_TRAIN_TEXT > span.NMRTI_DESTINATION {
font-family: "Calvert MT", "Roboto", "Sans-serif";
font-size: 14px;
line-height: 1;
margin: auto 0px;
}
div.NMRTI_TRAIN_TEXT > span.NMRTI_LOCATION {
font-family: "Roboto Condensed";
font-size: 14px;
line-height: 1;
margin: auto 0px;
}
div.NMRTI_TRAIN_ITEM > span.NMRTI_ETA {
font-family: "Roboto Condensed";
margin-left: auto;
margin-top: auto;
margin-bottom: auto;
height: 100%;
font-size: var(--font-size);
}