feat(ui): implement true liquid glass with high refraction, specular lens glare, chromatic caustics, and interactive cursor tracking
This commit is contained in:
+78
-30
@@ -75,54 +75,102 @@
|
||||
border: 1px solid rgba(15, 23, 42, 0.06);
|
||||
}
|
||||
|
||||
/* Authentic Liquid Glass Capsule (Squared Media Style) */
|
||||
/* Authentic True Liquid Glass Capsule with High Refraction & Real Specular Gloss */
|
||||
.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);
|
||||
/* Crystal transparent optical liquid baseline */
|
||||
background:
|
||||
linear-gradient(
|
||||
180deg,
|
||||
rgba(255, 255, 255, 0.48) 0%,
|
||||
rgba(255, 255, 255, 0.08) 40%,
|
||||
rgba(240, 246, 255, 0.18) 100%
|
||||
),
|
||||
rgba(255, 255, 255, 0.12);
|
||||
backdrop-filter: blur(14px) saturate(210%) contrast(108%) brightness(1.08);
|
||||
-webkit-backdrop-filter: blur(14px) saturate(210%) contrast(108%) brightness(1.08);
|
||||
border: 1px solid rgba(255, 255, 255, 0.75);
|
||||
outline: 1px solid rgba(15, 23, 42, 0.05);
|
||||
outline: 1px solid rgba(15, 23, 42, 0.06);
|
||||
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);
|
||||
/* Primary intense top specular ridge */
|
||||
inset 0 2px 1px 0 rgba(255, 255, 255, 1),
|
||||
/* Bottom ambient refraction shadow */
|
||||
inset 0 -2px 1.5px 0 rgba(15, 23, 42, 0.07),
|
||||
/* Side lens rim caustics */
|
||||
inset 2px 0 2px 0 rgba(255, 255, 255, 0.65),
|
||||
inset -2px 0 2px 0 rgba(255, 255, 255, 0.65),
|
||||
/* Deep volumetric liquid glow */
|
||||
inset 0 0 24px 2px rgba(255, 255, 255, 0.5),
|
||||
/* Refractive drop shadows with subtle caustic tint */
|
||||
0 24px 50px -10px rgba(15, 23, 42, 0.15),
|
||||
0 10px 22px -4px rgba(37, 99, 235, 0.08);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Ensure inner contents sit crisply above liquid reflection layers */
|
||||
.liquid-glass-nav > * {
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
/* Diagonal Specular Lens Glare Reflection Slice */
|
||||
.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%);
|
||||
top: -50%;
|
||||
left: -20%;
|
||||
width: 140%;
|
||||
height: 200%;
|
||||
pointer-events: none;
|
||||
border-radius: 9999px;
|
||||
background: linear-gradient(
|
||||
115deg,
|
||||
transparent 22%,
|
||||
rgba(255, 255, 255, 0.06) 34%,
|
||||
rgba(255, 255, 255, 0.42) 42%,
|
||||
rgba(255, 255, 255, 0.75) 45%,
|
||||
rgba(255, 255, 255, 0.22) 48%,
|
||||
transparent 58%
|
||||
);
|
||||
transform: rotate(-10deg);
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
/* Prismatic Chromatic Caustic Highlight Line */
|
||||
.liquid-glass-nav::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 4%;
|
||||
right: 4%;
|
||||
height: 2px;
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
transparent 0%,
|
||||
rgba(56, 189, 248, 0.75) 15%,
|
||||
rgba(255, 255, 255, 1) 50%,
|
||||
rgba(168, 85, 247, 0.65) 85%,
|
||||
transparent 100%
|
||||
);
|
||||
pointer-events: none;
|
||||
filter: blur(0.2px);
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
/* Liquid Glass Mobile Dropdown */
|
||||
.liquid-glass-dropdown {
|
||||
position: relative;
|
||||
background: linear-gradient(
|
||||
180deg,
|
||||
rgba(255, 255, 255, 0.9) 0%,
|
||||
rgba(250, 248, 245, 0.94) 100%
|
||||
rgba(255, 255, 255, 0.72) 0%,
|
||||
rgba(250, 248, 245, 0.85) 100%
|
||||
);
|
||||
backdrop-filter: blur(28px) saturate(190%);
|
||||
-webkit-backdrop-filter: blur(28px) saturate(190%);
|
||||
backdrop-filter: blur(16px) saturate(200%) brightness(1.06);
|
||||
-webkit-backdrop-filter: blur(16px) saturate(200%) brightness(1.06);
|
||||
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);
|
||||
inset 0 2px 1px rgba(255, 255, 255, 1),
|
||||
inset 0 0 20px rgba(255, 255, 255, 0.35),
|
||||
0 24px 60px -10px rgba(15, 23, 42, 0.16);
|
||||
}
|
||||
|
||||
.glass-card {
|
||||
|
||||
Reference in New Issue
Block a user