forked from tbielich/fashion-slider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathslide.css
81 lines (81 loc) · 1.24 KB
/
slide.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
.slider {
position: relative;
background: #eee;
display: block;
width: 100%;
}
.slider-indicators {
display: inline-block;
width: 20%;
box-sizing: border-box;
margin: 0;
padding: 0;
float: left;
vertical-align: middle;
}
.slider-inner {
position: relative;
display: inline-block;
width: 80%;
overflow: auto;
white-space: nowrap;
box-sizing: border-box;
}
.slider-indicators li {
list-style: none;
margin: 0;
padding: 10px;
border-bottom: 1px solid #DDD;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
display: list-item;
}
.slider-indicators li a {
text-decoration: none;
color: black;
}
.slider-indicators li:last-child {
border: 0;
}
.slider-indicators li.active,
.slider-inner .item.active {
background: white;
}
.slider-inner .item {
display: inline-block;
}
.slider-inner .item img {
width: 100%;
}
.slider-inner .item h1 {
position: absolute;
}
.slider-control {
display: none;
position: absolute;
top: 50%;
background: white;
padding: 20px;
text-align: center;
text-decoration: none;
font-weight: bold;
margin-top: -30px;
}
.left.slider-control {
left: 0;
}
.right.slider-control {
right: 0;
}
@media only screen and (max-width: 640px) {
.slider-control {
display: block;
}
.slider-indicators {
display: none;
}
.slider-inner {
width: 100%;
}
}