UNPKG

xmeter

Version:

A default stylesheet with a set of tools that make designing with vertical rhythm easy.

38 lines (34 loc) 1.15 kB
/*################################*\ xmeter | _h-Constrain.less \*################################*/ // Constrain // // The Constrain Helper limits an element’s maximum inline-size // (width, in horizontal writing modes), ensuring body content does not expand infinitely. // It is very similar to the `.h-Measure` Helper, but it is meant for large containers, // not for individual elements of prose (such as a paragraph or list). // <header><dl> // <dt>author</dt> <dd>Chris Harvey</dd> // <dt>updated</dt> <dd><time>2018-01-31</time></dd> // </dl></header> // // Markup: // <!--link rel="stylesheet" href="/node_modules/xmeter/css/dist/h-Constrain.css"/--> // <div class="h-Constrain"> // <h1>content heading</h1> // <p>This object is constrained to a maximum width. Expand // your browser window (or zoom out) to see the effect.</p> // </div> // // Weight: 5.1 // // Styleguide Helpers.Constrain .h-Constrain { max-width: 90em; // COMBAK{FALLBACK} @supports (max-inline-size: 1em) { max-width: unset; max-inline-size: 90em; } margin-left: auto; margin-right: auto; // COMBAK{FALLBACK} margin-inline: auto; }