-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMMM-MBTA.css
60 lines (48 loc) · 825 Bytes
/
MMM-MBTA.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
.MMM-MBTA .red {
color: #cd2230;
}
.MMM-MBTA .blue {
color: #0064c8;
}
.MMM-MBTA .orange {
color: #ff8200;
}
.MMM-MBTA .green {
color: #428608;
}
.MMM-MBTA .commuter {
color: #a00a78;
}
.MMM-MBTA .bus {
color: #ffce0c;
}
.MMM-MBTA .boat {
color: #5da9e8;
}
.MMM-MBTA .alerts-header {
margin-top: 6px;
}
.MMM-MBTA .alerts {
overflow: hidden;
max-width: 300px;
display: flex;
}
.MMM-MBTA .alerts-wrapper {
display: flex;
white-space: nowrap;
}
.MMM-MBTA .alerts-wrapper.animate {
/* start the alert off screen */
padding-left: 100%;
transform: translateX(0%);
animation: alert calc(0.075s * var(--char-count, 100)) linear infinite;
}
/* Move it (define the animation) */
@keyframes alert {
0% {
transform: translateX(0%);
}
100% {
transform: translateX(-100%);
}
}