jekyll-theme-noesya 1.1.2 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/js/menu-burger.js +7 -0
- data/_sass/commons/footer.sass +17 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10709aa31e1b914d2795991621c73e044dd14688cef02eb5a1cc7fa9e1506eec
|
4
|
+
data.tar.gz: c35b3b8c89fbacdb862520a17b58b2c74796c60db0dc91406d885d27e0544d49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 987540311bd07af0d3d7b62e7aaaeba4fa195910b7b120bb9a481a94c74fd917cdb3a513732e92535111ac1712dbe4e8cf454932fbe39182807baa5e0e867ae8
|
7
|
+
data.tar.gz: 8196b0537c210ebfec02ef88b1486628a6abf2b97b8e960c5e200f6f00e1f9e8572516c7a4a6360d0ad4aae23756c410e234397013e5ca50fb96363df852bc91
|
data/_includes/js/menu-burger.js
CHANGED
@@ -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();
|
@@ -39,6 +40,12 @@ window.menu = {
|
|
39
40
|
'use strict';
|
40
41
|
var y = window.scrollY;
|
41
42
|
|
43
|
+
if (y > window.innerHeight / 2) {
|
44
|
+
this.footer.classList.add('is-visible');
|
45
|
+
} else {
|
46
|
+
this.footer.classList.remove('is-visible');
|
47
|
+
}
|
48
|
+
|
42
49
|
if (this.isOpened) {
|
43
50
|
return;
|
44
51
|
}
|
data/_sass/commons/footer.sass
CHANGED
@@ -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
|
@@ -126,3 +128,18 @@ body > footer
|
|
126
128
|
color: $secondary-on-gray
|
127
129
|
&:hover
|
128
130
|
color: $primary
|
131
|
+
|
132
|
+
@media screen and (max-height: 700px) and (min-width: 1024px)
|
133
|
+
nav
|
134
|
+
&:first-of-type
|
135
|
+
li
|
136
|
+
font-size: px2rem(32)
|
137
|
+
line-height: px2rem(45)
|
138
|
+
|
139
|
+
@media screen and (max-height: 620px)
|
140
|
+
body
|
141
|
+
padding-bottom: 0
|
142
|
+
> footer
|
143
|
+
height: auto
|
144
|
+
position: relative
|
145
|
+
|
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.
|
4
|
+
version: 1.1.4
|
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-03
|
13
|
+
date: 2023-04-03 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: jekyll
|