/
MMM-AVStock.css
141 lines (112 loc) · 2.09 KB
/
MMM-AVStock.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
@keyframes flash {
0% { background-color: #FFF; }
100% { background-color:#000; }
}
#AVSTOCK * {
font-size: 16px;
line-height:1.5em;
}
#AVSTOCK .changeP {
margin-left: 6px;
}
#AVSTOCK .up .change,
#AVSTOCK .up .changeP {
color: #0f0;
}
#AVSTOCK .down .change,
#AVSTOCK .down .changeP {
color: #f00f00;
}
#AVSTOCK .up .change::before,
#AVSTOCK .up .changeP::before {
content: " ▲";
}
#AVSTOCK .down .change::before,
#AVSTOCK .down .changeP::before {
content: " ▼";
}
#AVSTOCK .stock_item {
padding: 2px 10px;
background-color:#444;
border: 1px solid #666;
margin: 5px;
width: 200px;
line-height: 1.2em;
display: inline-block;
}
#AVSTOCK .anchor {
display:flex;
flex-direction:row;
}
/***** TICKER *****/
#AVSTOCK .ticker-wrap {
width: 100%;
overflow: hidden;
box-sizing: content-box;
}
#AVSTOCK .ticker-wrap .ticker {
white-space: nowrap;
box-sizing: content-box;
animation: stock-ticker linear infinite;
display: flex;
padding-left: 100%;
}
@-webkit-keyframes stock-ticker {
0% {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
visibility: visible;
}
100% {
-webkit-transform: translate3d(-200%, 0, 0);
transform: translate3d(-200%, 0, 0);
}
}
@keyframes stock-ticker {
0% {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
visibility: visible;
}
100% {
-webkit-transform: translate3d(-200%, 0, 0);
transform: translate3d(-200%, 0, 0);
}
}
/***** TABLE *****/
#AVSTOCK_TABLE {
border-spacing: 2px;
border-collapse: separate;
text-align: center;
}
#AVSTOCK td {
margin:2px;
padding:5px 5px;
line-height:1.5em;
}
#AVSTOCK thead td {
background-color:#999;
color:#000;
font-weight:bold;
text-align: center;
}
#AVSTOCK .stock_tr .symbol {
color:#FFF;
font-weight:bold;
text-align:left;
}
#AVSTOCK .price {
color:#FF9;
font-weight:bold;
}
/***** ALL *****/
#AVSTOCK .tagline.alert:before {
color: orange;
}
#AVSTOCK .animated {
animation: flash linear 1s;
}
#AVSTOCK .tagline {
font-size: 16px;
text-align:right;
}