-
Notifications
You must be signed in to change notification settings - Fork 16
/
MMM-Stock.css
62 lines (55 loc) · 1.15 KB
/
MMM-Stock.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
span.quote
{
margin: 0;
font-weight: bold;
color: #fff;
padding: 0 5px 0 10px;
}
.greentext
{
color: red;
}
.redtext
{
color: green;
}
.up_green
{
background: url(http://www.codescratcher.com/wp-content/uploads/2014/11/down.gif) no-repeat left center;
padding-left: 10px;
margin-right: 5px;
}
.down_red
{
background: url(http://www.codescratcher.com/wp-content/uploads/2014/11/up.gif) no-repeat left center;
padding-left: 10px;
margin-right: 5px;
}
@keyframes ticker {
0% {margin-top: 0}
20% {margin-top: -30px}
40% {margin-top: -60px}
60% {margin-top: -90px}
80% {margin-top: -120px}
100% {margin-top: 0}
}
.quotes {
height: 25px;
overflow: hidden;
padding: 0px;
-webkit-user-select: none
}
.quotes ul {
float: right;
padding-left: 0px;
animation: ticker 10s cubic-bezier(1, 0, .5, 0) infinite;
-webkit-user-select: none
}
.quotes ul li {line-height: 25px; list-style: none }
.quotes ul li span {
font: 18px Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-webkit-user-select: none
}
.quotes ul:hover { animation-play-state: paused }
.quotes span:hover+ul { animation-play-state: paused }