lato 3.7.2 → 3.8.0

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: 880f32ad399eff7deb1ecca1cd3a9bb5c7c7f1a636114dce329ecb213d990ef8
4
- data.tar.gz: 408616edb366f956d9ffc4c5fa1c828bb813e6e8c2895b447939884356e88379
3
+ metadata.gz: 48e75667276e436c09b94d35948a806ab647a3bd712715640028ebe5e902885d
4
+ data.tar.gz: 6cf22a820de4c125565a45d8b5d0c4a44cb4b063e97e544ac7c304312d8f8cae
5
5
  SHA512:
6
- metadata.gz: 8f88b0a260a136a995c6c74f8a58fd9c42994b233b0ee1907548c5885e508b705378ebe5ba9f97a2ac2b4ee4cc76eee798076cfa18740ca0371e3272112ad6e8
7
- data.tar.gz: 9e9e618b51046c5cae10cce19982dd9566674d18bc6068c63d66b4a8050149dcd51533169f3deccdfef1bceb1808788dfb6099746a66f11fe8ec8e91c51a75ee
6
+ metadata.gz: 3df8293c4c8d0893b9ecdebb51f879f2c4dc4637e30b28b3d01f4e98f823835a4176476240479d9c825e74d558794086573f06e70bc5ece640a31f6135576eda
7
+ data.tar.gz: df5974cd8bb80e71814bb50b855dc7bcede9368d69a4f1c671d8a1773eb062d963955d45ad4a4b02cde4cac3affef9573bf66f9afe9e5db89bc2947b4968d1a4
@@ -30,31 +30,12 @@ document.addEventListener("turbo:frame-missing", event => {
30
30
  })
31
31
 
32
32
  /**
33
- * Manage page transitions
33
+ * Manage page caching clean
34
34
  */
35
35
 
36
- const PAGE_TRANSITION_TIME = 50
37
-
38
- document.addEventListener('DOMContentLoaded', () => {
39
- // add is-loaded class
40
- document.body.classList.add('is-loaded')
41
- })
42
-
43
- document.addEventListener('turbo:load', () => {
44
- setTimeout(() => {
45
- // add is-loaded class
46
- document.body.classList.add('is-loaded')
47
- }, PAGE_TRANSITION_TIME)
48
- })
49
-
50
36
  document.addEventListener('turbo:before-cache', (e) => {
51
- console.log('turbo:before-cache')
52
-
53
37
  e.preventDefault()
54
38
 
55
- // remove is-loaded class
56
- document.body.classList.remove('is-loaded')
57
-
58
39
  // hide aside menu (for mobile)
59
40
  document.body.classList.remove('aside-open')
60
41
 
@@ -70,7 +51,9 @@ document.addEventListener('turbo:before-cache', (e) => {
70
51
  document.body.style.paddingRight = ''
71
52
  document.body.style.overflow = ''
72
53
 
73
- setTimeout(() => {
74
- e.detail.resume()
75
- }, PAGE_TRANSITION_TIME)
54
+ // close nav menu (for mobile)
55
+ document.querySelector('.navbar-toggler').classList.add('collapsed')
56
+ document.querySelector('.navbar-collapse').classList.remove('show')
57
+
58
+ e.detail.resume()
76
59
  })
@@ -41,20 +41,9 @@ $gray-900: #1f262c !default;
41
41
 
42
42
  /** Custom style */
43
43
 
44
- body {
45
- &.is-loaded {
46
- main {
47
- opacity: 1;
48
- }
49
- }
50
- }
51
-
52
44
  main {
53
45
  width: 100%;
54
46
 
55
- opacity: 0;
56
- transition: opacity 0.05s ease-in-out;
57
-
58
47
  &.layout_sidebar {
59
48
  width: calc(100% - 280px);
60
49
 
data/lib/lato/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lato
2
- VERSION = "3.7.2"
2
+ VERSION = "3.8.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lato
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.2
4
+ version: 3.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregorio Galante
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-09 00:00:00.000000000 Z
11
+ date: 2024-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails