-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
80 lines (66 loc) · 1.32 KB
/
styles.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
.ticker--outer {
width:100%;
padding: 40px;
box-sizing: border-box;
}
.ticker--inner {
background-color: #CCC;
padding: 10px;
}
.ticker--controls {
width: inherit;
margin-top: 40px;
text-align:center;
}
.ticker {
margin: 0 auto;
padding: 20px;
white-space: nowrap;
overflow: hidden;
}
.ticker--mlb {
background-color: rgba(0,0,0,.5);
color: #FFF;
}
.ticker--nfl {
background-color: rgba(255,255,255, 1);
}
.ticker--mlb span {
display: inline-block;
padding-left: 1000px;
animation: ticker--scroll 20s linear infinite;
}
.ticker--nfl span {
display: inline-block;
padding-left: 1100px;
animation: ticker--scroll 35s linear infinite;
}
.ticker--nfl span:hover, .ticker--mlb span:hover {
cursor: pointer;
-moz-animation-play-state: paused;
-webkit-animation-play-state: paused;
animation-play-state: paused;
}
@keyframes ticker--scroll {
0% { transform: translate(0, 0); }
100% { transform: translate(-100%, 0); }
}
button {
border-radius: 4px;
padding: 20px;
cursor: pointer;
}
button:hover {
background-color: rgba(0,0,0,.1);
}
.btn--stop {
background-color: rgba(255,0,0,.3);
color: #FFF;
}
.btn--stop:hover {
background-color: rgba(255,0,0,1);
color: #000;
}
.mr-32 {
margin-right: 32px;
}