fix: 修复主题按钮闪烁问题
- 将 transition: all 改为 transition: transform, box-shadow, background - 避免 transition 影响位置属性(top/right)导致闪烁 - 更新 CSS 版本号
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user