Add missing sc-pagination styles for the shared Pagination component
The component's markup used sc-pagination* classes that had no matching rules anywhere in the shared stylesheet, so it rendered unstyled in every consumer. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
965910eecc
commit
a998844c11
1 file changed
+75
@@ -839,6 +839,81 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sc-pagination {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: 0.75rem;
|
||||||
|
margin-top: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sc-pagination-page-size {
|
||||||
|
width: auto;
|
||||||
|
min-height: 2.25rem;
|
||||||
|
padding: 0.375rem 0.6rem;
|
||||||
|
color: var(--sc-fg);
|
||||||
|
background: var(--sc-bg);
|
||||||
|
border: 1px solid var(--sc-border);
|
||||||
|
border-radius: var(--sc-radius-sm);
|
||||||
|
font-size: 0.8rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sc-pagination-info {
|
||||||
|
margin: 0;
|
||||||
|
color: var(--sc-muted-fg);
|
||||||
|
font-size: 0.8rem;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sc-pagination-controls {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.25rem;
|
||||||
|
margin-left: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sc-pagination-button {
|
||||||
|
display: grid;
|
||||||
|
width: 2.1rem;
|
||||||
|
height: 2.1rem;
|
||||||
|
place-items: center;
|
||||||
|
color: var(--sc-muted-fg);
|
||||||
|
background: transparent;
|
||||||
|
border: 1px solid var(--sc-border);
|
||||||
|
border-radius: var(--sc-radius-sm);
|
||||||
|
cursor: pointer;
|
||||||
|
transition:
|
||||||
|
color 140ms ease,
|
||||||
|
background 140ms ease,
|
||||||
|
border-color 140ms ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sc-pagination-button:hover:not(:disabled) {
|
||||||
|
color: var(--sc-fg);
|
||||||
|
background: var(--sc-surface-hover);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sc-pagination-button:focus-visible {
|
||||||
|
outline: 3px solid color-mix(in srgb, var(--sc-ring) 45%, transparent);
|
||||||
|
outline-offset: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sc-pagination-button:disabled {
|
||||||
|
cursor: not-allowed;
|
||||||
|
opacity: 0.4;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 620px) {
|
||||||
|
.sc-pagination {
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sc-pagination-controls {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.sc-auth-page {
|
.sc-auth-page {
|
||||||
display: grid;
|
display: grid;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
|
|||||||
Reference in new issue
Block a user