fix(catalog-hscroll-cms-buttons): add sleek custom horizontal scrollbar for catalog categories and fix high-contrast purple styling for admin CMS buttons
This commit is contained in:
1 parent
3e9fffe71f
commit
5c4a553f0c
4 files changed
+22
-4
No files matched your search
@@ -97,7 +97,7 @@ export default function CatalogClient() {
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="flex items-center gap-2.5 overflow-x-auto no-scrollbar scrollbar-none w-full md:w-auto p-1.5 scroll-smooth">
|
||||
<div className="flex items-center gap-2.5 overflow-x-auto sleek-hscroll w-full md:w-auto py-2.5 px-1 scroll-smooth">
|
||||
<button
|
||||
onClick={() => setSelectedCategory("all")}
|
||||
className={`px-5 py-3 rounded-2xl text-xs font-black transition-all shrink-0 shadow-xs ${
|
||||
|
||||
@@ -154,3 +154,19 @@
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: var(--color-canina-blue);
|
||||
}
|
||||
|
||||
/* Sleek horizontal scrollbar for categories */
|
||||
.sleek-hscroll::-webkit-scrollbar {
|
||||
height: 6px;
|
||||
}
|
||||
.sleek-hscroll::-webkit-scrollbar-track {
|
||||
background: #f1f5f9;
|
||||
border-radius: 9999px;
|
||||
}
|
||||
.sleek-hscroll::-webkit-scrollbar-thumb {
|
||||
background: #0052cc;
|
||||
border-radius: 9999px;
|
||||
}
|
||||
.sleek-hscroll::-webkit-scrollbar-thumb:hover {
|
||||
background: #003da6;
|
||||
}
|
||||
Reference in new issue
Block a user