jekyll-theme-noesya 1.0.18 → 1.0.22

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: 0ed2b9b9c43317f866f868636a316e3138cf70a9603054955f317f0704153a77
4
- data.tar.gz: 444cf683c0c8aa0c81649d2b85eaf70c0be0e9d37810df7452c92ae9dc8914c8
3
+ metadata.gz: b7e56e7b5e6006e05cb21341571ca47665186f29bb15f638a95ce55d879b7f43
4
+ data.tar.gz: 263aca04c2d38797ad0a12081a37a64a685e10c81ab2e507af097b01c22ae9bf
5
5
  SHA512:
6
- metadata.gz: 07f2703464c7c546c13c51302daa5de1a8101ca43124b36e16188a224ac2d537562df9af11c3a560e624012469e1eab594811a8eea5c55f1d199f65002c11642
7
- data.tar.gz: 12e21c03a83ba224a77d2f8ecc2b024dd42ba0878b062fcc3626992c4f974ed690a57df43146cf4037bc856155e8aa7c30e89a5815f9b872145491dba01e3243
6
+ metadata.gz: 186aed2f2617b7083401745466fdbfaf192ca36c414898a113e9ab0fc0597f02cd3f1292b870720b280200fd2e3fe8eecef323adf954b579c292d381c1297645
7
+ data.tar.gz: a176e88b1054bfc67cae6e9cca5baf97e211ac8540d52c9111258d1e96f1f6f78ace0f53e47df124129d0cc6fbb2078bab185cd1c923bbfe21da70aefec6c255
@@ -1,4 +1,4 @@
1
- <header id="header"{% unless site.options.menu_burger %} class="menu_burger_only_mobile"{% endunless %}>
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>
@@ -1,16 +1,45 @@
1
+ {% assign previous = false %}
2
+ {% assign next = false %}
1
3
  {% if page.nav %}
2
- <nav>
4
+ {% assign previous = page.nav.previous %}
5
+ {% assign next = page.nav.next %}
6
+ {% elsif include.auto %}
7
+ {% assign collection = site[page.collection] %}
8
+
9
+ {% for item in collection %}
10
+ {% if item.title == page.title %}
11
+ {% unless forloop.first %}
12
+ {% assign previous = iterator %}
13
+ {% endunless %}
14
+ {% unless forloop.last %}
15
+ {% assign next = collection[forloop.index] %}
16
+ {% endunless %}
17
+ {% endif %}
18
+ {% assign iterator = item %}
19
+ {% endfor %}
20
+
21
+ {% unless previous %}
22
+ {% assign previous = collection | last %}
23
+ {% endunless %}
24
+
25
+ {% unless next %}
26
+ {% assign next = collection | first %}
27
+ {% endunless %}
28
+ {% endif %}
29
+
30
+ {% if previous and next %}
31
+ <nav>
3
32
  <ul>
4
33
  <li data-link-delay="3">
5
- <a href="{{page.nav.previous.url}}">
6
- <span>{{page.nav.previous.title}}</span><br>
7
- {{- page.nav.previous.text -}}
34
+ <a href="{{previous.url}}">
35
+ <span>{{previous.text | default: 'Précédent'}}</span><br>
36
+ {{- previous.title -}}
8
37
  </a>
9
38
  </li>
10
- <li data-link-delay="3">
11
- <a href="{{page.nav.next.url}}">
12
- <span>{{page.nav.next.title}}</span><br>
13
- {{- page.nav.next.text -}}
39
+ <li data-link-delay="3">
40
+ <a href="{{next.url}}">
41
+ <span>{{next.text | default: 'Suivant'}}</span><br>
42
+ {{- next.title -}}
14
43
  </a>
15
44
  </li>
16
45
  </ul>
@@ -18,7 +18,7 @@
18
18
  {% include header.html %}
19
19
  <main aria-label="Content" class="{{ page.class | default: layout.class }}">
20
20
  {{ content }}
21
- {% include navigation-between-pages.html %}
21
+ {% include navigation-between-pages.html auto=true %}
22
22
  </main>
23
23
  {% include footer.html %}
24
24
 
@@ -68,7 +68,7 @@
68
68
  ul:hover
69
69
  a
70
70
  color: $secondary-reverse
71
- .menu_burger_only_mobile &
71
+ .menu-burger-only-mobile &
72
72
  color: $white
73
73
  &:hover
74
74
  color: $white
@@ -10,8 +10,10 @@ body > header
10
10
  z-index: 2
11
11
  @include media-breakpoint-up(md)
12
12
  padding-top: $grid-gutter * 2
13
- &.menu_burger_only_mobile
13
+ &.menu-burger-only-mobile
14
14
  margin-top: -3px
15
+ nav
16
+ margin-top: -3px
15
17
  a
16
18
  text-decoration: none
17
19
  // Logo
@@ -30,8 +32,12 @@ body > header
30
32
  flex-shrink: 0
31
33
  font-size: px2rem(25)
32
34
  margin-left: $grid-gutter
33
- margin-top: -2px
35
+ margin-top: -4px
34
36
  vertical-align: middle
37
+ @media (max-width: 350px)
38
+ font-size: px2rem(20)
39
+ margin-left: 15px
40
+
35
41
  @include media-breakpoint-up(lg)
36
42
  width: calc(8.3333% + 9px)
37
43
  img
@@ -1,4 +1,4 @@
1
- $icons: ("link-blank": "\e90a", "link": "\e90b", "download": "\e90c", "document": "\e90d", "ecologique-thin": "\e900", "economique-thin": "\e902", "ethique-thin": "\e904", "juridique-thin": "\e906", "strategique-thin": "\e908", "ecologique": "\e901", "economique": "\e903", "ethique": "\e905", "juridique": "\e907", "strategique": "\e909")
1
+ $icons: ("link-blank": "\e90a", "link": "\e90b", "download": "\e90c", "document": "\e90d", "ecologique-thin": "\e900", "economique-thin": "\e902", "ethique-thin": "\e904", "juridique-thin": "\e906", "strategique-thin": "\e908", "securite-thin": "\e90e", "ecologique": "\e901", "economique": "\e903", "ethique": "\e905", "juridique": "\e907", "strategique": "\e909", "securite": "\e90f")
2
2
 
3
3
  @mixin icon
4
4
  -moz-osx-font-smoothing: grayscale
@@ -32,7 +32,7 @@
32
32
  right: 35px
33
33
  top: 35px
34
34
  @include media-breakpoint-up(lg)
35
- .menu_burger_only_mobile &
35
+ .menu-burger-only-mobile &
36
36
  display: none
37
37
  i, &::after, &::before
38
38
  background: $primary
@@ -87,7 +87,7 @@
87
87
  width: calc(50vw + min(1040px, calc(100vw - 390px)) / 2)
88
88
  @include media-breakpoint-up(lg)
89
89
  width: calc(50vw + min(1010px, calc((100vw - 100px) * (10/12) - 110px)) / 2)
90
- .menu_burger_only_mobile &
90
+ .menu-burger-only-mobile &
91
91
  background: transparent
92
92
  margin-left: auto
93
93
  padding-top: 0
@@ -102,6 +102,7 @@
102
102
  a
103
103
  color: $primary
104
104
  li
105
+ font-family: $font-family-serif
105
106
  font-size: px2rem(25)
106
107
  margin-bottom: 0
107
108
  &:not(:first-child)
@@ -109,9 +110,10 @@
109
110
  a
110
111
  &.active,
111
112
  &:hover
112
- text-decoration: underline
113
+ text-decoration: underline 1px
114
+ text-underline-offset: 5px
113
115
  @include media-breakpoint-up(lg)
114
- .menu_burger_only_mobile &
116
+ .menu-burger-only-mobile &
115
117
  li:not(:first-child)
116
118
  margin-left: $grid-gutter * 2
117
119
 
data/_sass/main.sass CHANGED
@@ -17,8 +17,11 @@
17
17
 
18
18
  @import "components/header"
19
19
  @import "components/menu"
20
+ @import "components/nav-between.sass"
20
21
 
21
22
  @import "layouts/legal"
22
23
  @import "layouts/page"
23
24
 
25
+ @import "pages/index"
26
+
24
27
  @import "commons/darkmode"
@@ -0,0 +1,7 @@
1
+ main.index
2
+ min-height: 100vh
3
+ header
4
+ h1
5
+ @include media-breakpoint-up(lg)
6
+ font-size: px2rem(55)
7
+ line-height: px2rem(75)
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.18
4
+ version: 1.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sébastien Moulène
@@ -125,6 +125,7 @@ files:
125
125
  - _sass/layouts/legal.sass
126
126
  - _sass/layouts/page.sass
127
127
  - _sass/main.sass
128
+ - _sass/pages/index.sass
128
129
  - _sass/tools/functions/px2rem.sass
129
130
  - _sass/tools/mixins/container.sass
130
131
  - _sass/tools/mixins/graphics.sass
@@ -156,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
156
157
  - !ruby/object:Gem::Version
157
158
  version: '0'
158
159
  requirements: []
159
- rubygems_version: 3.1.6
160
+ rubygems_version: 3.1.4
160
161
  signing_key:
161
162
  specification_version: 4
162
163
  summary: Noesya theme for Jekyll.