-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
94 lines (85 loc) · 1.49 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
body{
font-family: sans-serif;
margin: 20px;
}
body.paused{
user-select: none;
-webkit-user-select: none;
-webkit-touch-callout: none;
text-size-adjust: none;
-webkit-text-size-adjust: none;
touch-action: manipulation;
}
img, video{
display: block;
max-width: 100%;
}
h1{
text-align: center;
font-size: 1.5rem;
}
#slide-elements{
display: grid;
grid-area: 1/1;
}
#slide-elements > *{
grid-area: 1/1;
opacity: 0;
visibility: none;
}
#slide-elements > .active{
opacity: 1;
visibility: visible;
}
#slide{
display: grid;
border-radius: 4px;
overflow: hidden;
margin: 20px auto;
max-width: 800px;
background: black;
}
#slide-controls{
grid-area: 1/1;
display: grid;
grid-template-columns: 1fr 1fr;
position: relative;
}
#slide-controls button{
opacity: 0;
appearance: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
#slide-thumb{
display: flex;
position: absolute;
width: 100%;
pointer-events: none;
}
#slide-thumb > span{
flex: 1;
display: block;
height: 4px;
background: rgba(255, 255, 255, .2);
/* background: blue; */
margin: 5px;
border-radius: 4px;
overflow: hidden;
isolation: isolate;
}
#slide-thumb .thumb-item.active{
display: block;
height: inherit;
background: rgba(255, 255, 255, .9);
border-radius: 4px;
transform: translateX(-100%);
animation: thumb forwards linear running;
}
#slide-thumb .thumb-item.paused{
animation-play-state: paused;
}
@keyframes thumb{
to {
transform: initial;
}
}