forked from fa/breadcrumb-the-shire
Define a major-third (1.25) type scale as CSS custom properties in the tokens layer (--text-2xs through --text-5xl), along with line-height (--leading-*), font-weight (--font-*), and letter-spacing (--tracking-*) tokens. Migrate all 28 core CSS files from ad-hoc values to token references with clamp()-based responsive scaling for headings. Add TypographyTokenContractTest to enforce token-only usage via grep-based assertions. Task run: UI-TYPOGRAPHY-SCALE-001 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
101 lines
2.4 KiB
CSS
101 lines
2.4 KiB
CSS
@layer components {
|
|
/* List toolbar — page-size selector, filter toggle, and search controls above grids. */
|
|
.app-list-toolbar {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
margin-bottom: calc(var(--app-spacing) * 1);
|
|
}
|
|
|
|
.app-list-toolbar > * {
|
|
margin: 0 !important;
|
|
width: auto !important;
|
|
--app-form-element-spacing-horizontal: 10px;
|
|
--app-form-element-spacing-vertical: 6px;
|
|
font-size: var(--text-sm) !important;
|
|
height: auto !important;
|
|
}
|
|
.app-list-toolbar > * > * {
|
|
margin: 0 !important;
|
|
width: auto !important;
|
|
--app-form-element-spacing-horizontal: 10px;
|
|
--app-form-element-spacing-vertical: 6px;
|
|
font-size: var(--text-sm) !important;
|
|
height: auto !important;
|
|
}
|
|
.app-list-toolbar > * > * > * {
|
|
margin: 0 !important;
|
|
width: auto !important;
|
|
--app-form-element-spacing-horizontal: 10px;
|
|
--app-form-element-spacing-vertical: 6px;
|
|
font-size: var(--text-sm) !important;
|
|
height: auto !important;
|
|
}
|
|
|
|
.app-list-toolbar > button {
|
|
padding: 6px 10px;
|
|
}
|
|
|
|
.app-list-toolbar
|
|
input:not(
|
|
[type="checkbox"],
|
|
.app-list-toolbar [type="radio"],
|
|
.app-list-toolbar [type="range"],
|
|
.app-list-toolbar [type="file"]
|
|
):is(
|
|
[type="date"],
|
|
[type="datetime-local"],
|
|
[type="month"],
|
|
[type="time"],
|
|
[type="week"]
|
|
) {
|
|
width: auto;
|
|
}
|
|
|
|
.app-list-toolbar > label > span {
|
|
display: block;
|
|
font-size: var(--text-xs) !important;
|
|
}
|
|
|
|
.app-list-toolbar .app-grid-page-size select {
|
|
min-width: 84px;
|
|
}
|
|
|
|
.app-list-toolbar .app-grid-page-size {
|
|
margin-inline-start: auto !important;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.app-list-toolbar .app-grid-page-size {
|
|
margin-inline-start: 0 !important;
|
|
}
|
|
}
|
|
|
|
.app-list-toolbar
|
|
.multi-select
|
|
.multi-select-header
|
|
.multi-select-header-placeholder {
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
.app-list-toolbar .multi-select .multi-select-header,
|
|
.app-list-toolbar .multi-select .multi-select-option,
|
|
.app-list-toolbar .multi-select .multi-select-all {
|
|
min-height: unset;
|
|
padding-left: 5px;
|
|
}
|
|
|
|
.app-list-toolbar .multi-select {
|
|
width: 200px !important;
|
|
}
|
|
|
|
.app-list-toolbar span.multi-select-header-option {
|
|
background: transparent !important;
|
|
border: 0 !important;
|
|
padding: 0 !important;
|
|
padding-left: 3px !important;
|
|
font-size: var(--text-xs) !important;
|
|
}
|
|
}
|