diff --git a/static/css/style.css b/static/css/style.css index 2128b62..81676bf 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -255,8 +255,8 @@ h1 { } } -/* 主题切换按钮 - 独立版本(欢迎页面) */ -.container > .theme-toggle { +/* 主题切换按钮 - 独立版本(body直接子元素) */ +.theme-toggle { position: fixed; top: 20px; right: 20px; @@ -280,12 +280,12 @@ h1 { user-select: none; } -.container > .theme-toggle:hover { +.theme-toggle:hover { transform: rotate(20deg) scale(1.1); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); } -.container > .theme-toggle:active { +.theme-toggle:active { transform: scale(0.95); } diff --git a/templates/index.html b/templates/index.html index 82ff050..71dc293 100644 --- a/templates/index.html +++ b/templates/index.html @@ -4,11 +4,11 @@ 欢迎 - 云下飞 - + +
-
👋
diff --git a/templates/login.html b/templates/login.html index f8befa4..a6ad907 100644 --- a/templates/login.html +++ b/templates/login.html @@ -4,11 +4,11 @@ 登录 - 云下飞 - + +
-
🔐
diff --git a/templates/register.html b/templates/register.html index b6cee62..b717062 100644 --- a/templates/register.html +++ b/templates/register.html @@ -4,11 +4,11 @@ 注册 - 云下飞 - + +
-
📝
diff --git a/templates/welcome.html b/templates/welcome.html index bca5e2d..d8e24ac 100644 --- a/templates/welcome.html +++ b/templates/welcome.html @@ -4,7 +4,7 @@ 欢迎回来 - {{ username }} - +