-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
129 lines (100 loc) · 1.99 KB
/
style.css
File metadata and controls
129 lines (100 loc) · 1.99 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
116
117
118
119
120
121
122
123
124
125
126
127
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html , body {
height: 100%;
}
body {
color: #444;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-size: 1rem;
line-height: 1.5;
background-color: antiquewhite ;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
}
.slider {
position: relative;
width: 350px;
height: 400px;
background-color: aliceblue;
overflow: hidden;
display: flex;
flex-flow: row nowrap;
justify-content: center;
align-items: flex-end;
border-radius: 25px;
}
.nav {
width: 12px;
height: 12px;
margin: 2rem 15px;
border: 7px solid #444;
border-radius: 50%;
cursor: pointer;
transition: all 0.3s ease;
z-index: 15;
appearance: none;
backface-visibility: hidden;
}
.nav:checked {
border: 7px solid aqua;
animation: check 0.4s linear forwards;
}
.nav:checked:nth-of-type(1) ~ .inner {
left: 0%;
}
.nav:checked:nth-of-type(2) ~ .inner {
left: -100%;
}
.nav:checked:nth-of-type(3) ~ .inner {
left: -200%;
}
.nav:checked:nth-of-type(4) ~ .inner {
left: -300%;
}
.inner {
position: absolute;
width: 400%;
height: 100%;
left: 0;
top: 0;
display: flex;
flex-flow: row nowrap;
transition: left 0.4s ease;
}
.contents {
height: 100%;
padding: 2rem;
display: flex;
flex: 1;
flex-flow: column nowrap;
align-items: center;
justify-content: center;
}
.caption {
font-weight: 500;
margin: 2rem 0 1rem 0;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
text-transform: uppercase;
}
.txt {
color: #999;
margin-bottom: 3rem ;
max-width: 300px;
text-align: center;
}
@keyframes check {
50% {
outline-color: #333;
box-shadow: 0 0 0 12px #333, 0 0 0 36px rgba(51, 51, 51, 0.2);
}
100% {
outline-color: #333;
box-shadow: 0 0 0 12px #333, rgba(51, 51, 51);
}
}