jekyll-theme-noesya 1.0.35 → 1.0.39

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: 68a33e72a7a0937c3a14d125d05bb28a92563d257c5679148d0dce551a9f43c3
4
- data.tar.gz: c87dc0422be2940c0561ba05c28b75c7421df4d08973100f7b4c86fd39da27ad
3
+ metadata.gz: 0ce2003ad79e64ff3389ff5ff08a571cd58b348b3be9fbe1a697e9f88480e0ff
4
+ data.tar.gz: e7a2f82dfcca1b3d7486cc79c122dcf0ab2681671994df059c919403eaf4c260
5
5
  SHA512:
6
- metadata.gz: c4ae86ccd0dcb68ab859db6ef08f2db354781476faf2e71a22e94320b1dc6d7cddd36fdf2f1ff3c7cf44bc129c85b0fceac51d3faf907e03202420d253269811
7
- data.tar.gz: 5efc7c126d033dd2c72f259e09c9f250707ebe585992280dacf540ae817842d43b3dbdeff282348de67773177671f81d76e2de24e016d2af5adb5d08e97d453e
6
+ metadata.gz: 61bb7429417601aad7f0e139d148143b9c96ea5e1c3f4850b85f43989b0d747a56908cf74c8640f53d84ed38ae721ce55c6f8ed769719cd4cbe8fd10d9cf596f
7
+ data.tar.gz: aedbddbcfceae6b0cb437d111d4986a879caa4c6461bbc0debfad9587fe28e6704df7eb441366be9882fd7bf80b42e57240b89f79833dc34be5e4d27adf00491
@@ -0,0 +1,12 @@
1
+
2
+ (function () {
3
+ 'use strict';
4
+ var isWebpSupported = false,
5
+ canvas = document.createElement('canvas');
6
+ if (canvas.getContext) {
7
+ isWebpSupported = canvas.toDataURL('image/webp').indexOf('data:image/webp') > -1;
8
+ }
9
+ if (!isWebpSupported) {
10
+ document.body.classList.add('no-webp');
11
+ }
12
+ }());
@@ -14,12 +14,8 @@
14
14
  <!-- CSS -->
15
15
  <link rel="stylesheet" href="/assets/css/main.css">
16
16
 
17
- {% comment %}
18
- Avoid CSS transitions to be fired on load
19
- {% endcomment %}
20
- <script> </script>
21
17
  </head>
22
- <body>
18
+ <body class="is-loading">
23
19
  {% include header.html %}
24
20
  <main aria-label="Content" class="{{ page.class | default: layout.class }}">
25
21
  {{ content }}
@@ -30,5 +26,14 @@
30
26
  {% unless site.options.no_js %}
31
27
  <script src="/assets/js/main.js"></script>
32
28
  {% endunless %}
29
+
30
+ {% comment %}
31
+ Avoid CSS transitions to be fired on load
32
+ {% endcomment %}
33
+ <script>
34
+ window.addEventListener('load', function() {
35
+ document.body.classList.remove('is-loading');
36
+ });
37
+ </script>
33
38
  </body>
34
39
  </html>
@@ -81,7 +81,6 @@
81
81
  transform: translateX(100%)
82
82
  transition: transform .3s ease
83
83
  width: 100%
84
- will-change: transform
85
84
  @include media-breakpoint-up(md)
86
85
  padding-top: $grid-gutter * 10
87
86
  width: calc(50vw + min(1040px, calc(100vw - 390px)) / 2)
data/assets/js/main.js CHANGED
@@ -2,6 +2,8 @@
2
2
  layout:
3
3
  ---
4
4
 
5
+ {% include js/is-webp-supported.js %}
6
+
5
7
  {% include js/menu-burger.js %}
6
8
 
7
9
  {%- if site.options.notes -%}
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.35
4
+ version: 1.0.39
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sébastien Moulène
@@ -96,6 +96,7 @@ files:
96
96
  - _includes/footer.html
97
97
  - _includes/header.html
98
98
  - _includes/js/hover-navigation-links.js
99
+ - _includes/js/is-webp-supported.js
99
100
  - _includes/js/menu-burger.js
100
101
  - _includes/js/notes.js
101
102
  - _includes/js/paragraphs-index.js