diff --git a/resources/views/showcase/sections/layout.blade.php b/resources/views/showcase/sections/layout.blade.php new file mode 100644 index 00000000..ae42928b --- /dev/null +++ b/resources/views/showcase/sections/layout.blade.php @@ -0,0 +1,105 @@ +{{-- M3's window size classes, live: the one this window is in, what each one changes, and the + variants that key on them. The five cards light up through the variants themselves, so the + page proves the compiled breakpoints rather than describing them. --}} + +
+

Layout

+ +

+ Widths are M3's window size classes and nothing else: compact below 600px, then medium: 600, + expanded: 840, large: 1200 and extra-large: 1600, with + max-medium: and friends for "below". Tailwind's sm:2xl: compile to + nothing. Scripts read the same numbers from resources/js/breakpoints.js. +

+ +
+ This window + + +
+ +
+
+

Compact

+

below 600px

+
+
+

Medium

+

600–839px

+
+
+

Expanded

+

840–1199px

+
+
+

Large

+

1200–1599px

+
+
+

Extra-large

+

from 1600px

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ClassNavigationPanesDialogs and sheetsMargin
CompactNavigation bar; the rail opens as a modalOneFull-screen dialogs, bottom sheets for choices, date pickers as dialogs16px
MediumCollapsed navigation railOneBasic dialogs, docked search and pickers24px
ExpandedNavigation rail, collapsible; starts collapsedTwo: list-detail (<x-drawer pane>) or a 360px supporting paneBasic dialogs, side sheets24px
LargeNavigation rail, expanded by defaultTwo; a fixed pane is 412pxBasic dialogs, side sheets24px
Extra-largeNavigation rail, expandedTwo, a third as a side sheetBasic dialogs, side sheets24px
+
+ +

+ <x-app-shell> does all of this: resize this showcase and watch the bar, the rail and the + content margin (--material-margin) change at 600, 840 and 1200px. A visitor who has chosen a rail + width keeps it; until then the rail follows the class. +

+
diff --git a/src/Showcase/Sections.php b/src/Showcase/Sections.php index 19a3c47c..ece59f34 100644 --- a/src/Showcase/Sections.php +++ b/src/Showcase/Sections.php @@ -87,6 +87,7 @@ class Sections 'shape' => ['title' => 'Shape', 'icon' => 'interests', 'group' => 'Foundations', 'description' => 'Corner radii and the 35 M3 Expressive shapes.'], 'elevation' => ['title' => 'Elevation', 'icon' => 'layers', 'group' => 'Foundations', 'description' => 'Shadows for what floats over content.'], 'motion' => ['title' => 'Motion', 'icon' => 'animation', 'group' => 'Foundations', 'description' => 'Spatial springs and effects easings.'], + 'layout' => ['title' => 'Layout', 'icon' => 'devices', 'group' => 'Foundations', 'description' => 'M3\'s window size classes, what changes at each, and the app shell\'s response.'], 'icons' => ['title' => 'Icons', 'icon' => 'emoji_symbols', 'group' => 'Foundations', 'description' => 'Every Material Symbol, searchable, outlined and filled.'], 'buttons' => ['title' => 'Buttons', 'icon' => 'smart_button', 'group' => 'Actions', 'description' => 'Buttons, icon buttons, groups, split buttons and FABs.'], 'menus' => ['title' => 'Menus', 'icon' => 'menu_open', 'group' => 'Actions', 'description' => 'Menus with items, groups, choices and shortcuts.'],