-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
59 lines (54 loc) · 1.04 KB
/
index.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
.news-ticker {
font-size: 24px;
height: 88px;
background-color: #000;
color: #fff;
overflow: hidden;
white-space: nowrap;
}
.news-ticker__label {
display: inline-block;
width: 168px;
padding: 10px 25px;
text-align: right;
background-color: #000;
z-index: 1000;
position: relative;
vertical-align: middle;
white-space: normal;
}
.news-ticker__label:before {
content: '';
border-right: 1px solid #fff;
position: absolute;
top: 5px;
bottom: 5px;
right: 0;
}
.news-ticker__label:after {
content: '';
background: linear-gradient(to right, rgba(0,0,0,0.85) 0%,rgba(0,0,0,0) 100%);
width: 40px;
display: block;
position: absolute;
left: calc(100% + 2px);
top: 0;
bottom: 0;
}
.news-ticker__slider {
display: inline-block;
height: 100%;
padding-top: 16px;
padding-bottom: 16px;
position: relative;
vertical-align: middle;
transition: left 0.6s ease;
left: 0;
}
.news-ticker__slider > * {
display: inline-block;
padding: 0 30px;
width: 630px;
white-space: normal;
vertical-align: top;
}