style: 简化分页三角按钮

This commit is contained in:
shanshi 2026-10-20 14:06:53 +08:00
parent 952953d682
commit 908a402fc8

View File

@ -80,12 +80,14 @@
.ledger-pagination { display:flex; align-items:center; justify-content:space-between; gap:.75rem; padding:.65rem .9rem; color:var(--vip-content-muted, #595959); font-size:.72rem; }
.ledger-pagination a { color:var(--vip-content-accent-dark, #856632); text-decoration:none; margin-left:.75rem; font-weight:600; }
.ledger-pagination__controls { display:flex; align-items:center; justify-content:flex-end; gap:.45rem; margin-left:auto; }
.ledger-page-box { display:inline-flex; align-items:center; height:1.9rem; overflow:hidden; border:1px solid var(--vip-border, #D8D2C7); border-radius:.4rem; background:#fff; }
.ledger-page-box__arrow { display:inline-grid; place-items:center; width:1.75rem; height:100%; color:var(--vip-content-accent-dark, #856632); text-decoration:none; }
.ledger-page-box__arrow:hover { background:var(--vip-content-accent-soft, #F7F0DE); }
.ledger-page-box__arrow .material-icons-outlined { font-size:1rem; }
.ledger-page-box { display:inline-flex; align-items:center; gap:.55rem; height:1.7rem; }
.ledger-page-box__arrow { display:inline-grid; place-items:center; width:1.35rem; height:1.5rem; color:var(--vip-content-accent-dark, #856632); text-decoration:none; }
.ledger-page-box__arrow:hover { color:#6A5129; }
.ledger-page-box__triangle { width:0; height:0; border-top:5px solid transparent; border-bottom:5px solid transparent; }
.ledger-page-box__triangle.is-previous { border-right:8px solid currentColor; }
.ledger-page-box__triangle.is-next { border-left:8px solid currentColor; }
.ledger-page-box__arrow.is-disabled { color:#b9b3a9; cursor:not-allowed; }
.ledger-page-box__current { min-width:3.6rem; padding:0 .4rem; border-right:1px solid #e8e3da; border-left:1px solid #e8e3da; color:var(--vip-content-ink, #171717); font-size:.7rem; font-variant-numeric:tabular-nums; font-weight:700; text-align:center; white-space:nowrap; }
.ledger-page-box__current { min-width:2.8rem; color:var(--vip-content-ink, #171717); font-size:.7rem; font-variant-numeric:tabular-nums; font-weight:700; text-align:center; white-space:nowrap; }
.ledger-empty { padding:3.5rem 1rem; text-align:center; color:var(--vip-content-muted, #595959); }
.ledger-progress { display:flex; align-items:center; gap:.65rem; min-width:15rem; }
.ledger-progress__track { flex:1; height:.45rem; overflow:hidden; border-radius:999px; background:#e8e3da; }
@ -210,15 +212,15 @@
<div class="ledger-pagination__controls">
<nav class="ledger-page-box" aria-label="账户总表分页">
@if ($ledgerAccounts->onFirstPage())
<span class="ledger-page-box__arrow is-disabled" aria-disabled="true" title="已经是第一页"><span class="material-icons-outlined" aria-hidden="true">arrow_back_ios_new</span></span>
<span class="ledger-page-box__arrow is-disabled" aria-disabled="true" title="已经是第一页"><span class="ledger-page-box__triangle is-previous" aria-hidden="true"></span></span>
@else
<a class="ledger-page-box__arrow" href="{{ $ledgerAccounts->previousPageUrl() }}" aria-label="上一页" title="上一页"><span class="material-icons-outlined" aria-hidden="true">arrow_back_ios_new</span></a>
<a class="ledger-page-box__arrow" href="{{ $ledgerAccounts->previousPageUrl() }}" aria-label="上一页" title="上一页"><span class="ledger-page-box__triangle is-previous" aria-hidden="true"></span></a>
@endif
<span class="ledger-page-box__current">{{ $ledgerAccounts->currentPage() }} / {{ $ledgerAccounts->lastPage() }}</span>
@if ($ledgerAccounts->hasMorePages())
<a class="ledger-page-box__arrow" href="{{ $ledgerAccounts->nextPageUrl() }}" aria-label="下一页" title="下一页"><span class="material-icons-outlined" aria-hidden="true">arrow_forward_ios</span></a>
<a class="ledger-page-box__arrow" href="{{ $ledgerAccounts->nextPageUrl() }}" aria-label="下一页" title="下一页"><span class="ledger-page-box__triangle is-next" aria-hidden="true"></span></a>
@else
<span class="ledger-page-box__arrow is-disabled" aria-disabled="true" title="已经是最后一页"><span class="material-icons-outlined" aria-hidden="true">arrow_forward_ios</span></span>
<span class="ledger-page-box__arrow is-disabled" aria-disabled="true" title="已经是最后一页"><span class="ledger-page-box__triangle is-next" aria-hidden="true"></span></span>
@endif
</nav>
</div>