jekyll-theme-hamilton 1.4.2 → 1.4.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 810f864c28adffeb0585fd1f3f12a8b1eceea1dd3d929f68c0c8a8efead8154c
4
- data.tar.gz: 8b04b2e0628cf79a39ceb42ff47133443bcd1e94814a07f8a88ce46cb1025cc8
3
+ metadata.gz: 923c76a8788de0fcf086a1abb43684230b7ecd21839fd67cf351d52cae0ecffd
4
+ data.tar.gz: 56050c56e1a2e2477519a5dabc4c7b817109abc39253ccf03db8d229bab2abfd
5
5
  SHA512:
6
- metadata.gz: b46e258e35418c30f9c1bd150c79d61942b3d28ba46926b6bfc8620b18b07a54bae29f9169ff738c35f3cba287af5764dc6827a9efe6c604dd0860175caf64c6
7
- data.tar.gz: b3a96ad33db7e9cb3198474b48fe7b73451f4831fd37359910f15af9f452efe6519f3d9421ad6080dfa8f6b46ed0accf265249570e5a328936b309948fcc3cf9
6
+ metadata.gz: 0ddd947d2d0087f32211306376cca39303078992dde628c9625bb52f3da3e9230751052d88d46f4d1a1cde30718c966d92b6580cff5d48e1c2689b4c31951778
7
+ data.tar.gz: f32c19d31b30f4ee19fadd2b343eb5e77c1fea341c42e8b424a46230bbbb55bb28489a36385e5523211305ff47a590d79d3f47d9a6276d2c8694347f504aa48c
@@ -70,7 +70,14 @@ layout: page
70
70
  </li>
71
71
  {%- endfor -%}
72
72
  </ul>
73
- <a href="#" class="back-to-top">Top &#8648;</a>
73
+ <a href="#" onclick="backToTop()" class="back-to-top">Top &#8648;</a>
74
74
  {%- endif -%}
75
75
  {%- endfor -%}
76
76
  {%- endfor -%}
77
+
78
+ <script>
79
+ function backToTop() {
80
+ const main = document.getElementById("site-main");
81
+ main.scrollTop = 0;
82
+ }
83
+ </script>
@@ -33,5 +33,12 @@ layout: page
33
33
  </li>
34
34
  {%- endfor -%}
35
35
  </ul>
36
- <a href="#" class="back-to-top">Top &#8648;</a>
36
+ <a href="#" onclick="backToTop()" class="back-to-top">Top &#8648;</a>
37
37
  {%- endfor -%}
38
+
39
+ <script>
40
+ function backToTop() {
41
+ const main = document.getElementById("site-main");
42
+ main.scrollTop = 0;
43
+ }
44
+ </script>
@@ -15,7 +15,7 @@
15
15
  <aside class="site-sidebar" id="site-sidebar">
16
16
  {% include sidebar.html %}
17
17
  </aside>
18
- <main class="site-main" aria-label="Content">
18
+ <main class="site-main" id="site-main" aria-label="Content">
19
19
  {{ content }}
20
20
  <footer class="site-footer">
21
21
  {% include footer.html %}
@@ -6,7 +6,7 @@
6
6
  width: 100vw;
7
7
  display: grid;
8
8
  grid-template-columns: 1fr;
9
- grid-template-rows: $base-font-size * 3 1fr;
9
+ grid-template-rows: $base-font-size * 3 + 6px 1fr;
10
10
  }
11
11
 
12
12
  /**
@@ -17,8 +17,6 @@
17
17
  border-bottom: 1px solid;
18
18
  min-height: $base-font-size * 3;
19
19
  line-height: $base-font-size * 3;
20
- position: sticky;
21
- top: 0;
22
20
 
23
21
  @include media-query($on-small) {
24
22
  display: flex;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-hamilton
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shangzhi Huang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-01 00:00:00.000000000 Z
11
+ date: 2020-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll