Skip to content

Commit 5e0f62c

Browse files
committed
Update base color of glass components in light mode
1 parent 72a2791 commit 5e0f62c

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

src/css/style.css

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ body {
323323
--navbar-bg-item-hover: #e0f2fe;
324324
--navbar-shadow: rgba(0, 0, 0, 0.05);
325325

326-
--navbar-glass-bg: rgba(0, 0, 0, 0.03);
326+
--navbar-glass-bg: var(--navbar-bg);
327327
--navbar-glass-border: rgba(0, 0, 0, 0.08);
328328
--navbar-glass-border-hover: rgba(0, 0, 0, 0.15);
329329
--navbar-glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 4px 12px rgba(0, 0, 0, 0.05);
@@ -523,7 +523,7 @@ button:focus {
523523

524524
filter:
525525
blur(7px)
526-
brightness(1.02); /* ↓ 从 1.05 降到 1.02 */
526+
brightness(1.02);
527527

528528
will-change: opacity, transform;
529529
}
@@ -1317,25 +1317,29 @@ a.floating-nav-contact-item:hover {
13171317
width: 40px;
13181318
height: 40px;
13191319
border-radius: 50%;
1320-
border: 1px solid var(--border-medium);
1321-
background: var(--surface-glass);
1320+
border: 1px solid var(--navbar-glass-border);
1321+
background: var(--navbar-glass-bg);
13221322
color: var(--color-text);
13231323
display: inline-flex;
13241324
align-items: center;
13251325
justify-content: center;
1326-
transition: background 0.2s ease, box-shadow 0.2s ease;
1326+
backdrop-filter: blur(18px) saturate(160%);
1327+
-webkit-backdrop-filter: blur(18px) saturate(160%);
1328+
box-shadow: var(--navbar-glass-shadow);
1329+
transition: var(--button-transition), border-color 0.25s ease;
13271330
pointer-events: auto;
13281331
}
13291332

13301333
.floating-nav-close:hover {
13311334
background: var(--surface-glass-hover);
1332-
box-shadow: var(--shadow-drop-md);
1335+
color: var(--color-white);
1336+
border-color: var(--navbar-glass-border-hover);
13331337
}
13341338

13351339
.floating-nav-close:active {
13361340
transform: scale(var(--button-active-scale));
13371341
background: var(--surface-glass-active);
1338-
transition: transform 0.1s ease, background 0.1s ease;
1342+
transition: var(--button-transition-active), background 0.1s ease;
13391343
}
13401344

13411345
.floating-nav-list .floating-nav-link {

0 commit comments

Comments
 (0)