-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMMM-stib2.css
161 lines (143 loc) · 2.33 KB
/
MMM-stib2.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
/*
*
* MMM-stib2
*
* Benoît Dardenne
* MIT Licensed.
*
* Custom here your css module
*
*/
div.stib-table {
text-transform: uppercase;
font-size: 60%;
vertical-align: middle;
display: grid;
position: relative;
grid-gap: 0 30px;
grid-template-columns: 0.5fr 1fr 3fr 1fr 1fr;
grid-auto-rows: 25px;
justify-self: center;
}
.stib-stopname {
writing-mode: vertical-rl;
transform: rotate(180deg);
grid-column: 1 / span 1;
align-self: center;
justify-self: right;
font-weight: bold;
}
.stib-linenumber-container {
grid-column: 2 / span 1;
align-self: center;
}
.stib-linenumber {
text-align: center;
border-radius: 5px;
font-weight: bold;
/*background-color: #bbb;*/
color: black;
display: inline-block;
width: 35px;
}
.stib-linenumber span {
display: inline-block;
vertical-align: middle;
align-self: center;
}
.stib-linenumber-icon {
width: 30px;
display: inline-block;
padding-bottom: 5px;
position: relative;
}
.stib-routeseparator {
grid-column: 1 / -1;
min-height: 15px;
}
.stib-stopseparator {
grid-column: 2 / -1;
border-bottom: 1px solid #444;
width: 60%;
height: 1px;
max-height: 1px;
justify-self: center;
align-self: center;
}
.stib-route {
grid-column: 3 / span 3;
}
.stib-routename {
align-self: center;
}
.stib-times {
align-self: center;
}
.stib-time-icon {
vertical-align: middle;
width: 10px;
/* fixed width so that even if there is no icon, the space is used. This way the numbers and icons align. */
display: inline-block;
font-size: 90%;
padding-left: 3px;
padding-bottom: 2px;
}
.stib-time-icon.fa-slash {
color: Tomato;
}
.stib-message {
grid-column: 3 / span 3;
justify-self: center;
align-self: center;
text-align: center;
position: absolute;
width: 100%;
font-size: 95%;
line-height: 95%;
}
.stib-content-fade {
animation: fadeContent 20s linear 0s infinite;
}
.stib-message-fade {
animation: fadeMessage 20s linear 0s infinite;
}
@keyframes fadeContent {
0% {
opacity: 1;
}
20% {
opacity: 1;
}
30% {
opacity: 0;
}
70% {
opacity: 0;
}
80% {
opacity: 1;
}
100% {
opacity: 1;
}
}
@keyframes fadeMessage {
0% {
opacity: 0;
}
20% {
opacity: 0;
}
30% {
opacity: 1;
}
70% {
opacity: 1;
}
80% {
opacity: 0;
}
100% {
opacity: 0;
}
}