fix: 修复主题按钮闪烁问题

- 将 transition: all 改为 transition: transform, box-shadow, background
- 避免 transition 影响位置属性(top/right)导致闪烁
- 更新 CSS 版本号
This commit is contained in:
小白
2026-03-12 11:40:31 +08:00
parent e4b5e96fd1
commit 6ee511a574
5 changed files with 6 additions and 6 deletions

View File

@@ -268,7 +268,7 @@ h1 {
color: white;
font-size: 24px;
cursor: pointer;
transition: all 0.3s ease;
transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
z-index: 100;
display: flex;
@@ -299,7 +299,7 @@ h1 {
color: white;
font-size: 20px;
cursor: pointer;
transition: all 0.3s ease;
transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
display: flex;
align-items: center;

View File

@@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>欢迎 - 云下飞</title>
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}?v=20260312">
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}?v=20260312b">
</head>
<body>
<div class="container">

View File

@@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>登录 - 云下飞</title>
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}?v=20260312">
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}?v=20260312b">
</head>
<body>
<div class="container auth-container">

View File

@@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>注册 - 云下飞</title>
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}?v=20260312">
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}?v=20260312b">
</head>
<body>
<div class="container auth-container">

View File

@@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>欢迎回来 - {{ username }}</title>
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}?v=20260312">
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}?v=20260312b">
</head>
<body>
<!-- 快捷导航栏 - 登录后显示 -->