Repository navigation
Expand file tree
/
Copy pathmain.css
More file actions
90 lines (87 loc) · 1.69 KB
/
Copy pathmain.css
File metadata and controls
90 lines (87 loc) · 1.69 KB
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
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body{
font-family: tahoma, arial;
}
.slider-container{
margin: 10px auto;
width: 600px;
height: 400px;
position: relative;
}
.slider-container img {
position: absolute;
opacity: 0;
transition: opacity 1s;
z-index: 1;
}
.slider-container img.active{
opacity: 1;
}
.slider-container .slider-number{
position: absolute;
left: 10px;
top: 10px;
background-color: #333;
color: aliceblue;
padding: 5px 10px;
font-size: 20px;
z-index: 2;
border-radius: 6px;
}
.slider-controls {
width: 600px;
margin: auto;
overflow: hidden;
}
.slider-controls .prev,
.slider-controls .next {
background-color: rgb(31, 112, 85);
color: aliceblue;
font-size: 16px;
text-align: center;
cursor: pointer;
border-radius: 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(52, 122, 99, 0.452);
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: aliceblue;
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: rgb(42, 148, 113);
color: aliceblue;
}