-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMMM-MVVWiesty.css
More file actions
145 lines (128 loc) · 3.72 KB
/
Copy pathMMM-MVVWiesty.css
File metadata and controls
145 lines (128 loc) · 3.72 KB
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
/* ── Module container ─────────────────────────────────── */
.MMM-MVVWiesty .module-content {
margin: 0;
}
.mvv-table-wrapper {
width: 100%;
min-width: 200px;
}
/* ── Each departure row ───────────────────────────────── */
.departure-row {
display: flex;
align-items: center;
gap: 0.5em;
padding: 0.15em 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.departure-row:last-of-type {
border-bottom: none;
}
/* ── Icon ─────────────────────────────────────────────── */
.icon-cell {
flex: 0 0 auto;
}
.productsvg {
height: 1em;
width: auto;
display: block;
}
/* ── Line number ──────────────────────────────────────── */
.line-cell {
flex: 0 0 auto;
min-width: 2em;
font-weight: bold;
}
/* ── Direction: grows, truncates with ellipsis ────────── */
/* min-width: 0 is required — without it flex items won't */
/* shrink below content size and ellipsis never triggers. */
.direction-cell {
flex: 1 1 0;
min-width: 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
/* ── Departure time ───────────────────────────────────── */
.time-cell {
flex: 0 0 auto;
text-align: right;
font-weight: 500;
white-space: nowrap;
}
/* ── Countdown "in X Min" ─────────────────────────────── */
.until-cell {
flex: 0 0 auto;
text-align: right;
white-space: nowrap;
min-width: 6em;
opacity: 0.8;
font-size: 0.9em;
}
/* ── Notification scroll ──────────────────────────────── */
.notification-row {
padding: 0.3em 0;
}
.scroll-container {
overflow: hidden;
white-space: nowrap;
width: 100%;
position: relative;
padding: 0.15em 0;
mask-image: linear-gradient(
to right,
rgba(0, 0, 0, 0) 0%,
rgb(0, 0, 0) 8%,
rgb(0, 0, 0) 92%,
rgba(0, 0, 0, 0) 100%
);
}
.scroll-text {
display: inline-block;
padding-left: 100%;
animation: scroll-animation linear infinite;
white-space: nowrap;
font-size: 0.85em;
opacity: 0.9;
}
@keyframes scroll-animation {
from { transform: translateX(0); }
to { transform: translateX(-100%); }
}
/* ── Center positions: constrain width ───────────────── */
.top.center .MMM-MVVWiesty,
.upper.third .MMM-MVVWiesty,
.middle.center .MMM-MVVWiesty,
.lower.third .MMM-MVVWiesty,
.bottom.center .MMM-MVVWiesty,
.bottom.bar .MMM-MVVWiesty {
width: 28vw;
max-width: 520px;
min-width: 280px;
margin-left: auto;
margin-right: auto;
}
/* ── Left positions ───────────────────────────────────── */
.top.left .MMM-MVVWiesty,
.upper.left .MMM-MVVWiesty,
.middle.left .MMM-MVVWiesty,
.lower.left .MMM-MVVWiesty,
.bottom.left .MMM-MVVWiesty {
width: 100%;
max-width: 380px;
}
/* ── Right positions: override MM's default text-align ── */
.top.right .MMM-MVVWiesty,
.upper.right .MMM-MVVWiesty,
.middle.right .MMM-MVVWiesty,
.lower.right .MMM-MVVWiesty,
.bottom.right .MMM-MVVWiesty {
width: 100%;
max-width: 380px;
}
.top.right .MMM-MVVWiesty .departure-row,
.upper.right .MMM-MVVWiesty .departure-row,
.middle.right .MMM-MVVWiesty .departure-row,
.lower.right .MMM-MVVWiesty .departure-row,
.bottom.right .MMM-MVVWiesty .departure-row {
text-align: left;
}