-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
87 lines (87 loc) · 1.53 KB
/
style.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
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: Tahoma, Arial, serif;
}
.slider-container {
margin: 10px auto;
width: 800px;
height: 600px;
position: relative;
}
.slider-container img {
position: absolute;
opacity: 0;
transition: opacity 1s;
z-index: 1;
}
.slider-container img.active {
opacity: 1;
}
.slider-container .slide-number {
position: absolute;
left: 10px;
top: 10px;
background-color: rgba(0, 0, 0, .6);
color: #FFF;
padding: 5px 10px;
font-size: 20px;
z-index: 2;
border-radius: 6px;
}
.slider-controls {
width: 800px;
margin: auto;
overflow: hidden;
}
.slider-controls .prev,
.slider-controls .next {
background-color: #009688;
color: #FFF;
font-size: 16px;
text-align: center;
cursor: pointer;
border-radius: 4px;
padding: 5px;
user-select: none;
width: 20%;
}
.slider-controls .prev {
float: left;
}
.slider-controls .next {
float: right;
}
.slider-controls .prev.disabled,
.slider-controls .next.disabled {
background-color: rgba(0, 150, 136, 0.5);
cursor: no-drop;
}
.slider-controls .indicators {
width: 60%;
float: left;
}
.slider-controls .indicators ul {
list-style: none;
margin: 0;
text-align: center;
}
.slider-controls .indicators ul li {
display: inline-block;
background-color: #F6F6F6;
color: #333;
font-weight: bold;
height: 28px;
width: 28px;
border-radius: 4px;
margin: 0 2px;
line-height: 28px;
cursor: pointer;
}
.slider-controls .indicators ul li.active {
background-color: #009688;
color: #FFF;
}