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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 05a0aa60a85dd027a9a75e119e54432b2ea0657775d872ae3b0474e9ebab9a5a
4
- data.tar.gz: 2d93683789b2ecff19bcc54608484e64889488a151f3f668596d3df79a5fcf90
3
+ metadata.gz: 35584fa03a622c59a4b30f481935571355857bd0095c31f9884d97f26b41ba0d
4
+ data.tar.gz: dd0e32bd5dfdc7041898a6e2d6eec06854ec1d772756ff447a0ae71fe576595e
5
5
  SHA512:
6
- metadata.gz: 51770f1f5812dae37c4ff1eaf87c36f799cbb5ed73dbb45bb16cb3517dc34bf3d305c6d2a54fe4baeb2f6e4c623e6e271b7db9b2cdb60b078c326a88b97ce11b
7
- data.tar.gz: ab0ccb98a0ab44a07d6e1d86c32ef42ab68f3bf0ec1fb626ca53a913c4d4c00fd0602c9373dbfac64af0b7b98b684dd4be523dd6d91fc51825422b8571bd3aeb
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 = /\s*[<]div.*[>]((?:.|[\n\r])*)[<]\/div[>]\s*/;
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 {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hematite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henry Heino