From d1ccf962eac04671d94f62f8e8dba56f4577b8a1 Mon Sep 17 00:00:00 2001
From: yuetsh <517252939@qq.com>
Date: Mon, 18 May 2026 03:37:24 -0600
Subject: [PATCH] style: run prettier after animal-crossing theme
---
app.js | 1 -
index.html | 9 +++++----
style.css | 25 ++++++++++++++++++++-----
theme.js | 9 ++++++++-
4 files changed, 33 insertions(+), 11 deletions(-)
diff --git a/app.js b/app.js
index 5b3be25..ce4a204 100644
--- a/app.js
+++ b/app.js
@@ -188,7 +188,6 @@ export function initApp() {
titleEl.dataset.text = titleEl.textContent?.trim() || ""
}
-
const initialTheme = getInitialTheme()
setTheme(initialTheme)
diff --git a/index.html b/index.html
index bbedb99..0f83e52 100644
--- a/index.html
+++ b/index.html
@@ -42,9 +42,7 @@
- 物联网专业の在线学习平台
+ 物联网专业の在线学习平台
diff --git a/style.css b/style.css
index 18c3479..3f64155 100644
--- a/style.css
+++ b/style.css
@@ -921,7 +921,6 @@ html[data-design-theme="cyberpunk"] .title {
animation: cyberpunk-rgbShift 4.5s ease-in-out infinite;
}
-
html[data-design-theme="cyberpunk"] .title-cursor {
display: none;
}
@@ -1419,7 +1418,12 @@ html[data-design-theme="nord"] {
--page-gradient: #2e3440;
--page-texture: none;
- --title-gradient: linear-gradient(135deg, #88c0d0 0%, #81a1c1 50%, #5e81ac 100%);
+ --title-gradient: linear-gradient(
+ 135deg,
+ #88c0d0 0%,
+ #81a1c1 50%,
+ #5e81ac 100%
+ );
--control-bg: rgba(59, 66, 82, 0.85);
--control-border: rgba(76, 86, 106, 0.6);
@@ -1439,7 +1443,12 @@ html[data-theme="dark"][data-design-theme="nord"] {
--page-gradient: #2e3440;
--page-texture: none;
- --title-gradient: linear-gradient(135deg, #88c0d0 0%, #81a1c1 50%, #5e81ac 100%);
+ --title-gradient: linear-gradient(
+ 135deg,
+ #88c0d0 0%,
+ #81a1c1 50%,
+ #5e81ac 100%
+ );
--control-bg: rgba(59, 66, 82, 0.85);
--control-border: rgba(76, 86, 106, 0.6);
@@ -1463,7 +1472,12 @@ html[data-theme="light"][data-design-theme="nord"] {
--page-gradient: #eceff4;
--page-texture: none;
- --title-gradient: linear-gradient(135deg, #5e81ac 0%, #81a1c1 50%, #88c0d0 100%);
+ --title-gradient: linear-gradient(
+ 135deg,
+ #5e81ac 0%,
+ #81a1c1 50%,
+ #88c0d0 100%
+ );
--control-bg: rgba(229, 233, 240, 0.85);
--control-border: rgba(216, 222, 233, 0.8);
@@ -1770,7 +1784,8 @@ html[data-theme="dark"][data-design-theme="animal-crossing"] .card:focus p {
color: #c8deb8;
}
-html[data-theme="dark"][data-design-theme="animal-crossing"] .design-theme-list {
+html[data-theme="dark"][data-design-theme="animal-crossing"]
+ .design-theme-list {
background: rgba(22, 36, 22, 0.9);
box-shadow:
0 12px 30px rgba(0, 0, 0, 0.55),
diff --git a/theme.js b/theme.js
index c6b4b12..eafd1aa 100644
--- a/theme.js
+++ b/theme.js
@@ -1,4 +1,11 @@
-const DESIGN_THEMES = ["fluent", "material-you", "terminal", "cyberpunk", "nord", "animal-crossing"]
+const DESIGN_THEMES = [
+ "fluent",
+ "material-you",
+ "terminal",
+ "cyberpunk",
+ "nord",
+ "animal-crossing",
+]
const FORCED_DARK_DESIGN_THEMES = new Set(["terminal", "cyberpunk"])
const THEME_BEFORE_FORCED_KEY = "themeBeforeForcedDark"