-
-
Notifications
You must be signed in to change notification settings - Fork 568
/
Copy pathstyle.css
133 lines (112 loc) · 2.45 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
@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@400;700&display=swap");
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: "Lexend", sans-serif;
background-color: #362a2b;
color: #e5ebf3;
}
.slider {
position: relative;
width: 100vw;
height: 100vh;
overflow: hidden;
}
.slide {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
transition: opacity 0.4s ease-in-out;
}
.slide.current {
opacity: 1;
}
.slide .content {
position: absolute;
bottom: -300px;
left: 0;
width: 100%;
opacity: 0;
background-color: rgba(229, 235, 243, 0.8);
color: #495b73;
padding: 1rem;
line-height: 1.3;
}
.slide .content h1 {
margin-bottom: 0.625rem;
color: #362a2b;
font-size: 1.5rem;
}
.slide.current .content {
opacity: 1;
transform: translateY(-300px);
transition: all 0.7s ease-in-out;
}
.slide:first-child {
background: url("https://images.unsplash.com/photo-1492633423870-43d1cd2775eb?q=80&w=2070")
no-repeat center top/cover;
}
.slide:nth-child(2) {
background: url("https://images.unsplash.com/photo-1471565661762-b9dfae862dbe?q=80&w=2070")
no-repeat center top/cover;
}
.slide:nth-child(3) {
background: url("https://images.unsplash.com/photo-1501196354995-cbb51c65aaea?q=80&w=2071")
no-repeat center top/cover;
}
.slide:nth-child(4) {
background: url("https://images.unsplash.com/photo-1469334031218-e382a71b716b?q=80&w=2070")
no-repeat center top/cover;
}
.slide:nth-child(5) {
background: url("https://images.unsplash.com/photo-1500917293891-ef795e70e1f6?q=80&w=2070")
no-repeat center top/cover;
}
.slide:nth-child(6) {
background: url("https://images.unsplash.com/photo-1463453091185-61582044d556?q=80&w=2070")
no-repeat center center/cover;
}
.buttons button#prev {
position: absolute;
top: 50%;
left: 1rem;
}
.buttons button#next {
position: absolute;
top: 50%;
right: 1rem;
}
.buttons button {
border: 2px solid #e5ebf3;
background-color: transparent;
color: #e5ebf3;
cursor: pointer;
padding: 13px 15px;
border-radius: 50%;
outline: none;
}
.buttons button:hover {
background-color: #e5ebf3;
color: #362a2b;
}
@media (min-width: 640px) and (min-height: 640px) {
.slide .content {
bottom: 70px;
left: -600px;
width: 600px;
padding: 2rem;
line-height: 1.6;
}
.slide .content h1 {
font-size: 2rem;
}
.slide.current .content {
transform: translateX(600px);
}
}