jekyll-theme-noesya 1.0.11 → 1.0.12

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: f831149364194c2e5d83bbf03d312eca41a1d8468c1a06e668c5b7f4b382bce7
4
- data.tar.gz: 534753743b687e307adc85401d504ccd99f9654ec9d9a4d985c99de12691d784
3
+ metadata.gz: 52c17f70bca8fca596a02581c431d38f174f02b3e6a8c4c06b1a26c4125721ec
4
+ data.tar.gz: 6588190d5d5118d4b70076898b24fc6ed716450fcdaeb1c18568cb1182f8573b
5
5
  SHA512:
6
- metadata.gz: '0791801ee0a812d6f3b1193bb205685ce1800c6e29381c13228e28690c6f1f7f68b5fb882fd7e13b576cc93d2c206517a9c9ae643ae16d605bb219004b76c325'
7
- data.tar.gz: 87033e7b9cca30fdba920cb6afd5dd5e3beaf30af3f0f1b936a858a1e3be8f0fb7ef1c661c7185df32d39bcfbe92f266593c1e5d90fadb55380a7957a77d7818
6
+ metadata.gz: ec9f9d16bfaadf60859340b1ae46cab89a8040a58932681849a94d92cc559f5e05cdae589558e8c715c74acf5d913e24951e3cff54f6348ef3a7feaabb4a325d
7
+ data.tar.gz: 9a16f771214e1008406246551fe796dc447e621c4ef7a8a1532d4d88bd22b4285c444150b057b6c66067f3245e5344a715a352b51ad62fb486030381ee1e8ca1
data/README.md CHANGED
@@ -1,2 +1,12 @@
1
1
  ## Gem
2
2
  https://rubygems.org/gems/jekyll-theme-noesya
3
+
4
+ ### Options
5
+ ```
6
+ options:
7
+ menu_burger: true # For desktop
8
+ notes: false # Needed to use notes in sections-with-notes includes
9
+ paragraphs_index: false # Needed to add index to paragraphs
10
+ hover_navigation_links: false # Needed to use nav-between-pages
11
+ no_js: false
12
+ ```
@@ -1,4 +1,4 @@
1
- <header id="header">
1
+ <header id="header"{% unless site.options.menu_burger %} class="menu_burger_only_mobile"{% endunless %}>
2
2
  <a href="/">
3
3
  <img src="https://assets.noesya.coop/images/logos/logo-noesya.svg" alt="{{ site.title }}" width="100" height="26">
4
4
  </a>
@@ -10,6 +10,7 @@ window.menu = {
10
10
 
11
11
  setTimeout(function () {
12
12
  document.body.classList.remove('is-loading');
13
+ window.addEventListener('resize', this.resize.bind(this));
13
14
  }.bind(this), 100);
14
15
  },
15
16
  bind: function () {
@@ -37,6 +38,11 @@ window.menu = {
37
38
  }
38
39
 
39
40
  this.y = y;
41
+ },
42
+ resize: function () {
43
+ 'use strict';
44
+ document.documentElement.classList.remove('is-menu-opened');
45
+ this.dom.classList.remove('is-hidden');
40
46
  }
41
47
  };
42
48
 
@@ -1,5 +1,7 @@
1
1
  body > header
2
2
  @include container
3
+ align-items: center
4
+ display: flex
3
5
  left: 0
4
6
  padding-top: $grid-sm-margin * 2
5
7
  position: fixed
@@ -16,12 +18,14 @@ body > header
16
18
  margin-left: -2px
17
19
  > a
18
20
  display: inline-block
21
+ flex-shrink: 0
19
22
  position: relative
20
23
  transition: filter .3s ease
21
24
  vertical-align: middle
22
25
  z-index: 1
23
26
  & + em
24
27
  display: inline-block
28
+ flex-shrink: 0
25
29
  font-size: px2rem(25)
26
30
  margin-left: $grid-gutter
27
31
  margin-top: -2px
@@ -31,6 +31,9 @@
31
31
  @include media-breakpoint-up(md)
32
32
  right: 35px
33
33
  top: 35px
34
+ @include media-breakpoint-up(lg)
35
+ .menu_burger_only_mobile &
36
+ display: none
34
37
  i, &::after, &::before
35
38
  background: $primary
36
39
  content: ''
@@ -84,6 +87,33 @@
84
87
  width: calc(50vw + min(1040px, calc(100vw - 390px)) / 2)
85
88
  @include media-breakpoint-up(lg)
86
89
  width: calc(50vw + min(1010px, calc((100vw - 100px) * (10/12) - 110px)) / 2)
90
+ .menu_burger_only_mobile &
91
+ background: transparent
92
+ margin-left: auto
93
+ padding-top: 0
94
+ position: static
95
+ transform: none
96
+ transition: none
97
+ width: auto
98
+ ul
99
+ display: flex
100
+ margin: 0
101
+ &:hover
102
+ a
103
+ color: $primary
104
+ li
105
+ font-size: px2rem(25)
106
+ margin-bottom: 0
107
+ &:not(:first-child)
108
+ margin-left: $grid-gutter
109
+ a
110
+ &:hover
111
+ text-decoration: underline
112
+ @include media-breakpoint-up(lg)
113
+ .menu_burger_only_mobile &
114
+ li:not(:first-child)
115
+ margin-left: $grid-gutter * 2
116
+
87
117
  ul
88
118
  height: 100%
89
119
  margin: 0 $grid-sm-margin * 2
data/assets/js/main.js CHANGED
@@ -2,9 +2,7 @@
2
2
  layout:
3
3
  ---
4
4
 
5
- {%- if site.options.menu_burger -%}
6
- {% include js/menu-burger.js %}
7
- {%- endif -%}
5
+ {% include js/menu-burger.js %}
8
6
 
9
7
  {%- if site.options.notes -%}
10
8
  {% include js/notes.js %}
@@ -17,5 +15,3 @@ layout:
17
15
  {%- if site.options.hover_navigation_links -%}
18
16
  {% include js/hover-navigation-links.js %}
19
17
  {%- endif -%}
20
-
21
-
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.0.11
4
+ version: 1.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sébastien Moulène
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
156
156
  - !ruby/object:Gem::Version
157
157
  version: '0'
158
158
  requirements: []
159
- rubygems_version: 3.1.4
159
+ rubygems_version: 3.1.6
160
160
  signing_key:
161
161
  specification_version: 4
162
162
  summary: Noesya theme for Jekyll.