-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathday-12.css
More file actions
115 lines (94 loc) · 2.67 KB
/
day-12.css
File metadata and controls
115 lines (94 loc) · 2.67 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
.input { display: none; }
.container { height: 100%; width: 100%; }
.slider { margin: 0 auto; }
.slider-content {
border: solid 2px #e0e0e0;
display: block;
height: 40%;
margin: 20px auto;
overflow: hidden;
width:60%;
}
.slider-image {
background-size: contain;
float: left;
margin: 0;
padding: 0;
transition: all 300ms ease-in-out;
width: 25%;
}
.slider-images { display: block; height: 40%; width: 400%; }
.slider-pagination {
position: relative;
width: 100%;
height: 20px;
margin-top: -21px;
float: left;
text-align: center;
z-index: 100;
}
.slider-pagination-bullet {
display: inline-block;
width: 16px;
height: 16px;
border-radius: 8px;
background: rgba(0,0,0,.8);
z-index: 5;
}
.slider-pagination-bullet:hover { background: rgba(255,255,255,.6); cursor: pointer; }
.slider-pagination-bullet:before {
background: #fff;
border-radius: 5px;
content: "";
display: none;
height: 10px;
margin: 3px;
width: 10px;
}
.right, .left {
background: #ccc;
background-size: 100%;
border-radius: 32px;
cursor: pointer;
height: 64px;
margin-top: 15%;
display: inline-block;
opacity: 0.9;
width: 64px;
}
.left { float: left; margin-left: 12%; }
.right { float: right; margin-right: 12%; }
.right:hover {
animation: _right ease 0.5s;
background-color: #ffcc00;
}
.left:hover {
animation: _left ease 0.5s;
background-color: #ffcc00;
}
.arrow { display: none; transition: background-color 300ms ease-in-out; }
#slide1:checked ~ .slider .slider-content .slider-pagination .bullet1:before,
#slide1:checked ~ .slider .arrow--1 { display: inline-block; }
#slide2:checked ~ .slider .slider-content .slider-images { margin-left: -100%; }
#slide2:checked ~ .slider .arrow--2,
#slide2:checked ~ .slider .slider-content .slider-pagination .bullet2:before { display: inline-block; }
#slide3:checked ~ .slider .slider-content .slider-images { margin-left: -200%; }
#slide3:checked ~ .slider .arrow--3,
#slide3:checked ~ .slider .slider-content .slider-pagination .bullet3:before { display: inline-block; }
#slide4:checked ~ .slider .slider-content .slider-images { margin-left: -300%; }
#slide4:checked ~ .slider .arrow--4,
#slide4:checked ~ .slider .slider-content .slider-pagination .bullet4:before { display: inline-block; }
@keyframes _right {
0% { background-position: 0px 0px; }
49.9% { background-position: 64px 0px; }
50% { display: none; background-position: -64px; }
50.1% { background-position: -64px; }
100% { background-position: 0px 0px; }
}
@keyframes _left {
0% { background-position: 0px 0px; }
49.9% { background-position: -64px 0px; }
50% { display: none; background-position: 64px; }
50.1% { background-position: 64px; }
100% { background-position: 0px 0px; }
}