1
0
Files
breadcrumb-the-shire/web/css/components/app-breadcrumb.css
fs b749b5d192 feat: centralize breadcrumbs in topbar and remove history navigation
Move breadcrumb rendering from individual page templates into the core
topbar. Each page now sets $breadcrumbs in its action .php file; the
topbar renders it automatically via the shared partial.

- Remove global back/forward buttons and app-nav-history.js component
- Remove Alt+Arrow keyboard shortcuts for history navigation
- Render breadcrumb in topbar-left section (replaces button area)
- Clean up breadcrumb CSS: context-neutral base (flex, no margin)
- Recalculate sticky titlebar offset in details container
- Migrate all 41 pages (core + helpdesk, audit, addressbook, api-docs)
- Add missing breadcrumbs to addressbook detail view
- Update architecture contract tests (nav-history references removed)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-05 17:17:06 +02:00

74 lines
1.7 KiB
CSS

@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;
font-size: var(--text-xs);
line-height: var(--leading-tight);
}
.app-breadcrumb ol {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 0.375rem;
list-style: none;
margin: 0;
padding: 0;
}
.app-breadcrumb li {
display: flex;
align-items: center;
margin: 0;
padding: 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;
}
.app-breadcrumb a {
display: inline;
margin: 0;
padding: 0;
color: var(--app-muted-color);
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;
}
}