forked from rapidez/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved the pagination styling (rapidez#558)
- Loading branch information
1 parent
a7dd2ec
commit 3b25687
Showing
3 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
.pagination .pagination-button:first-child:nth-last-child(3), | ||
.pagination .pagination-button:first-child:nth-last-child(3) ~ .pagination-button { | ||
@apply hidden; | ||
} | ||
|
||
.pagination { | ||
@apply flex flex-wrap justify-center gap-x-2 !m-0 !my-6 max-md:gap-y-4; | ||
} | ||
|
||
.pagination-button { | ||
@apply !font-semibold !font-sans !border !border-border !rounded !bg-white !text-neutral !shadow; | ||
} | ||
|
||
.pagination-button.active { | ||
@apply !border !border-none !bg-primary !text-white !shadow-none; | ||
} | ||
|
||
.pagination-button:first-child { | ||
@apply !mr-auto max-md:w-full max-md:order-last; | ||
} | ||
|
||
.pagination-button:last-child { | ||
@apply !ml-auto max-md:w-full max-md:-order-1; | ||
} | ||
|
||
.pagination-button:not(:first-child):not(:last-child) { | ||
@apply !m-0 !size-14 max-md:flex-1 max-md:w-auto; | ||
} | ||
|
||
.pagination-button:first-child, | ||
.pagination-button:last-child { | ||
@apply h-14 px-6 max-md:!m-0; | ||
} | ||
|
||
.pagination-button[disabled] { | ||
@apply opacity-60; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters