Rewrite the showcase's App bars and tabs section without Tailwind
Plan step 38 (last batch): the app-bar/toolbar row becomes <x-stack>/ <x-row>, each bordered demo box a data-md-showcase-bar-frame hook (`visible` for the search bar, whose docked suggestions must not clip; `rounded` for the large-screen docked toolbar, which only gains its edge and padding from `expanded`, 840px), and the search bar's own avatar reuses the existing data-md-showcase-avatar hook. The scrollable-tabs demo's forced-narrow box is data-md-showcase-tabs-narrow, and the "Open the scaffold" link uses the shared md-link/md-ink-primary classes in place of the old Tailwind-era link/text-primary utilities. Every #bars id and visible label/tooltip the Chromium BarsTest (against its own probes) and the search index rely 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
295673554e
commit
7b7e7279f5
@@ -476,6 +476,38 @@
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/* Bars: a bordered frame around one app-bar or docked-toolbar demo, matching the rounding a
|
||||
real scaffold would clip its bar to. `visible` lets the search bar's docked suggestions
|
||||
overflow it instead of clipping; `rounded` is the large-screen docked toolbar, which has no
|
||||
edge of its own and only gains its padding from `expanded` (840px), M3's own condition for
|
||||
the rounded (rather than square) docked toolbar. */
|
||||
[data-md-showcase-bar-frame] {
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
border-radius: var(--md-sys-shape-corner-lg);
|
||||
border: 1px solid var(--md-sys-color-outline-variant);
|
||||
}
|
||||
|
||||
[data-md-showcase-bar-frame='visible'] {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
[data-md-showcase-bar-frame='rounded'] {
|
||||
border: 0;
|
||||
background-color: var(--md-sys-color-surface);
|
||||
}
|
||||
|
||||
@media (width >= 840px) {
|
||||
[data-md-showcase-bar-frame='rounded'] {
|
||||
padding: var(--md-sys-measurement-space200);
|
||||
}
|
||||
}
|
||||
|
||||
/* Bars: the scrollable-tabs demo needs a width narrow enough to force its own scroll. */
|
||||
[data-md-showcase-tabs-narrow] {
|
||||
max-width: 384px;
|
||||
}
|
||||
}
|
||||
|
||||
/* A handful of call sites (<x-input>, <x-datepicker>, <x-slider>) forward only `class` and
|
||||
|
||||
Reference in New Issue
Block a user