Foundation
Layout
CSS classes that implement the Material Design 3 layout guidelines: a window with safe margins, a rail region for navigation, and a pane area divided into one to three panes that stack or hide at the Material breakpoints.
- Fixed & flexible panes
- Split-pane layout
- Adaptive breakpoints
Window
Add micl-window to the <body>, put the navigation in the rail region and the content in a <main class="micl-panes">. The frame below is a window of its own, so its panes respond to the frame's width.
Resize the browser to see the panes stack and hide: open the window demo.
Panes
A micl-pane is flexible and adapts to its content; micl-pane--fixed is 360px wide at the expanded breakpoint and 412px from the large breakpoint, and sized by its content below that.
Fixed and flexible
Fixed pane
Flexible pane
Flexible panes shared evenly
One
Two, with a little more content
Columns within a pane
Divide a pane with micl-pane__columns and micl-pane__column. A column grows by default; micl-pane__column--fixed keeps the width of its content.
Fixed
Growing column
Cards are spaced by --md-sys-card-margin
Adaptive panes
These classes follow the window's width, not the width of their container, so try them in the window demo. micl-panes--split makes two flexible panes meet at the horizontal centre of the window, keeping the spacer over a foldable's hinge.
micl-panes--stacked-to-medium,-expanded,-large,-extralarge: stack the panes below that breakpointmicl-pane--hidden-to-medium,-expanded,-large,-extralarge: hide a pane below that breakpointmicl-pane__columns--stacked-to-medium,-expanded,-large,-extralarge: stack columns below that breakpoint
Theming
Wider spacer and card margin
48px between panes
16px between cards
Second pane