Rewrite the showcase's Navigation section without Tailwind
Plan step 38 (last batch): the navigation-bar and navigation-rail demos' bounded frames become data-md-showcase-nav-demo (`bar`, `bar-wide` inside its own data-md-showcase-nav-scroll wrapper, `rail`, `rail-wide`), the "the page" filler is data-md-showcase-nav-page and the content pane beside a rail data-md-showcase-nav-content; a group of demos moves onto <x-row>/<x-stack> with inline max-width styles for the two arbitrary demo widths (400px, 800px) Tailwind's arbitrary values gave them. The "Open the scaffold" link's md-link/md-ink-primary classes match bars.blade.php's. Every #navigation id, aria-label and visible label the Chromium NavigationTest (against its own probes and /material/shell) relies on is unchanged. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qwx5USif3wFFmxtHg5U1g9
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
7b7e7279f5
commit
a62800e8ff
@@ -508,6 +508,65 @@
|
||||
[data-md-showcase-tabs-narrow] {
|
||||
max-width: 384px;
|
||||
}
|
||||
|
||||
/* Navigation: a bounded frame around one navigation-bar or navigation-rail demo. `bar` and
|
||||
`bar-wide` stack the bar under a "the page" filler the way a scaffold does; `bar-wide` drops
|
||||
its own edge because its horizontal-scroll wrapper (`data-md-showcase-nav-scroll`) already
|
||||
draws one, and is wide enough (600px) that a bar showing icon beside label never wraps.
|
||||
`rail` and `rail-wide` sit the rail beside a content pane the way a scaffold does; `rail-wide`
|
||||
is full width, for the two examples with real body text beside the rail. */
|
||||
[data-md-showcase-nav-demo='bar'] {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 224px;
|
||||
overflow: hidden;
|
||||
border-radius: var(--md-sys-shape-corner-lg);
|
||||
border: 1px solid var(--md-sys-color-outline-variant);
|
||||
background-color: var(--md-sys-color-surface);
|
||||
}
|
||||
|
||||
[data-md-showcase-nav-demo='bar-wide'] {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 224px;
|
||||
min-width: 600px;
|
||||
background-color: var(--md-sys-color-surface);
|
||||
}
|
||||
|
||||
[data-md-showcase-nav-demo='rail'] {
|
||||
display: flex;
|
||||
height: 576px;
|
||||
overflow: hidden;
|
||||
border-radius: var(--md-sys-shape-corner-lg);
|
||||
border: 1px solid var(--md-sys-color-outline-variant);
|
||||
}
|
||||
|
||||
[data-md-showcase-nav-demo='rail-wide'] {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
height: 480px;
|
||||
overflow: hidden;
|
||||
border-radius: var(--md-sys-shape-corner-lg);
|
||||
border: 1px solid var(--md-sys-color-outline-variant);
|
||||
}
|
||||
|
||||
[data-md-showcase-nav-scroll] {
|
||||
overflow-x: auto;
|
||||
border-radius: var(--md-sys-shape-corner-lg);
|
||||
border: 1px solid var(--md-sys-color-outline-variant);
|
||||
}
|
||||
|
||||
[data-md-showcase-nav-page] {
|
||||
flex: 1 1 auto;
|
||||
padding: var(--md-sys-measurement-space200);
|
||||
}
|
||||
|
||||
[data-md-showcase-nav-content] {
|
||||
flex: 1 1 auto;
|
||||
min-width: 0;
|
||||
background-color: var(--md-sys-color-surface-container-low);
|
||||
padding: var(--md-sys-measurement-space300);
|
||||
}
|
||||
}
|
||||
|
||||
/* A handful of call sites (<x-input>, <x-datepicker>, <x-slider>) forward only `class` and
|
||||
|
||||
Reference in New Issue
Block a user