-
Notifications
You must be signed in to change notification settings - Fork 0
/
MMM-Stock.css
91 lines (80 loc) · 1.52 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
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
.marquee {
width: 100%;
margin: 0 auto;
overflow: hidden;
white-space: nowrap;
box-sizing: border-box;
animation: marquee 50s linear infinite;
-webkit-animation: marquee 50s linear infinite;
}
.down {
color: red;
}
.down::before {
content: '▾';
}
.up {
color: green;
}
.up::before {
content: '▴';
}
.down::before,
.up::before {
margin-left: 15px;
}
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 }