hematite 0.1.17 → 0.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/assets/js/sidebar.mjs +7 -6
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9871fa407bada3c6ea89174286d18c636368cb1d5f682034645ef30f133dadf4
|
4
|
+
data.tar.gz: ee26cdd47410d26122a37931f53293855ce18220605477633795abd9baa506b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2550bc917619d6386ed93a874bb55b815433ada94ed8917f6d011307622db1fd300ddee934f43aadcee654a63415151546571e7c13fb2b0d9677545cff88b534
|
7
|
+
data.tar.gz: 68680acd809cedbacdc5a4a62488b8293f8d92fefd184b64c41337d1f30e7c9737929527a8f5d27e3aabe1361deaf70330e17dd876439d29637e06c5c4ebb8e8
|
data/assets/js/sidebar.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { stringLookup } from "./strings.mjs";
|
2
2
|
import { announceForAccessibility } from "./PageAlert.mjs";
|
3
|
-
|
3
|
+
import AsyncUtil from "./AsyncUtil.mjs";
|
4
4
|
|
5
5
|
function handleSidebar() {
|
6
6
|
const toggleBtn = document.querySelector(`button#toggle_sidebar_btn`);
|
@@ -38,10 +38,12 @@ function handleSidebar() {
|
|
38
38
|
};
|
39
39
|
|
40
40
|
// Expand the sidebar with/without animation.
|
41
|
-
const autoExpandSidebar = (noAnimations) => {
|
41
|
+
const autoExpandSidebar = async (noAnimations) => {
|
42
42
|
if (noAnimations) {
|
43
43
|
// Don't animate the sidebar if auto-expanding.
|
44
44
|
sidebar.style.transition = "none";
|
45
|
+
|
46
|
+
await AsyncUtil.nextAnimationFrame();
|
45
47
|
}
|
46
48
|
|
47
49
|
let remainingSpace = window.innerWidth - mainContainer.clientWidth;
|
@@ -54,14 +56,13 @@ function handleSidebar() {
|
|
54
56
|
setSidebarOpen(false);
|
55
57
|
}
|
56
58
|
|
57
|
-
|
58
59
|
updateBtn();
|
59
60
|
|
60
61
|
if (noAnimations) {
|
62
|
+
await AsyncUtil.nextAnimationFrame();
|
63
|
+
|
61
64
|
// Reset the sidebar's transition.
|
62
|
-
|
63
|
-
sidebar.style.transition = "";
|
64
|
-
});
|
65
|
+
sidebar.style.transition = "";
|
65
66
|
}
|
66
67
|
};
|
67
68
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hematite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henry Heino
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -16,15 +16,15 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '4.
|
19
|
+
version: '4.3'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '4.
|
27
|
-
description:
|
26
|
+
version: '4.3'
|
27
|
+
description:
|
28
28
|
email:
|
29
29
|
- personalizedrefrigerator@gmail.com
|
30
30
|
executables: []
|
@@ -178,7 +178,7 @@ homepage: https://github.com/personalizedrefrigerator/jekyll-hematite-theme
|
|
178
178
|
licenses:
|
179
179
|
- MIT
|
180
180
|
metadata: {}
|
181
|
-
post_install_message:
|
181
|
+
post_install_message:
|
182
182
|
rdoc_options: []
|
183
183
|
require_paths:
|
184
184
|
- lib
|
@@ -193,8 +193,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: '0'
|
195
195
|
requirements: []
|
196
|
-
rubygems_version: 3.3.
|
197
|
-
signing_key:
|
196
|
+
rubygems_version: 3.3.25
|
197
|
+
signing_key:
|
198
198
|
specification_version: 4
|
199
199
|
summary: A responsive and elegant Jekyll theme.
|
200
200
|
test_files: []
|