fix(frontend): improve pagination CSS for better centering and sizing
- Match .page-current padding to button padding (0 0.75rem) - Add box-sizing: border-box to buttons - Add margin/padding reset to pagination forms - Simplify page-current flex layout Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
f92ec02dba
commit
c97e6a6182
1 changed files with 11 additions and 4 deletions
|
|
@ -443,6 +443,8 @@ main {
|
|||
.pagination button,
|
||||
.pagination form {
|
||||
display: inline-flex;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.pagination button {
|
||||
|
|
@ -457,6 +459,8 @@ main {
|
|||
font-family: inherit;
|
||||
cursor: pointer;
|
||||
transition: background 0.15s, border-color 0.15s;
|
||||
line-height: 1;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.pagination button:hover {
|
||||
|
|
@ -466,16 +470,19 @@ main {
|
|||
|
||||
.page-current {
|
||||
min-width: 40px;
|
||||
width: auto;
|
||||
height: 40px;
|
||||
padding: 0 0.75rem;
|
||||
border: 1px solid var(--accent) !important;
|
||||
border: 1px solid var(--accent);
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--accent) !important;
|
||||
color: #fff !important;
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
font-size: 0.9rem;
|
||||
display: flex;
|
||||
font-weight: 500;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue