hematite 0.1.17 → 0.1.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/assets/js/sidebar.mjs +7 -6
  3. metadata +9 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e13c30f8073a911e836692a8f9b71aaf1133582d58ad48492898624a8749bc8b
4
- data.tar.gz: e30cb4599ba4bf530ea06f542f892ef6ef648075e538f8bd83f0772a4c9d05b4
3
+ metadata.gz: 9871fa407bada3c6ea89174286d18c636368cb1d5f682034645ef30f133dadf4
4
+ data.tar.gz: ee26cdd47410d26122a37931f53293855ce18220605477633795abd9baa506b2
5
5
  SHA512:
6
- metadata.gz: 2d6be697d7284fdd38d3ebbb1c8be3e78df5d4ea940cdd9fa247c0dda17459c4d4022c3882550b43f820bd2fa90a39121fb505ec8113ed897ab3cb003974b42a
7
- data.tar.gz: 6cce82827a078b6f60d8cba97000bb7ff51af34ca2ed63106a630a9d895ab71873755c1871918defb97e90191686dca426a8e3cdc1c4f61e958d26e7125b775a
6
+ metadata.gz: 2550bc917619d6386ed93a874bb55b815433ada94ed8917f6d011307622db1fd300ddee934f43aadcee654a63415151546571e7c13fb2b0d9677545cff88b534
7
+ data.tar.gz: 68680acd809cedbacdc5a4a62488b8293f8d92fefd184b64c41337d1f30e7c9737929527a8f5d27e3aabe1361deaf70330e17dd876439d29637e06c5c4ebb8e8
@@ -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
- requestAnimationFrame(() => {
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.17
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-09-10 00:00:00.000000000 Z
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.2'
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.2'
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.5
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: []