From af7bd64617f81fc56274a6a22dc70102b44fbe73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Henrique?= Date: Thu, 19 Jun 2025 20:07:20 -0300 Subject: [PATCH] solving scrollbar missing "issue" --- src/App.css | 54 ++++++++++++++++++++++++++++++++-- src/index.css | 80 +-------------------------------------------------- 2 files changed, 53 insertions(+), 81 deletions(-) diff --git a/src/App.css b/src/App.css index b3bd993..2ffdfea 100644 --- a/src/App.css +++ b/src/App.css @@ -13,7 +13,8 @@ body, html { padding: 0; width: 100%; height: 100%; - overflow-x: hidden; + scrollbar-width: thin; + scrollbar-color: rgba(156, 163, 175, 0.5) transparent; } /* Custom animations */ @@ -94,4 +95,53 @@ body, html { scrollbar-width: none; /* Firefox */ -ms-overflow-style: none; /* Internet Explorer and Edge */ overflow: -moz-scrollbars-none; /* Old versions of Firefox */ -} \ No newline at end of file +} + +h1 { + font-size: 3.2em; + line-height: 1.1; +} + +/* Custom minimal scrollbar styles */ +.custom-scrollbar { + scrollbar-width: thin; + scrollbar-color: rgba(156, 163, 175, 0.5) transparent; +} + +.custom-scrollbar::-webkit-scrollbar { + width: 1px; +} + +.custom-scrollbar::-webkit-scrollbar-track { + background: transparent; +} + +.custom-scrollbar::-webkit-scrollbar-thumb { + background-color: rgba(156, 163, 175, 0.5); + border-radius: 2px; + transition: background-color 0.2s ease; +} + +.custom-scrollbar::-webkit-scrollbar-thumb:hover { + background-color: rgba(107, 114, 128, 0.7); +} + +.custom-scrollbar::-webkit-scrollbar-corner { + background: transparent; +} + +/* Custom fade-in animation for dropdown content */ +@keyframes fadeIn { + from { + opacity: 0; + transform: translateY(-10px); + } + to { + opacity: 1; + transform: translateY(0); + } +} + +.animate-fadeIn { + animation: fadeIn 0.3s ease-out forwards; +} diff --git a/src/index.css b/src/index.css index 09252ee..e541f48 100644 --- a/src/index.css +++ b/src/index.css @@ -26,82 +26,4 @@ body { width: 100%; @apply bg-gray-900 text-white; -} - -h1 { - font-size: 3.2em; - line-height: 1.1; -} - -/* button { - border-radius: 8px; - border: 1px solid transparent; - padding: 0.6em 1.2em; - font-size: 1em; - font-weight: 500; - font-family: inherit; - cursor: pointer; - transition: border-color 0.25s; -} -button:hover { - border-color: #646cff; -} -button:focus, -button:focus-visible { - outline: 4px auto -webkit-focus-ring-color; -} */ - -/* Custom minimal scrollbar styles */ -.custom-scrollbar { - scrollbar-width: thin; - scrollbar-color: rgba(156, 163, 175, 0.5) transparent; -} - -.custom-scrollbar::-webkit-scrollbar { - width: 1px; -} - -.custom-scrollbar::-webkit-scrollbar-track { - background: transparent; -} - -.custom-scrollbar::-webkit-scrollbar-thumb { - background-color: rgba(156, 163, 175, 0.5); - border-radius: 2px; - transition: background-color 0.2s ease; -} - -.custom-scrollbar::-webkit-scrollbar-thumb:hover { - background-color: rgba(107, 114, 128, 0.7); -} - -.custom-scrollbar::-webkit-scrollbar-corner { - background: transparent; -} - -/* Ensure full width layout */ -html, body, #root { - width: 100%; - margin: 0; - padding: 0; -} - -#root { - min-height: 100vh; -} - -/* Custom fade-in animation for dropdown content */ -@keyframes fadeIn { - from { - opacity: 0; - transform: translateY(-10px); - } - to { - opacity: 1; - transform: translateY(0); - } -} - -.animate-fadeIn { - animation: fadeIn 0.3s ease-out forwards; -} +} \ No newline at end of file