jekyll-theme-noesya 1.1.0 → 1.1.2
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 +13 -0
- data/_includes/nav/primary.html +2 -2
- data/_layouts/page.html +8 -1
- data/_sass/components/header.sass +10 -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: 87f48d0af573e01ce5b203ef8a195168663ea5b61e9c749ce45bd611911675be
|
4
|
+
data.tar.gz: a5eddc2b9a3eddc46dc8bd1fa5416a59db9e83eb85374a1fca7fd5477d7fc10f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8c7cd594fadb339cfcb66f5df49c1bc02a370d86daf13f361ac30ab007b782fb6b02733bd53c978aa2d43e18d0f97906481d6cda356a37976862ce7b4ba9c72
|
7
|
+
data.tar.gz: 38bb2bcbb708fd3ece491b04a1f55b9e14ee9d5effc841a0f63f0effbd12d7b09c053e206e476825b4b6b27bac41b0711e26529e77ef82395932b5908730b418
|
data/_includes/js/menu-burger.js
CHANGED
@@ -5,6 +5,8 @@ window.menu = {
|
|
5
5
|
'use strict';
|
6
6
|
this.dom = document.querySelector('#header');
|
7
7
|
this.button = this.dom.querySelector('button');
|
8
|
+
this.menu = this.dom.querySelector('.menu');
|
9
|
+
this.links = this.menu.querySelectorAll('a');
|
8
10
|
|
9
11
|
this.bind();
|
10
12
|
|
@@ -18,10 +20,21 @@ window.menu = {
|
|
18
20
|
this.button.addEventListener('click', function () {
|
19
21
|
document.documentElement.classList.toggle('is-menu-opened');
|
20
22
|
this.isOpened = !this.isOpened;
|
23
|
+
this.toggleMenu();
|
21
24
|
}.bind(this));
|
22
25
|
|
23
26
|
window.addEventListener('scroll', this.scroll.bind(this));
|
24
27
|
},
|
28
|
+
toggleMenu: function () {
|
29
|
+
'use strict';
|
30
|
+
var i = 0;
|
31
|
+
this.menu.setAttribute('aria-hidden', !this.isOpened);
|
32
|
+
|
33
|
+
for(i = 0; i < this.links.length; i += 1) {
|
34
|
+
this.links[i].setAttribute('tabindex', this.isOpened ? 0 : -1);
|
35
|
+
}
|
36
|
+
|
37
|
+
},
|
25
38
|
scroll: function () {
|
26
39
|
'use strict';
|
27
40
|
var y = window.scrollY;
|
data/_includes/nav/primary.html
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
<nav class="menu" aria-label="Navigation principale">
|
1
|
+
<nav class="menu" aria-label="Navigation principale" aria-hidden="true">
|
2
2
|
<ul>
|
3
3
|
{% for item in site.data.menus.primary %}
|
4
4
|
<li>
|
5
|
-
<a href="{{ item.url }}"{% if page.url contains item.url %} class="active"{% endif %}>{{ item.title }}</a>
|
5
|
+
<a href="{{ item.url }}" tabindex="-1" {% if page.url contains item.url %} class="active"{% endif %}>{{ item.title }}</a>
|
6
6
|
</li>
|
7
7
|
{% endfor %}
|
8
8
|
</ul>
|
data/_layouts/page.html
CHANGED
@@ -4,7 +4,14 @@ class: page
|
|
4
4
|
---
|
5
5
|
|
6
6
|
<header>
|
7
|
-
|
7
|
+
{% if page.subtitle %}
|
8
|
+
<div>
|
9
|
+
<h1>{{ page.title }}</h1>
|
10
|
+
{{ page.subtitle }}
|
11
|
+
</div>
|
12
|
+
{% else %}
|
13
|
+
<h1>{{ page.title }}</h1>
|
14
|
+
{% endif %}
|
8
15
|
</header>
|
9
16
|
|
10
17
|
{% if page.sections %}
|
@@ -6,3 +6,13 @@ main
|
|
6
6
|
padding-top: $grid-gutter * 5
|
7
7
|
@include media-breakpoint-up(md)
|
8
8
|
padding-top: $grid-gutter * 10
|
9
|
+
& > div > h1
|
10
|
+
margin-bottom: px2rem(30)
|
11
|
+
+ p
|
12
|
+
font-size: px2rem(22)
|
13
|
+
line-height: px2rem(37)
|
14
|
+
margin-bottom: px2rem(60)
|
15
|
+
@include media-breakpoint-up(lg)
|
16
|
+
font-size: px2rem(25)
|
17
|
+
line-height: px2rem(38)
|
18
|
+
margin-bottom: px2rem(100)
|
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.2
|
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:
|
13
|
+
date: 2023-03-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: jekyll
|