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:
parsa aghaei committed 2026-07-27 12:36:23 +03:30
1 parent 3e9fffe71f
commit 5c4a553f0c
4 files changed
+22 -4

No files matched your search

+2
View File
@@ -30,6 +30,8 @@
--font-vazir: "Vazirmatn";
--font-shabnam: "Shabnam";
--font-lalezar: "Lalezar", cursive;
--color-canina-blue: #0052cc;
--color-canina-gold: #f59e0b;
}
@layer base {
+3 -3
View File
@@ -192,8 +192,8 @@ export default function UITexts() {
<button
key={tab.id}
onClick={() => setActiveTab(tab.id)}
className={`px-5 py-3 rounded-2xl text-xs font-black transition-all shrink-0 flex items-center gap-2 border ${
isActive ? 'bg-canina-blue text-white border-canina-blue shadow-md' : 'bg-white text-gray-600 border-gray-200 hover:bg-gray-50'
className={`px-5 py-3 rounded-2xl text-xs font-black transition-all shrink-0 flex items-center gap-2 border cursor-pointer ${
isActive ? 'bg-purple-600 text-white border-purple-600 shadow-md scale-105' : 'bg-white text-gray-700 border-gray-200 hover:bg-gray-100 hover:text-purple-700'
}`}
>
<Icon className="w-4 h-4" />
@@ -292,7 +292,7 @@ export default function UITexts() {
<button
onClick={() => handleSave(key)}
disabled={isSaving}
className="px-4 py-2.5 bg-canina-blue text-white hover:bg-gray-900 rounded-xl text-xs font-black transition-all shrink-0 flex items-center gap-1.5 shadow-xs"
className="px-4 py-2.5 bg-purple-600 text-white hover:bg-purple-700 rounded-xl text-xs font-black transition-all shrink-0 flex items-center gap-1.5 shadow-sm cursor-pointer"
>
{isSaving ? (
<Loader2 className="w-3.5 h-3.5 animate-spin" />
@@ -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 ${
+16
View File
@@ -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;
}