jekyll-theme-noesya 1.1.3 → 1.1.5

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: 5fe90daecd089baaa21897a5e250efb2b7664e601eb1b6c2b8a238a0ab444aee
4
- data.tar.gz: 554d4ed4becb203c208a32e50dbd6910f8a58c40d4affb1641ec921ce1cdb963
3
+ metadata.gz: 63cced3842a096b4c2e262a004a843d0d19d407e9c4d5ad2cbf33373d77a3d5f
4
+ data.tar.gz: 1aaa964183956fa6941f8c2779b31fc46687965e0837d65b56c6a69603ccd752
5
5
  SHA512:
6
- metadata.gz: 0fe6ee293561b1631bf9f8409ac376d923d60b0adfef8387825e9aa033bfb8ed151915d8a855fdaeb39b71c0391512f95c271038283b199c73825bb9696c184a
7
- data.tar.gz: 4d788a42a775e3288e7245fae4e85f0159215f5e10439609d3654c161c9c17af22cfdc70792df9c392def6061c1acd90a16641279235544ee0192f635fc1e7fc
6
+ metadata.gz: 6838ee8fbc1642bcb98d26a6e5059965357470c977cd6517bacc8985fe19540362729b66b299f2ff11fc5b2b7978b0093a6f9fa23ca9ade103dd663dff787383
7
+ data.tar.gz: 6d1b13810f138cd12c052b1a5bbfd6c5704efe8ba1b5ed00967e1ff4919ce333484ffb6a4ba060e9f2e7387708aa9faf734831f644453fefeeef69cd16ef7023
@@ -6,6 +6,7 @@ window.menu = {
6
6
  this.dom = document.querySelector('#header');
7
7
  this.button = this.dom.querySelector('button');
8
8
  this.menu = this.dom.querySelector('.menu');
9
+ this.footer = document.querySelector('body > footer');
9
10
  this.links = this.menu.querySelectorAll('a');
10
11
 
11
12
  this.bind();
@@ -37,7 +38,14 @@ window.menu = {
37
38
  },
38
39
  scroll: function () {
39
40
  'use strict';
40
- var y = window.scrollY;
41
+ var y = window.scrollY,
42
+ mainHeight = document.querySelector('main').offsetHeight;
43
+
44
+ if (y > 100 || mainHeight < window.innerHeight) {
45
+ this.footer.classList.add('is-visible');
46
+ } else {
47
+ this.footer.classList.remove('is-visible');
48
+ }
41
49
 
42
50
  if (this.isOpened) {
43
51
  return;
@@ -70,6 +70,8 @@ body > footer
70
70
  overflow: hidden
71
71
  position: fixed
72
72
  width: 100%
73
+ &:not(.is-visible)
74
+ opacity: 0
73
75
  div
74
76
  @include grid
75
77
  align-items: start
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-noesya
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sébastien Moulène
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2023-04-03 00:00:00.000000000 Z
13
+ date: 2023-06-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: jekyll