fix(ui): eliminate top and bottom edge fog and smog from liquid glass navbar
This commit is contained in:
+28
-57
@@ -78,81 +78,53 @@
|
||||
/* Authentic True Liquid Glass Capsule with High Refraction & Real Specular Gloss */
|
||||
.liquid-glass-nav {
|
||||
position: relative;
|
||||
/* 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);
|
||||
/* Crystal transparent optical liquid baseline - zero edge fog/smog */
|
||||
background: 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.06);
|
||||
border: 1px solid rgba(255, 255, 255, 0.55);
|
||||
box-shadow:
|
||||
/* 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),
|
||||
/* Razor-sharp 1px top specular ridge */
|
||||
inset 0 1px 0 0 rgba(255, 255, 255, 0.85),
|
||||
/* Crisp 1px bottom reflection */
|
||||
inset 0 -1px 0 0 rgba(255, 255, 255, 0.25),
|
||||
/* 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);
|
||||
0 20px 45px -10px rgba(15, 23, 42, 0.12),
|
||||
0 8px 16px -4px rgba(15, 23, 42, 0.05);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.liquid-glass-nav.nav-scrolled {
|
||||
box-shadow:
|
||||
inset 0 1px 0 0 rgba(255, 255, 255, 0.9),
|
||||
inset 0 -1px 0 0 rgba(255, 255, 255, 0.25),
|
||||
0 24px 50px -12px rgba(15, 23, 42, 0.14),
|
||||
0 10px 20px -5px rgba(15, 23, 42, 0.06);
|
||||
}
|
||||
|
||||
/* 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: -50%;
|
||||
left: -20%;
|
||||
width: 140%;
|
||||
height: 200%;
|
||||
pointer-events: none;
|
||||
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;
|
||||
left: 8%;
|
||||
right: 8%;
|
||||
height: 1px;
|
||||
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%,
|
||||
rgba(56, 189, 248, 0.6) 20%,
|
||||
rgba(255, 255, 255, 0.95) 50%,
|
||||
rgba(168, 85, 247, 0.5) 80%,
|
||||
transparent 100%
|
||||
);
|
||||
pointer-events: none;
|
||||
filter: blur(0.2px);
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
@@ -164,8 +136,8 @@
|
||||
overflow: hidden;
|
||||
pointer-events: none;
|
||||
z-index: 1;
|
||||
opacity: 0.65;
|
||||
filter: url("#glass-liquid-warp") blur(0.6px);
|
||||
opacity: 0.6;
|
||||
filter: url("#glass-liquid-warp");
|
||||
mix-blend-mode: luminosity;
|
||||
transform: translateZ(0);
|
||||
}
|
||||
@@ -178,10 +150,9 @@
|
||||
height: 600px;
|
||||
pointer-events: none;
|
||||
background:
|
||||
radial-gradient(ellipse 65% 35% at 25% 25%, rgba(56, 189, 248, 0.45) 0%, transparent 60%),
|
||||
radial-gradient(ellipse 70% 45% at 75% 70%, rgba(124, 58, 237, 0.42) 0%, transparent 65%),
|
||||
radial-gradient(ellipse 85% 55% at 50% 45%, rgba(37, 99, 235, 0.35) 0%, transparent 70%),
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, transparent 45%, rgba(255, 255, 255, 0.5) 100%);
|
||||
radial-gradient(ellipse 65% 35% at 25% 30%, rgba(56, 189, 248, 0.35) 0%, transparent 60%),
|
||||
radial-gradient(ellipse 70% 45% at 75% 70%, rgba(124, 58, 237, 0.32) 0%, transparent 65%),
|
||||
radial-gradient(ellipse 85% 55% at 50% 50%, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
|
||||
will-change: transform;
|
||||
transform: translateZ(0) scaleY(-1);
|
||||
}
|
||||
|
||||
@@ -106,7 +106,7 @@ export function Navbar({ config, currentLocale }: NavbarProps) {
|
||||
onMouseMove={handleMouseMove}
|
||||
onMouseLeave={handleMouseLeave}
|
||||
className={`relative max-w-6xl mx-auto liquid-glass-nav rounded-2xl sm:rounded-[22px] px-3.5 sm:px-6 py-2.5 sm:py-3 flex items-center justify-between transition-all duration-300 pointer-events-auto ${
|
||||
isScrolled ? 'shadow-cream-lg' : 'shadow-cream-md'
|
||||
isScrolled ? 'nav-scrolled' : ''
|
||||
}`}
|
||||
>
|
||||
{/* Optical Inverted Liquid Glass Refraction Chamber */}
|
||||
@@ -114,12 +114,12 @@ export function Navbar({ config, currentLocale }: NavbarProps) {
|
||||
<div ref={mirrorRef} className="liquid-fluid-wave" />
|
||||
</div>
|
||||
|
||||
{/* Dynamic Specular Caustic Glint */}
|
||||
{/* Dynamic Specular Caustic Glint - Crystal clear at rest, subtle gloss on cursor interaction */}
|
||||
<div
|
||||
className="absolute inset-0 pointer-events-none transition-opacity duration-300 z-[2]"
|
||||
style={{
|
||||
opacity: mousePos.active ? 1 : 0.5,
|
||||
background: `radial-gradient(ellipse 320px 110px at ${mousePos.x}% ${mousePos.y}%, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.2) 40%, transparent 75%)`,
|
||||
opacity: mousePos.active ? 0.7 : 0,
|
||||
background: `radial-gradient(ellipse 260px 80px at ${mousePos.x}% ${mousePos.y}%, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.1) 40%, transparent 70%)`,
|
||||
}}
|
||||
/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user