Files
breadcrumb-the-shire/web/css/components/app-list-toolbar.css

139 lines
3.4 KiB
CSS
Raw Normal View History

@layer components {
/* List toolbar — page-size selector, filter toggle, and search controls above grids. */
2026-03-04 15:56:58 +01:00
.app-list-toolbar {
--app-list-toolbar-gap: 10px;
--app-list-toolbar-padding-x: 10px;
--app-list-toolbar-padding-y: 6px;
2026-03-04 15:56:58 +01:00
display: flex;
align-items: flex-end;
flex-wrap: wrap;
gap: var(--app-list-toolbar-gap);
margin-bottom: var(--app-spacing);
2026-03-04 15:56:58 +01:00
}
2026-02-04 23:31:53 +01:00
2026-03-04 15:56:58 +01:00
.app-list-toolbar > * {
margin: 0;
width: auto;
font-size: var(--text-sm);
height: auto;
2026-03-04 15:56:58 +01:00
}
2026-04-24 21:53:14 +02:00
.app-list-toolbar
:is(
.app-field,
label,
button,
[role="button"],
input,
select,
.multi-select
) {
margin: 0;
width: auto;
2026-03-04 15:56:58 +01:00
}
.app-list-toolbar :is(button, [role="button"], input, select) {
--app-form-element-spacing-horizontal: var(--app-list-toolbar-padding-x);
--app-form-element-spacing-vertical: var(--app-list-toolbar-padding-y);
font-size: var(--text-sm);
min-height: calc(var(--app-list-toolbar-padding-y) * 2 + 1.4em);
2026-03-04 15:56:58 +01:00
}
2026-02-04 23:31:53 +01:00
2026-04-24 21:53:14 +02:00
.app-list-toolbar input[type=search],
.app-list-toolbar input[type=text],
.app-list-toolbar > button,
.app-list-toolbar > [role="button"] {
padding: var(--app-list-toolbar-padding-y) var(--app-list-toolbar-padding-x);
2026-04-24 21:53:14 +02:00
height: auto;
2026-03-04 15:56:58 +01:00
}
2026-02-04 23:31:53 +01:00
2026-03-04 15:56:58 +01:00
.app-list-toolbar
input:not(
[type="checkbox"],
[type="radio"],
[type="range"],
[type="file"]
2026-03-04 15:56:58 +01:00
):is(
[type="date"],
[type="datetime-local"],
[type="month"],
[type="time"],
[type="week"]
) {
width: auto;
}
2026-02-04 23:31:53 +01:00
.app-list-toolbar > label > span,
.app-list-toolbar > .app-field > span {
2026-03-04 15:56:58 +01:00
display: block;
font-size: var(--text-xs);
margin-bottom: 2px;
2026-03-04 15:56:58 +01:00
}
.app-list-toolbar .app-grid-page-size {
margin-inline-start: auto;
2026-03-05 11:17:42 +01:00
}
.app-list-toolbar .app-grid-page-size select {
min-width: 84px;
2026-03-05 11:17:42 +01:00
}
.app-list-toolbar .multi-select {
width: 200px;
2026-03-05 11:17:42 +01:00
}
2026-04-24 21:53:14 +02:00
.app-list-toolbar
.multi-select
.multi-select-header
.multi-select-header-placeholder {
font-size: var(--text-sm);
2026-03-04 15:56:58 +01:00
}
2026-02-04 23:31:53 +01:00
2026-03-04 15:56:58 +01:00
.app-list-toolbar .multi-select .multi-select-header,
.app-list-toolbar .multi-select .multi-select-option,
.app-list-toolbar .multi-select .multi-select-all {
2026-02-04 23:31:53 +01:00
min-height: unset;
padding-left: 5px;
2026-03-04 15:56:58 +01:00
}
2026-02-04 23:31:53 +01:00
.app-list-toolbar span.multi-select-header-option {
background: transparent;
border: 0;
padding: 0 0 0 3px;
font-size: var(--text-xs);
2026-03-04 15:56:58 +01:00
}
2026-02-04 23:31:53 +01:00
@media (max-width: 768px) {
.app-list-toolbar .app-grid-page-size {
margin-inline-start: 0;
}
2026-03-04 15:56:58 +01:00
}
feat(responsive): mobile polish — topbar, drawer, footer, tabs, notification dropdown Unifies the breakpoint system and fixes cross-layer CSS bugs that kept the old mobile hide rules from ever taking effect. Breakpoints: - Document canonical xs/sm/md/lg/xl/2xl scale in variables.base.css - Replace 968px one-offs with 1024px (app-details, app-page-editor) - Make details tab-panel max-width responsive (min(70ch, 100%)) Topbar (< md): - Hide breadcrumb in components layer so cross-layer overrides actually win - Dock search icon alongside right-column icons via flex layout - Add xs (400px) tightening for hit-area preservation - Hide brand divider alongside hidden brand name - Switch hover states to theme-aware --app-dropdown-hover-background-color Mobile drawer: - Icon-bar now vertical like desktop (was horizontal top strip, effectively invisible) - Sidebar shifted 52px right so icon-bar and sidebar slide in as one 280px unit - Add breathing room above first nav item (20px top padding) List tabs: - Rewrite .app-list-tabs to horizontal scroll with hidden scrollbar, snap, and mask-image gradient fades; add initListTabs to scroll active into view - Register as runtime component in app-init.js List toolbar: - Stack wide controls (multi-select, search/text inputs) full-width below sm, keep compact controls at natural width Footer: - New dedicated app-footer.css with mobile-first stacking, border-top separator, theme-aware hover; remove redundant rules from app-shell.css Notification dropdown: - Width with min(360px, 100vw - 2rem) and min-width: 0 override global details > ul rule; switch to position: fixed below md so it hugs the viewport right edge instead of the non-rightmost bell button Content spacing: - Add padding-block-start to .app-main-content on mobile (was 0) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-23 23:50:59 +02:00
/* xs only the "wide" controls stack full-width so they don't overflow the
grid; compact controls (page-size, small buttons) keep their natural width. */
@media (max-width: 576px) {
.app-list-toolbar {
width: 100%;
}
.app-list-toolbar > .multi-select,
.app-list-toolbar > label:has(input[type="search"]),
.app-list-toolbar > label:has(input[type="text"]),
.app-list-toolbar > .app-field:has(input[type="search"]),
.app-list-toolbar > .app-field:has(input[type="text"]),
.app-list-toolbar > .app-field:has(textarea) {
width: 100%;
}
.app-list-toolbar > .multi-select .multi-select-header {
width: 100%;
}
2026-04-24 21:53:14 +02:00
.app-list-toolbar > :is(.app-field, label):has(input[type="search"]) input,
.app-list-toolbar > :is(.app-field, label):has(input[type="text"]) input,
feat(responsive): mobile polish — topbar, drawer, footer, tabs, notification dropdown Unifies the breakpoint system and fixes cross-layer CSS bugs that kept the old mobile hide rules from ever taking effect. Breakpoints: - Document canonical xs/sm/md/lg/xl/2xl scale in variables.base.css - Replace 968px one-offs with 1024px (app-details, app-page-editor) - Make details tab-panel max-width responsive (min(70ch, 100%)) Topbar (< md): - Hide breadcrumb in components layer so cross-layer overrides actually win - Dock search icon alongside right-column icons via flex layout - Add xs (400px) tightening for hit-area preservation - Hide brand divider alongside hidden brand name - Switch hover states to theme-aware --app-dropdown-hover-background-color Mobile drawer: - Icon-bar now vertical like desktop (was horizontal top strip, effectively invisible) - Sidebar shifted 52px right so icon-bar and sidebar slide in as one 280px unit - Add breathing room above first nav item (20px top padding) List tabs: - Rewrite .app-list-tabs to horizontal scroll with hidden scrollbar, snap, and mask-image gradient fades; add initListTabs to scroll active into view - Register as runtime component in app-init.js List toolbar: - Stack wide controls (multi-select, search/text inputs) full-width below sm, keep compact controls at natural width Footer: - New dedicated app-footer.css with mobile-first stacking, border-top separator, theme-aware hover; remove redundant rules from app-shell.css Notification dropdown: - Width with min(360px, 100vw - 2rem) and min-width: 0 override global details > ul rule; switch to position: fixed below md so it hugs the viewport right edge instead of the non-rightmost bell button Content spacing: - Add padding-block-start to .app-main-content on mobile (was 0) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-23 23:50:59 +02:00
.app-list-toolbar > .app-field:has(textarea) textarea {
width: 100%;
}
}
}