jekyll-theme-simplix 0.3.0 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/_sass/main.scss +3 -3
  3. data/assets/script.js +10 -6
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 27db881f44f7469cb213680c98a59e09ac7f1d178e272d9eb8fd3b9bed096274
4
- data.tar.gz: 249d985eab9df442e81e16805f2c423025d82b6134cd3365c6ee6d7bb93d8504
3
+ metadata.gz: b3518f3f00c08a52d0611e27bab713626492b989007042b7d91285dfbf7e667f
4
+ data.tar.gz: 4d0717399aee74d71e0be6ac5039d523a21dfa25fd7ade6536145f5f22c8a876
5
5
  SHA512:
6
- metadata.gz: 6214c3c9b61d4be170387e18409d7327db629a5d3feedb7be7ebd663a54b0feae168884142c0820e026a07c4608575aecdd2201f66680d81b3bc132559d07c8e
7
- data.tar.gz: db78aff388b7fa8345cc316dab0cc265d6a1355d3101f461df8852e335dc0bc9df7542e4f2f80a5cb22bc7c0c01e46591cea7437513c2e5506327a8b71b5e0f4
6
+ metadata.gz: 9e7ca8c45e251d198c488c9c902d428e0fff7c989c74d090ed61b8caf78d894fd79eab31b5cec07082a2e13a0b5137ad12815a23a2598236b7c8f3cf90b2fe29
7
+ data.tar.gz: d735bc78558c7514344342404584fc89316258911d9acd70a63761d71b52be77ab215849afb6a86ab83c7279d834cbef068a0235d7e0650742bd25fcd03d14ad
data/_sass/main.scss CHANGED
@@ -110,13 +110,13 @@ $theme-btn-label-gap: 4px;
110
110
  position: fixed;
111
111
  align-items: stretch;
112
112
  height: $theme-btn-label-height;
113
- top: calc(24px - $theme-btn-label-height / 2);
114
- right: calc(24px - $theme-btn-label-height / 2);
113
+ top: calc(24px - ($theme-btn-label-height / 2));
114
+ right: calc(24px - ($theme-btn-label-height / 2));
115
115
  padding: 0;
116
116
  column-gap: $theme-btn-label-gap;
117
117
  background: #fcfcfc;
118
118
  font-family: $font-body;
119
- border-radius: calc($theme-btn-label-height / 2 + 2px);
119
+ border-radius: calc(($theme-btn-label-height / 2) + 2px);
120
120
  z-index: 2;
121
121
  cursor: pointer;
122
122
  transition: border .4s ease;
data/assets/script.js CHANGED
@@ -23,14 +23,18 @@
23
23
  document.body.id = "main__theme-" + (th_val == "dark" || th_val == "light" ? th_val : th_match ? "dark" : "light");
24
24
 
25
25
  // Initialize navigation menu
26
- const nav = document.querySelector("nav"), nav_btn = nav.querySelector("button"), nav_links = nav.querySelector(".nav__links"), nav_ev = function() {if(nav.classList.contains("nav__multi")) nav_btn.innerHTML = nav.classList.toggle("nav__open") ? "\ue4f6 Close" : "\ue2f0 Menu"};
27
- nav.style.display = "flex";
28
- nav_btn.onclick = function() {
29
- nav_ev();
30
- navigator.userAgentData.mobile && history.pushState(null, null, window.location.pathname);
26
+ const nav = document.querySelector("nav"), nav_btn = nav.querySelector("button"), nav_links = nav.querySelector(".nav__links"), nav_ev = function(i) {
27
+ if(nav.classList.contains("nav__multi")) {
28
+ i ? nav.classList.add("nav__open") : nav.classList.remove("nav__open");
29
+ nav_btn.innerHTML = i ? '<i class="ph ph-x"></i> Close' : '<i class="ph ph-list"></i> Menu';
30
+ return i;
31
+ } else return false;
31
32
  };
33
+ nav.style.display = "flex";
34
+ nav_btn.onclick = function() {nav_ev(nav.classList.toggle("nav__open")) ? history.pushState(null, null, window.location.pathname) : history.back()};
35
+ window.onpopstate = function() {nav_ev(false)};
32
36
  nav_links.onclick = function(e) {e.target.tagName != "a" && nav_ev()};
33
- navigator.userAgentData && navigator.userAgentData.mobile ? window.onpopstate = nav_ev : nav_links.addEventListener("wheel", function(e) {
37
+ nav_links.addEventListener("wheel", function(e) {
34
38
  if(window.innerWidth >= 768) {
35
39
  e.preventDefault();
36
40
  nav_links.scrollLeft += e.deltaY;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-simplix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - lithier94675
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-04-25 00:00:00.000000000 Z
11
+ date: 2026-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll