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

103 lines
2.4 KiB
CSS
Raw Normal View History

@layer components {
/*
* Breadcrumb navigation WAI-ARIA breadcrumb pattern with CSS-only separators.
*
* Self-contained: explicitly resets inherited shell nav/ol/li rules
* (app-shell.css lines 2844-2956) to avoid layout side-effects.
*/
.app-breadcrumb {
display: flex;
align-items: center;
margin: 0;
min-width: 0;
font-size: var(--text-xs);
line-height: var(--leading-tight);
}
.app-breadcrumb ol {
display: flex;
align-items: center;
flex-wrap: nowrap;
gap: 0.375rem;
list-style: none;
margin: 0;
padding: 0;
overflow: hidden;
min-width: 0;
}
.app-breadcrumb li {
display: flex;
align-items: center;
margin: 0;
padding: 0;
min-width: 0;
flex-shrink: 1;
}
.app-breadcrumb li:first-child,
.app-breadcrumb li:last-child {
flex-shrink: 0;
}
.app-breadcrumb li::before {
content: none;
}
.app-breadcrumb li + li::before {
content: "/";
color: var(--app-muted-color);
font-size: 0.75em; /* em-relative sizing — intentional */
margin-inline-end: 0.375rem;
pointer-events: none;
flex-shrink: 0;
}
2026-02-04 23:31:53 +01:00
.app-breadcrumb a,
.app-breadcrumb [aria-current="page"] {
display: inline-block;
max-width: 14ch;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
vertical-align: middle;
}
.app-breadcrumb a {
margin: 0;
padding: 0;
color: var(--app-muted-color);
2026-02-04 23:31:53 +01:00
text-decoration: none;
border-radius: var(--app-border-radius);
transition: color var(--app-transition);
}
.app-breadcrumb a:hover {
color: var(--app-primary-hover);
text-decoration: underline;
text-underline-offset: var(--app-text-underline-offset);
}
.app-breadcrumb a:focus-visible {
background: color-mix(in srgb, var(--app-contrast) 8%, transparent);
color: var(--app-contrast);
outline: var(--app-outline-width) solid var(--app-primary-focus);
outline-offset: 0.125rem;
}
.app-breadcrumb [aria-current="page"] {
color: var(--app-color);
font-weight: var(--font-medium);
pointer-events: none;
}
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
/* Breadcrumb is desktop-only chrome the hamburger drawer owns navigation
below md. Must live in the components layer to override .app-breadcrumb's
own display:flex (cross-layer specificity does not apply). */
@media (max-width: 767px) {
.app-breadcrumb {
display: none;
}
}
}