-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathslideshow.css
More file actions
88 lines (86 loc) · 1.43 KB
/
slideshow.css
File metadata and controls
88 lines (86 loc) · 1.43 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
* {
box-sizing: border-box;
touch-action: pan-y;
}
html, body {
overflow: hidden;
}
body {
margin: 0;
width: 100vw;
height: 100vh;
background-color: #dedede;
font-family: Arial, Helvetica, sans-serif;
counter-reset: slide;
}
.slide {
width: 90vw;
height: 96vh;
top: 2vh;
padding: 2vmin;
background-color: white;
border-radius: 5px;
transition: all 2s;
position: absolute;
left: 189vw;
box-shadow: 0 0 10px 3px rgba(0,0,0,0.2);
display: grid;
place-items: center;
counter-increment: slide;
}
.slide.current{
left: 5vw;
}
.slide.current::before{
content: counter(slide);
position: fixed;
bottom: 4px;
left: calc(50vw - 3vmax/2);
background-color: cornflowerblue;
color: white;
box-shadow: 0 0 1px 1px rgba(0,0,0,.1);
z-index: 3;
width: 3vmax;
height: 3vmax;
border-radius: 100%;
font-size: 1rem;
display: grid;
place-items: center;
}
.slide.next {
left: 97vw;
}
.slide.prev {
left: -87vw;
}
.slide.past{
left: -179vw;
}
.material-icons.left, .material-icons.right {
transition: transform 0.3s;
cursor: pointer;
user-select: none;
position: fixed;
top: 50vh;
}
.material-icons.left{
left: 1vw;
}
.material-icons.right{
right: 1vw;
}
.material-icons.left:hover, .material-icons.right:hover {
transform: scale(1.5);
}
.slide iframe{
width: 100%;
height: 100%;
border: 0;
}
a {
text-decoration: none;
color: cornflowerblue;
}
a:visited {
color: cornflowerblue;
}