-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
2,556 additions
and
874 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
|
||
/*################################*\ | ||
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: | ||
// <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; // HACK fallback for logical prop | ||
@supports (max-inline-size: 1em) { | ||
max-width: unset; | ||
max-inline-size: 90em; | ||
} | ||
margin-left: auto; margin-right: auto; // HACK fallback for logical prop | ||
margin-inline: auto; | ||
} | ||
|
||
@media screen and (min-width: 30em) { .h-Constrain-sK { .h-Constrain; } } | ||
@media screen and (min-width: 45em) { .h-Constrain-sM { .h-Constrain; } } | ||
@media screen and (min-width: 60em) { .h-Constrain-sG { .h-Constrain; } } | ||
@media screen and (min-width: 75em) { .h-Constrain-sT { .h-Constrain; } } | ||
@media screen and (min-width: 90em) { .h-Constrain-sP { .h-Constrain; } } | ||
@media not all and (min-width: 30em) { .h-Constrain-nK { .h-Constrain; } } | ||
@media not all and (min-width: 45em) { .h-Constrain-nM { .h-Constrain; } } | ||
@media not all and (min-width: 60em) { .h-Constrain-nG { .h-Constrain; } } | ||
@media not all and (min-width: 75em) { .h-Constrain-nT { .h-Constrain; } } | ||
@media not all and (min-width: 90em) { .h-Constrain-nP { .h-Constrain; } } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
34b3188
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
xmeter v6.3.0