jekyll-theme-doodle 5.1.2 → 5.1.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c2e8925677961dab657cef28643b06ae41cfa9c8d2e5263e5d4b01d92739888
4
- data.tar.gz: afd2a535a74f0de155f4336bd2bb366f3ab896dcdd34bf313d9b3925007b5ff5
3
+ metadata.gz: 23ab2d2f12328ffbffef8be68643e39a26644df315116d8559a52b7cda6d8a0f
4
+ data.tar.gz: 7af0b64ef6b2b95336e392b6504ad74f16480de4bf27c3749410f32e6dc7ca3a
5
5
  SHA512:
6
- metadata.gz: 9ad698c67dae1217abfedb48d041289db52b6a967fa3e84e412be3c0b019ffb099b40bb622ea32d0b05a2508b83b1f65157ad0d84a39eedd730aaaf311a2d4c9
7
- data.tar.gz: 4d75a9366dc64571d313742f08d41890f7e8d519666c930058fd006bf8793fdc09cdf15a59dbedd6823fc291849f406b38e596dc680244bfa643dffbe5af36d0
6
+ metadata.gz: bcd514ecfc9cb612dc3ff2f65e912491f832464040f5dbf9e51c5dfeedeb507f5fabe375c546139ecdd9d2479d0335ce379af58466c909ee95008553983e9d52
7
+ data.tar.gz: a7ed5ccd68d3b9ac4adb9759c2ae09a028604ef3ddd572122d1c5e5d1b8ba1615e3ac3c7e85f883ca21e777a7d88466b8113b9a6c382162d89ae01a636af54f7
data/_includes/head.html CHANGED
@@ -33,17 +33,12 @@
33
33
  };
34
34
  const root = document.querySelector("html");
35
35
  const theme = window.localStorage.getItem("theme");
36
-
37
36
  if (theme === null) {
38
- theme = "dark-pink";
37
+ const theme = "dark-pink";
39
38
  window.localStorage.setItem("theme", theme);
40
- root.className = theme;
41
- root.style.setProperty("--current-color", colors[theme]);
42
- } else {
43
- root.className = theme;
44
- root.style.setProperty("--current-color", colors[theme]);
45
39
  }
46
-
40
+ root.className = theme;
41
+ // root.style.setProperty("--current-color", colors[theme]);
47
42
  </script>
48
43
  <script src="/assets/theme-assets/js/theme.js" defer></script>
49
44
  {%- feed_meta -%} {%- if jekyll.environment == 'production' and
@@ -28,7 +28,7 @@
28
28
  height: 24px;
29
29
  width: 24px;
30
30
  border-radius: 50%;
31
- background-color: var(--current-color); /* Initial theme color */
31
+ background-color: var(--md-sys-color-primary); /* Initial theme color */
32
32
  margin-right: 10px;
33
33
  cursor: pointer;
34
34
  transition: transform 0.3s;
@@ -1,6 +1,5 @@
1
1
  (function () {
2
2
  const themeSelector = document.getElementById("themeSelector");
3
- const currentTheme = document.getElementById("currentTheme");
4
3
  const themeOptions = document.getElementById("themeOptions");
5
4
  const root = document.querySelector("html");
6
5
 
@@ -11,7 +10,6 @@
11
10
  window.localStorage.setItem("theme", newTheme);
12
11
  root.className = newTheme;
13
12
  const selectedColor = event.target.getAttribute("data-color");
14
- currentTheme.style.backgroundColor = selectedColor;
15
13
  };
16
14
  }
17
15
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-doodle
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.2
4
+ version: 5.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gul Noor