hematite 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_layouts/remark_slideshow.html +3 -1
- data/_sass/_layout.scss +11 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35584fa03a622c59a4b30f481935571355857bd0095c31f9884d97f26b41ba0d
|
4
|
+
data.tar.gz: dd0e32bd5dfdc7041898a6e2d6eec06854ec1d772756ff447a0ae71fe576595e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6fd8ce2ca17d3826b982a2e289d6d1e9386245258e5263d587edf53ef90efc3c9c765587ebf5d1a45435d37469c56c43a6f6039eac591767ba5ebb5a9e0d29c6
|
7
|
+
data.tar.gz: 736c44dbaaddbb632f377b214f8b4dc5a43b872198b64dcb06fad06d8b0b573a6e0b3a2d443c9840b6ce9cfc82ba6c7e7ae3a780bff747cdff2262999563fbbe
|
@@ -32,7 +32,7 @@ layout: default
|
|
32
32
|
<script defer type="module">
|
33
33
|
// Matches <div>...</div> or <div markdown=0>...</div>
|
34
34
|
// Jekyll can remove the 'markdown=0' while parsing.
|
35
|
-
const WRAPPING_DIV_EXP =
|
35
|
+
const WRAPPING_DIV_EXP = /^\s*[<]div.*[>]((?:.|[\n\r])*)[<]\/div[>]\s*$/;
|
36
36
|
|
37
37
|
import slideshow from "{{ 'assets/js/layout/remark_slideshow.mjs' | relative_url }}";
|
38
38
|
|
@@ -134,4 +134,6 @@ layout: default
|
|
134
134
|
else {
|
135
135
|
presentationFrame.onload = initSlides;
|
136
136
|
}
|
137
|
+
|
138
|
+
document.documentElement.classList.add("slideshow-mode");
|
137
139
|
</script>
|
data/_sass/_layout.scss
CHANGED
@@ -169,6 +169,17 @@ main.slideshow-mode {
|
|
169
169
|
}
|
170
170
|
}
|
171
171
|
|
172
|
+
// Make the main content large enough that the sidebar doesn't
|
173
|
+
// auto-expand.
|
174
|
+
:root.slideshow-mode {
|
175
|
+
.main-container {
|
176
|
+
max-width: 100vw;
|
177
|
+
|
178
|
+
// Transition immediately!
|
179
|
+
transition: width 0s ease, max-width 0s ease;
|
180
|
+
}
|
181
|
+
}
|
182
|
+
|
172
183
|
// On mobile devices,
|
173
184
|
@media screen and (max-width: $site-content-preferred-width) {
|
174
185
|
.main-container {
|