-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
51 lines (50 loc) · 1.09 KB
/
styles.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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: grid;
place-items: center;
min-height: 100vh;
}
body .slide-wrapper {
width: 90vw;
border-radius: 0.2rem;
overflow: hidden;
}
body .slide-wrapper [data-slide] {
display: flex;
list-style: none;
overflow-x: scroll;
overflow-y: hidden;
-ms-scroll-snap-type: x mandatory;
scroll-snap-type: x mandatory;
-webkit-overflow-scrolling: touch;
scroll-behavior: smooth;
}
body .slide-wrapper [data-slide] li {
flex: 0 0 auto;
width: 100%;
height: 400px;
scroll-snap-align: start;
pointer-events: none;
}
body .slide-wrapper [data-slide] li img {
width: 100%;
height: 100%;
-o-object-fit: cover;
object-fit: cover;
}
body .slide-wrapper [data-slide]::-webkit-scrollbar {
background-color: #eee;
}
body .slide-wrapper [data-slide]::-webkit-scrollbar-thumb {
background-color: red;
border: 0.3rem solid #eee;
border-radius: 0.5rem;
background-color: #adadad;
}
body .slide-wrapper [data-slide]::-webkit-scrollbar-thumb:hover {
background-color: #797979;
}/*# sourceMappingURL=styles.css.map */