jekyll-theme-noesya 1.0.11 → 1.0.15

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: e83bbe3393dccb97c45a47ea82a3fafe15b90933a70a4899671496488da23c56
4
+ data.tar.gz: d432e7a63db88d6b306691812f92d71d4d8f9099ef9ab93609ff5e7cfc594398
5
5
  SHA512:
6
- metadata.gz: '0791801ee0a812d6f3b1193bb205685ce1800c6e29381c13228e28690c6f1f7f68b5fb882fd7e13b576cc93d2c206517a9c9ae643ae16d605bb219004b76c325'
7
- data.tar.gz: 87033e7b9cca30fdba920cb6afd5dd5e3beaf30af3f0f1b936a858a1e3be8f0fb7ef1c661c7185df32d39bcfbe92f266593c1e5d90fadb55380a7957a77d7818
6
+ metadata.gz: 454a94be8b2856188d7659062b2df0a76d6cbfe372b6a060b932057a0f7593203dcdd6e6b932bc97daa565725fb7d7e07de96bec069960b5e2f084f169ae0400
7
+ data.tar.gz: 1626d661209dad6d79c109053af870df124c67c4fc1971ab24b2a747564eb792d8505150dcce26e5051ecc894a7c07dc586d6bf8a25a9fb443270b715fd56ae2
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
 
@@ -2,7 +2,7 @@
2
2
  <ul>
3
3
  {% for item in site.data.menus.primary %}
4
4
  <li>
5
- <a href="{{ item.url }}">{{ item.title }}</a>
5
+ <a href="{{ item.url }}"{% if page.url contains item.url %} class="active"{% endif %}>{{ item.title }}</a>
6
6
  </li>
7
7
  {% endfor %}
8
8
  </ul>
@@ -68,25 +68,11 @@
68
68
  ul:hover
69
69
  a
70
70
  color: $secondary-reverse
71
+ .menu_burger_only_mobile &
72
+ color: $white
71
73
  &:hover
72
74
  color: $white
73
75
 
74
- main > nav
75
- background-color: $bg-secondary-color-reverse
76
- span
77
- color: $secondary-reverse
78
- li+li::after
79
- background: $border-color-reverse
80
- @include media-breakpoint-down(md)
81
- ul li:first-child
82
- border-bottom-color: $border-color-reverse
83
- @include media-breakpoint-up(md)
84
- .is-menu-opened &
85
- background-color: $bg-secondary-color
86
- span
87
- .is-menu-opened &
88
- color: $secondary
89
-
90
76
  body > footer
91
77
  background-color: $white
92
78
  color: $primary
@@ -105,7 +91,7 @@
105
91
  main.team
106
92
  p
107
93
  color: $secondary-reverse
108
-
94
+
109
95
  main.metier
110
96
  article
111
97
  p
@@ -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
@@ -9,7 +9,7 @@ a
9
9
  &[target="_blank"]
10
10
  &::after
11
11
  @include icon
12
- content: "\e900"
12
+ content: map-get($icons, 'link-blank')
13
13
  font-size: .75em
14
14
  margin-left: .3rem
15
15
  @include media-breakpoint-up(md)
@@ -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,34 @@
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
+ &.active,
111
+ &:hover
112
+ text-decoration: underline
113
+ @include media-breakpoint-up(lg)
114
+ .menu_burger_only_mobile &
115
+ li:not(:first-child)
116
+ margin-left: $grid-gutter * 2
117
+
87
118
  ul
88
119
  height: 100%
89
120
  margin: 0 $grid-sm-margin * 2
@@ -61,3 +61,19 @@ main > nav
61
61
  &::before
62
62
  left: -$grid-gutter
63
63
  right: auto
64
+
65
+ @media (prefers-color-scheme: dark)
66
+ background-color: $bg-secondary-color-reverse
67
+ span
68
+ color: $secondary-reverse
69
+ li+li::after
70
+ background: $border-color-reverse
71
+ @include media-breakpoint-down(md)
72
+ ul li:first-child
73
+ border-bottom-color: $border-color-reverse
74
+ @include media-breakpoint-up(md)
75
+ .is-menu-opened &
76
+ background-color: $bg-secondary-color
77
+ span
78
+ .is-menu-opened &
79
+ color: $secondary
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.15
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.