-
Notifications
You must be signed in to change notification settings - Fork 0
/
slideshow.css
127 lines (102 loc) · 1.6 KB
/
slideshow.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
/* Layout for slideshow output
========================================================================== */
html, body {
height: 100%;
}
body {
padding: 0;
}
img, video {
max-width: 100%;
}
.slides {
height: 100%;
}
.slide {
/* Will be display: flex; */
flex-direction: column;
}
.slide-image {
width: 90%;
margin: 1em auto;
}
.slide-notes {
width: 90%;
margin: 1em auto;
padding-bottom: 50px;
}
.slide-notes:empty {
display: none;
}
.slide-image img {
display: block;
margin: 0 auto;
}
@media (min-width: 800px) {
.slide-image {
width: 100%; /* explicit width */
height: 100%;
}
.slide {
height: 100%;
align-items: center;
flex-direction: row;
}
.slide-image {
display: flex;
align-items: center;
}
.js-notes-active .slide {
padding: 5%;
justify-content: space-between;
display: flex;
}
.js-notes-active .slide-image {
width: 58%;
}
.js-notes-active .slide-notes {
width: 38%;
}
}
#slide-pos {
position: fixed;
bottom: 10px;
left: 10px;
font-size: 13px;
}
@media (max-width: 799px) {
#show-shortcuts,
#shortcuts {
display: none;
}
}
#show-shortcuts {
position: fixed;
bottom: 10px;
right: 10px;
}
#shortcuts {
position: fixed;
bottom: 30px;
right: 30px;
padding: 0 18px;
border-radius: 6px;
font-size: 14px;
}
#shortcuts ul {
padding-left: 20px;
}
@media (min-width: 799px) {
#explicit-controls {
display: none;
}
}
#explicit-controls {
position: fixed;
bottom: 10px;
right: 10px;
}
#explicit-controls button {
border-radius: 3px;
padding: 10px 20px;
}