-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
133 lines (113 loc) · 2.38 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
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-image: linear-gradient(to top, rgba(0, 0, 0, 0.8)50%, rgba(0, 0, 0, 0.8)50%), url('./Img/Cover\ Pic.jpg');
background-position: center;
background-size: cover;
background-repeat: no-repeat;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
flex-direction: column;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
h2 {
margin-bottom: 30px;
font-size: 2.5em;
color: #fff;
}
.box {
position: relative;
width: 600px;
height: 200px;
border-bottom: 2px solid #555;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.box label {
position: relative;
width: 100%;
height: 33.333%;
border: 2px solid #555;
border-bottom: none;
cursor: pointer;
}
.box label input {
position: relative;
appearance: none;
z-index: 10;
}
.box label i {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-size: 600px;
box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
.box label:nth-child(1) i {
background-image: url('./Img/01.jpg');
animation: animate 0.5s steps(3) infinite;
}
.box label:nth-child(2) i {
background-image: url('./Img/02.jpg');
animation: animate 0.4s steps(3) infinite;
}
.box label:nth-child(3) i {
background-image: url('./Img/03.jpg');
animation: animate 0.7s steps(3) infinite;
}
@keyframes animate {
0% {
background-position: 0px;
}
100% {
background-position: 600px;
}
}
.box label input:checked~i {
animation-play-state: paused;
}
.reset {
margin-top: 40px;
border: none;
font-size: 1.25em;
padding: 10px 25px;
background: #ef7500;
color: #fff;
border-radius: 4px;
cursor: pointer;
box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}
.reset:active {
background: #d63c3c;
transform: scale(0.95);
}
@media screen and (max-width:357px) {
h2 {
font-size: 1.5rem;
}
.box {
width: 100%;
max-width: 357px;
height: auto;
border: 2px solid red;
padding: 20px;
}
.box label {
height: auto;
}
.box label i {
background-size: 100%;
}
.reset{
font-size: 1rem;
}
}