对网页CSS进行重构
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* ===== Dock 侧边栏 ===== */
|
||||
/* ===== Dock 侧边栏 - 苹果液态玻璃 ===== */
|
||||
#dock {
|
||||
position: fixed;
|
||||
right: 20px;
|
||||
@@ -9,30 +9,69 @@
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 12px 8px;
|
||||
background: rgba(3, 7, 18, 0.7);
|
||||
backdrop-filter: blur(16px);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 16px;
|
||||
padding: 14px 10px;
|
||||
/* 苹果液态玻璃 */
|
||||
background: linear-gradient(
|
||||
135deg,
|
||||
rgba(255, 255, 255, 0.18) 0%,
|
||||
rgba(255, 255, 255, 0.08) 100%
|
||||
);
|
||||
backdrop-filter: blur(50px) saturate(200%);
|
||||
-webkit-backdrop-filter: blur(50px) saturate(200%);
|
||||
border: 1px solid rgba(255, 255, 255, 0.25);
|
||||
border-radius: 22px;
|
||||
box-shadow:
|
||||
0 12px 40px rgba(0, 0, 0, 0.15),
|
||||
0 4px 12px rgba(0, 0, 0, 0.08),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.6),
|
||||
inset 0 -1px 0 rgba(255, 255, 255, 0.15);
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
#dock:hover {
|
||||
background: linear-gradient(
|
||||
135deg,
|
||||
rgba(255, 255, 255, 0.22) 0%,
|
||||
rgba(255, 255, 255, 0.12) 100%
|
||||
);
|
||||
border-color: rgba(255, 255, 255, 0.35);
|
||||
box-shadow:
|
||||
0 16px 48px rgba(0, 0, 0, 0.18),
|
||||
0 6px 16px rgba(0, 0, 0, 0.12),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.7),
|
||||
inset 0 -1px 0 rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
.dock-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: 10px;
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
border-radius: 12px;
|
||||
color: var(--text-secondary);
|
||||
text-decoration: none;
|
||||
transition: all 0.25s ease;
|
||||
transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.dock-item:hover, .dock-item.active {
|
||||
color: var(--cyan-light);
|
||||
background: rgba(6, 182, 212, 0.15);
|
||||
transform: scale(1.15);
|
||||
color: #fff;
|
||||
/* 苹果风格高光滑 */
|
||||
background: linear-gradient(
|
||||
135deg,
|
||||
rgba(255, 255, 255, 0.3) 0%,
|
||||
rgba(255, 255, 255, 0.15) 100%
|
||||
);
|
||||
backdrop-filter: blur(16px);
|
||||
-webkit-backdrop-filter: blur(16px);
|
||||
border: 1px solid rgba(255, 255, 255, 0.4);
|
||||
transform: scale(1.2);
|
||||
box-shadow:
|
||||
0 6px 16px rgba(0, 0, 0, 0.15),
|
||||
0 2px 6px rgba(0, 0, 0, 0.1),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.8),
|
||||
inset 0 -1px 0 rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
.dock-item svg {
|
||||
|
||||
Reference in New Issue
Block a user