-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathMMM-Jast.css
93 lines (84 loc) · 1.8 KB
/
MMM-Jast.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
@keyframes tickerh {
0% {
-webkit-transform: translateX(0);
transform: translateX(0);
will-change: transform;
}
100% {
-webkit-transform: translateX(-100%);
transform: translateX(-100%);
will-change: transform;
}
}
.jast-wrapper {
overflow: hidden;
--size: 1.4rem;
font-size: var(--size);
line-height: calc(var(--size) * 1.44);
}
.jast-wrapper.horizontal {
margin: 0 auto;
white-space: nowrap;
}
.jast-wrapper ul {
padding: 0;
margin: 0;
list-style-type: none;
}
.jast-wrapper.vertical {
height: calc(var(--size) * 1.44);
}
.jast-wrapper.vertical > ul {
animation-name: tickerv;
animation-iteration-count: infinite;
animation-timing-function: cubic-bezier(1, 0, 0.5, 0);
}
.jast-wrapper.horizontal .jast-hticker {
position: absolute;
display: flex;
}
.jast-wrapper.horizontal ul.jast-tickerframe {
padding-left: 100%;
}
.jast-wrapper.horizontal li.jast-stock {
display: inline-block;
}
.jast-wrapper.horizontal li.jast-stock:before {
content: '\2022';
margin-right: 0.4em;
margin-left: 0.4em;
}
.jast-wrapper:not(.monochrome) .jast-stock span.high {
color: green;
}
.jast-wrapper:not(.monochrome) .jast-stock span.low {
color: red;
}
.jast-multi-currency::before {
color: #999;
content: '| ';
}
.jast-wrapper .jast-stock span.jast-change {
vertical-align: top;
font-size: calc(var(--size) - 0.3em);
}
.jast-wrapper span.jast-change-value:nth-child(2)::before,
span.jast-change-value:nth-child(3)::before {
content: ' | ';
}
.MMM-Jast .jast-wrapper.none ul {
display: flex;
flex-direction: column;
}
.MMM-Jast .jast-wrapper.none li.jast-stock {
display: flex;
justify-content: space-between;
column-gap: 1vmin;
}
.MMM-Jast .jast-wrapper.table table {
table-layout: fixed;
}
.MMM-Jast .jast-wrapper.table th,
td {
padding-right: 0.5em;
}