From 34bd0ecfd0dd7bfd9afc24953108ab6db2d06abe Mon Sep 17 00:00:00 2001 From: abhiramtx <7253115-abhiramtx@users.noreply.replit.com> Date: Sun, 9 Nov 2025 00:30:55 +0000 Subject: [PATCH] Update navigation bar to have a colorful border and smooth hover effects Adjusted CSS styles for the navigation bar, specifically targeting the border and hover animations. The `body::after` pseudo-element now has a thicker border with a transition for all properties. A new `navbar-inner::before` pseudo-element is introduced to create a gradient border effect on hover, with opacity transitioning over 0.6s. The `.navbar-inner:hover` style is updated to only change the `border-color` to transparent, relying on the new pseudo-element for the visual effect. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 75bceff7-98f2-4f6e-ae8e-e735399a1fe8 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 4cacbb8d-26fe-4135-ab07-2b173705ac19 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/d0a1d46d-d203-4308-bc6a-312ac7c0243b/75bceff7-98f2-4f6e-ae8e-e735399a1fe8/tyNW2LQ --- static/css/styles.css | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/static/css/styles.css b/static/css/styles.css index 133d1f2..130c628 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -97,17 +97,33 @@ body::after { background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); - border: 1px solid rgba(255, 255, 255, 0.08); + border: 2px solid rgba(255, 255, 255, 0.08); border-radius: 16px; - transition: border 0.3s ease; + transition: all 0.6s ease; + position: relative; +} + +.navbar-inner::before { + content: ''; + position: absolute; + inset: -2px; + border-radius: 16px; + padding: 2px; + background: linear-gradient(90deg, #3b82f6, #8b5cf6); + -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); + -webkit-mask-composite: xor; + mask-composite: exclude; + opacity: 0; + transition: opacity 0.6s ease; + pointer-events: none; +} + +.navbar-inner:hover::before { + opacity: 1; } .navbar-inner:hover { - border: 1px solid transparent; - background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), - linear-gradient(90deg, #3b82f6, #8b5cf6); - background-origin: border-box; - background-clip: padding-box, border-box; + border-color: transparent; } .navbar-logo {