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 button,
|
||||||
.pagination form {
|
.pagination form {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pagination button {
|
.pagination button {
|
||||||
|
|
@ -457,6 +459,8 @@ main {
|
||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: background 0.15s, border-color 0.15s;
|
transition: background 0.15s, border-color 0.15s;
|
||||||
|
line-height: 1;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pagination button:hover {
|
.pagination button:hover {
|
||||||
|
|
@ -466,16 +470,19 @@ main {
|
||||||
|
|
||||||
.page-current {
|
.page-current {
|
||||||
min-width: 40px;
|
min-width: 40px;
|
||||||
|
width: auto;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
padding: 0 0.75rem;
|
padding: 0 0.75rem;
|
||||||
border: 1px solid var(--accent) !important;
|
border: 1px solid var(--accent);
|
||||||
border-radius: var(--radius-sm);
|
border-radius: var(--radius-sm);
|
||||||
background: var(--accent) !important;
|
background: var(--accent);
|
||||||
color: #fff !important;
|
color: #fff;
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
display: flex;
|
font-weight: 500;
|
||||||
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ============================================================
|
/* ============================================================
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue