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 +4 -4
- data/_includes/head.html +3 -8
- data/_sass/minima/_theme-selector.scss +1 -1
- data/assets/theme-assets/js/theme.js +0 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23ab2d2f12328ffbffef8be68643e39a26644df315116d8559a52b7cda6d8a0f
|
4
|
+
data.tar.gz: 7af0b64ef6b2b95336e392b6504ad74f16480de4bf27c3749410f32e6dc7ca3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(--
|
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
|
|