Skip to content

Commit 72db258

Browse files
author
iitzIrFan
committed
Enhance pagination styles with improved button sizes, colors, and hover effects for better usability
1 parent 3589cb2 commit 72db258

File tree

1 file changed

+83
-28
lines changed

1 file changed

+83
-28
lines changed

src/components/dashboard/LeaderBoard/leaderboard.css

Lines changed: 83 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -576,110 +576,165 @@
576576
display: flex;
577577
justify-content: center;
578578
align-items: center;
579-
gap: 8px;
579+
gap: 12px;
580580
padding: 24px 0;
581+
margin-top: 16px;
582+
border-top: 1px solid rgba(0, 0, 0, 0.1);
583+
}
584+
585+
.light .pagination {
586+
background-color: #f9fafb;
587+
border-top: 1px solid #e5e7eb;
588+
border-bottom-left-radius: 12px;
589+
border-bottom-right-radius: 12px;
590+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
591+
}
592+
593+
.dark .pagination {
594+
border-top: 1px solid rgba(255, 255, 255, 0.1);
595+
background-color: #1e293b;
596+
border-bottom-left-radius: 12px;
597+
border-bottom-right-radius: 12px;
581598
}
582599

583600
.pagination-btn {
584601
display: flex;
585602
justify-content: center;
586603
align-items: center;
587-
width: 40px;
588-
height: 40px;
604+
width: 44px;
605+
height: 44px;
589606
border-radius: 50%;
590-
border: none;
607+
border: 2px solid transparent;
591608
cursor: pointer;
592609
transition: all 0.2s ease;
610+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
593611
}
594612

595613
.light .pagination-btn {
596-
background: #e5e7eb;
597-
color: #6b7280;
614+
background: #836dff;
615+
color: #6366f1;
616+
border: 1px solid #006eff;
598617
}
599618

600619
.dark .pagination-btn {
601-
background: #374151;
602-
color: #d1d5db;
620+
background: #2d3748;
621+
color: #8b5cf6;
622+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
623+
border: 1px solid #4b5563;
603624
}
604625

605626
.pagination-btn:hover:not(.disabled) {
606-
background: #d1d5db;
627+
transform: translateY(-2px);
628+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
629+
}
630+
631+
.light .pagination-btn:hover:not(.disabled) {
632+
background: #0080ff;
633+
border-color: #6366f1;
634+
color: #4338ca;
607635
}
608636

609637
.dark .pagination-btn:hover:not(.disabled) {
610-
background: #4b5563;
638+
background: #374151;
639+
border-color: #8b5cf6;
640+
color: #a78bfa;
611641
}
612642

613643
.pagination-btn.disabled {
614-
opacity: 0.5;
644+
opacity: 0.4;
615645
cursor: not-allowed;
646+
box-shadow: none;
616647
}
617648

618649
.page-btn {
619650
display: flex;
620651
justify-content: center;
621652
align-items: center;
622-
width: 36px;
623-
height: 36px;
624-
border-radius: 8px;
625-
border: none;
653+
width: 40px;
654+
height: 40px;
655+
border-radius: 10px;
656+
border: 2px solid transparent;
626657
cursor: pointer;
627-
font-weight: bold;
658+
font-weight: 600;
659+
font-size: 15px;
628660
transition: all 0.2s ease;
629661
}
630662

631663
.light .page-btn {
632-
background: transparent;
633-
color: #666;
664+
background: #0044ff;
665+
color: #4b5563;
666+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
667+
border: 1px solid #e2e8f0;
634668
}
635669

636670
.dark .page-btn {
637-
background: transparent;
638-
color: #b3b3b3;
671+
background: #2d3748;
672+
color: #e5e7eb;
673+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
674+
border: 1px solid #4b5563;
639675
}
640676

641677
.page-btn:hover {
642-
background: #e5e7eb;
678+
transform: translateY(-1px);
679+
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
680+
}
681+
682+
.light .page-btn:hover {
683+
background: #0080ff;
684+
border-color: #6366f1;
685+
color: #4338ca;
643686
}
644687

645688
.dark .page-btn:hover {
646689
background: #374151;
690+
border-color: #8b5cf6;
691+
color: #a78bfa;
647692
}
648693

649694
.page-btn.active {
650-
background: #2563eb;
695+
background: #6366f1;
651696
color: #fff;
697+
box-shadow: 0 3px 6px rgba(99, 102, 241, 0.4);
698+
transform: translateY(-1px);
699+
border-color: #6366f1;
652700
}
653701

654702
.dark .page-btn.active {
655-
background: #3b82f6;
703+
background: #8b5cf6;
656704
color: #fff;
705+
box-shadow: 0 3px 6px rgba(139, 92, 246, 0.4);
706+
border-color: #8b5cf6;
657707
}
658708

659709
.page-numbers {
660710
display: flex;
661-
gap: 8px;
711+
gap: 10px;
662712
flex-wrap: wrap;
663713
justify-content: center;
714+
align-items: center;
715+
padding: 0 8px;
664716
}
665717

666718
/* Pagination ellipsis */
667719
.pagination-ellipsis {
668720
display: flex;
669721
justify-content: center;
670722
align-items: center;
671-
width: 36px;
672-
height: 36px;
723+
width: 40px;
724+
height: 40px;
673725
font-weight: bold;
726+
font-size: 18px;
674727
user-select: none;
675728
}
676729

677730
.light .pagination-ellipsis {
678-
color: #666;
731+
color: #6366f1;
732+
opacity: 0.7;
679733
}
680734

681735
.dark .pagination-ellipsis {
682-
color: #b3b3b3;
736+
color: #8b5cf6;
737+
opacity: 0.8;
683738
}
684739

685740
/* CTA Footer */

0 commit comments

Comments
 (0)