Álvaro Valenzuela Valdes commited on
Commit ·
71e92c7
1
Parent(s): 43e744c
style: Implementation of Premium 2026 scrollbar and Z-Index supremacy
Browse files- frontend/app/page.tsx +1 -1
- frontend/globals.css +15 -8
frontend/app/page.tsx
CHANGED
|
@@ -171,7 +171,7 @@ export default function HomePage() {
|
|
| 171 |
|
| 172 |
<div className="flex flex-col md:flex-row min-h-screen gap-8 p-6 md:p-10">
|
| 173 |
{/* Sidebar Container */}
|
| 174 |
-
<div className={`${isMobileMenuOpen ? "fixed inset-0 z-[
|
| 175 |
{isMobileMenuOpen && (
|
| 176 |
<div className="absolute inset-0 bg-black/80 backdrop-blur-sm md:hidden" onClick={() => setIsMobileMenuOpen(false)} />
|
| 177 |
)}
|
|
|
|
| 171 |
|
| 172 |
<div className="flex flex-col md:flex-row min-h-screen gap-8 p-6 md:p-10">
|
| 173 |
{/* Sidebar Container */}
|
| 174 |
+
<div className={`${isMobileMenuOpen ? "fixed inset-0 z-[100] flex" : "hidden"} md:block md:w-[84px] md:shrink-0 md:sticky md:top-8 md:h-[calc(100vh-4rem)] transition-all duration-500 z-[100]`}>
|
| 175 |
{isMobileMenuOpen && (
|
| 176 |
<div className="absolute inset-0 bg-black/80 backdrop-blur-sm md:hidden" onClick={() => setIsMobileMenuOpen(false)} />
|
| 177 |
)}
|
frontend/globals.css
CHANGED
|
@@ -63,30 +63,37 @@
|
|
| 63 |
}
|
| 64 |
}
|
| 65 |
|
| 66 |
-
/* Custom scrollbar */
|
| 67 |
.custom-scrollbar::-webkit-scrollbar {
|
| 68 |
-
width:
|
| 69 |
height: 0px;
|
| 70 |
}
|
| 71 |
.custom-scrollbar::-webkit-scrollbar-track {
|
| 72 |
background: transparent;
|
| 73 |
}
|
| 74 |
.custom-scrollbar::-webkit-scrollbar-thumb {
|
| 75 |
-
background:
|
| 76 |
-
border-radius:
|
|
|
|
| 77 |
}
|
| 78 |
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
|
| 79 |
-
background:
|
|
|
|
| 80 |
}
|
| 81 |
|
|
|
|
| 82 |
::-webkit-scrollbar {
|
| 83 |
-
width:
|
| 84 |
}
|
| 85 |
::-webkit-scrollbar-track {
|
| 86 |
-
|
| 87 |
}
|
| 88 |
::-webkit-scrollbar-thumb {
|
| 89 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
}
|
| 91 |
|
| 92 |
::selection {
|
|
|
|
| 63 |
}
|
| 64 |
}
|
| 65 |
|
| 66 |
+
/* Custom scrollbar Premium 2026 */
|
| 67 |
.custom-scrollbar::-webkit-scrollbar {
|
| 68 |
+
width: 2px;
|
| 69 |
height: 0px;
|
| 70 |
}
|
| 71 |
.custom-scrollbar::-webkit-scrollbar-track {
|
| 72 |
background: transparent;
|
| 73 |
}
|
| 74 |
.custom-scrollbar::-webkit-scrollbar-thumb {
|
| 75 |
+
background: linear-gradient(to bottom, transparent, #a855f7, transparent);
|
| 76 |
+
border-radius: 20px;
|
| 77 |
+
box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
|
| 78 |
}
|
| 79 |
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
|
| 80 |
+
background: #a855f7;
|
| 81 |
+
width: 4px;
|
| 82 |
}
|
| 83 |
|
| 84 |
+
/* Global scrollbar refinement */
|
| 85 |
::-webkit-scrollbar {
|
| 86 |
+
width: 4px;
|
| 87 |
}
|
| 88 |
::-webkit-scrollbar-track {
|
| 89 |
+
background: transparent;
|
| 90 |
}
|
| 91 |
::-webkit-scrollbar-thumb {
|
| 92 |
+
background: rgba(255, 255, 255, 0.05);
|
| 93 |
+
border-radius: 10px;
|
| 94 |
+
}
|
| 95 |
+
::-webkit-scrollbar-thumb:hover {
|
| 96 |
+
background: rgba(168, 85, 247, 0.2);
|
| 97 |
}
|
| 98 |
|
| 99 |
::selection {
|