feat(ui): implement authentic floating liquid glass navbar inspired by squared-media.nl with specular sheen and refraction blur

This commit is contained in:
2026-11-03 14:30:31 +05:30
parent ea722c09be
commit 308396c859
3 changed files with 80 additions and 40 deletions
+50
View File
@@ -49,6 +49,56 @@
border: 1px solid rgba(15, 23, 42, 0.06);
}
/* Authentic Liquid Glass Capsule (Squared Media Style) */
.liquid-glass-nav {
position: relative;
background: linear-gradient(
180deg,
rgba(255, 255, 255, 0.75) 0%,
rgba(255, 255, 255, 0.38) 45%,
rgba(250, 248, 245, 0.68) 100%
);
backdrop-filter: blur(24px) saturate(190%) brightness(1.05);
-webkit-backdrop-filter: blur(24px) saturate(190%) brightness(1.05);
border: 1px solid rgba(255, 255, 255, 0.75);
outline: 1px solid rgba(15, 23, 42, 0.05);
box-shadow:
inset 0 1.5px 0.5px rgba(255, 255, 255, 0.95),
inset 0 -1px 1px rgba(15, 23, 42, 0.03),
inset 1px 0 1px rgba(255, 255, 255, 0.4),
inset -1px 0 1px rgba(255, 255, 255, 0.4),
inset 0 0 20px rgba(255, 255, 255, 0.25),
0 16px 36px -6px rgba(15, 23, 42, 0.08),
0 4px 14px -2px rgba(15, 23, 42, 0.03);
}
.liquid-glass-nav::before {
content: "";
position: absolute;
top: 0;
left: 8%;
right: 8%;
height: 1px;
background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.95) 50%, transparent 100%);
pointer-events: none;
border-radius: 9999px;
}
.liquid-glass-dropdown {
background: linear-gradient(
180deg,
rgba(255, 255, 255, 0.9) 0%,
rgba(250, 248, 245, 0.94) 100%
);
backdrop-filter: blur(28px) saturate(190%);
-webkit-backdrop-filter: blur(28px) saturate(190%);
border: 1px solid rgba(255, 255, 255, 0.85);
outline: 1px solid rgba(15, 23, 42, 0.06);
box-shadow:
inset 0 1px 1px rgba(255, 255, 255, 0.9),
0 20px 48px -8px rgba(15, 23, 42, 0.12);
}
.glass-card {
background: #FFFFFF;
border: 1px solid rgba(15, 23, 42, 0.07);