-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.css
123 lines (97 loc) · 2.28 KB
/
main.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
#myslider {
height: 100vh;
width: auto;
}
.slider {
width: 100%;
height: 100%;
background-size: cover;
background-repeat: no-repeat;
background-position-y: bottom;
background-position-x: center;
text-align: center;
padding-top: 46vh;
font-size: 2rem;
color: white;
}
.highlight {
color: #009FE5;
font-weight: 700;
}
@media (max-width: 40rem) {
.webp #slider1 {
background-image: url("img/slider1_small.webp");
background-position: 50% bottom;
}
.no-webp #slider1 {
background-image: url("img/slider1_small.jpg");
background-position: 50% bottom;
}
.webp #slider2 {
background-position: 15% bottom;
background-image: url("img/slider2_small.webp");
}
.no-webp #slider2 {
background-position: 15% bottom;
background-image: url("img/slider2_small.jpg");
}
.webp #slider3 {
background-image: url("img/slider3_small.webp");
padding-top: 58vh;
background-position: 10% 90%;
}
.no-webp #slider3 {
background-image: url("img/slider3_small.jpg");
padding-top: 58vh;
background-position: 10% 90%;
}
.webp #slider4 {
background-image: url("img/slider4_small.webp");
padding-top: 47vh;
}
.no-webp #slider4 {
background-image: url("img/slider4_small.jpg");
padding-top: 47vh;
}
}
@media (min-width: 40rem) {
#myslider div[id^="slider"] {
font-size: 3rem;
padding-left: 5rem;
padding-right: 5rem;
}
.webp #slider3 {
background-position-y: bottom;
background-position-x: center;
background-image: url("img/slider3.webp");
}
.no-webp #slider3 {
background-position-y: bottom;
background-position-x: center;
background-image: url("img/slider3.jpg");
}
.webp #slider4 {
background-position: center 26%;
background-image: url("img/slider4.webp");
}
.no-webp #slider4 {
background-position: center 26%;
background-image: url("img/slider4.jpg");
}
.webp #slider1 {
background-position: center 70%;
background-image: url("img/slider1.webp");
}
.no-webp #slider1 {
background-position: center 70%;
background-image: url("img/slider1.jpg");
}
.webp #slider2 {
background-position: center 38%;
background-image: url("img/slider2.webp");
}
.no-webp #slider2 {
background-position: center 38%;
background-image: url("img/slider2.jpg");
}
}