diff options
| author | Pierre-Denis Vanduynslager <[email protected]> | 2016-12-28 19:57:38 -0500 |
|---|---|---|
| committer | Pierre-Denis Vanduynslager <[email protected]> | 2016-12-28 19:57:38 -0500 |
| commit | 425d156df27fa6c18e979aa000bfe5a346ee3450 (patch) | |
| tree | 4157dfcbdf8334e9d9fb2bb239f4ae78706bbc71 /docs/layout/responsive-utilities.md | |
| parent | ab2fc63d08b8c53d6f29bcfd73b7f2d5ceaacacd (diff) | |
| parent | e1e621be046a4541a2fd36e445015ee44de3c67e (diff) | |
| download | bootstrap-425d156df27fa6c18e979aa000bfe5a346ee3450.tar.xz bootstrap-425d156df27fa6c18e979aa000bfe5a346ee3450.zip | |
Merge branch 'twbs/v4-dev' into dropdown-keyboard
Diffstat (limited to 'docs/layout/responsive-utilities.md')
| -rw-r--r-- | docs/layout/responsive-utilities.md | 41 |
1 files changed, 28 insertions, 13 deletions
diff --git a/docs/layout/responsive-utilities.md b/docs/layout/responsive-utilities.md index 839aeeb24..69f6ae1be 100644 --- a/docs/layout/responsive-utilities.md +++ b/docs/layout/responsive-utilities.md @@ -1,6 +1,7 @@ --- layout: docs title: Responsive utilities +description: Use responsive display utility classes for showing and hiding content by device, via media query. group: layout --- @@ -8,6 +9,11 @@ For faster mobile-friendly development, use these utility classes for showing an Try to use these on a limited basis and avoid creating entirely different versions of the same site. Instead, use them to complement each device's presentation. +## Contents + +* Will be replaced with the ToC, excluding the "Contents" header +{:toc} + ## Available classes * The `.hidden-*-up` classes hide the element when the viewport is at the given breakpoint or wider. For example, `.hidden-md-up` hides an element on medium, large, and extra-large viewports. @@ -171,59 +177,68 @@ Resize your browser or load on different devices to test the responsive utility Green checkmarks indicate the element **is visible** in your current viewport. <div class="row responsive-utilities-test visible-on"> - <div class="col-xs-6 col-sm-3"> + <div class="col-6 col-sm-3"> <span class="hidden-sm-up visible">✔ Visible on extra small</span> <span class="hidden-xs-down not-visible">Extra small</span> </div> - <div class="col-xs-6 col-sm-3"> + <div class="col-6 col-sm-3"> <span class="hidden-md-up visible">✔ Visible on small or narrower</span> <span class="hidden-sm-down not-visible">Small or narrower</span> </div> - <div class="col-xs-6 col-sm-3"> + <div class="col-6 col-sm-3"> <span class="hidden-lg-up visible">✔ Visible on medium or narrower</span> <span class="hidden-md-down not-visible">Medium or narrower</span> </div> - <div class="col-xs-6 col-sm-3"> + <div class="col-6 col-sm-3"> <span class="hidden-xl-up visible">✔ Visible on large or narrower</span> <span class="hidden-lg-down not-visible">Large or narrower</span> </div> </div> + +<hr> + <div class="row responsive-utilities-test visible-on"> - <div class="col-xs-6 col-sm-3"> + <div class="col-6 col-sm-3"> <span class="hidden-xs-down visible">✔ Visible on small or wider</span> <span class="hidden-sm-up not-visible">Small or wider</span> </div> - <div class="col-xs-6 col-sm-3"> + <div class="col-6 col-sm-3"> <span class="hidden-sm-down visible">✔ Visible on medium or wider</span> <span class="hidden-md-up not-visible">Medium or wider</span> </div> - <div class="col-xs-6 col-sm-3"> + <div class="col-6 col-sm-3"> <span class="hidden-md-down visible">✔ Visible on large or wider</span> <span class="hidden-lg-up not-visible">Large or wider</span> </div> - <div class="col-xs-6 col-sm-3"> + <div class="col-6 col-sm-3"> <span class="hidden-lg-down visible">✔ Visible on extra large</span> <span class="hidden-xl-up not-visible">Extra large</span> </div> </div> + +<hr> + <div class="row responsive-utilities-test visible-on"> - <div class="col-xs-6 col-sm-3"> + <div class="col-6 col-sm-4"> <span class="hidden-sm-up visible">✔ Your viewport is exactly extra small</span> <span class="hidden-xs-down not-visible">Your viewport is NOT exactly extra small</span> </div> - <div class="col-xs-6 col-sm-3"> + <div class="col-6 col-sm-4"> <span class="hidden-xs-down hidden-md-up visible">✔ Your viewport is exactly small</span> <span class="hidden-sm-only not-visible">Your viewport is NOT exactly small</span> </div> - <div class="col-xs-6 col-sm-3"> + <div class="col-6 col-sm-4"> <span class="hidden-sm-down hidden-lg-up visible">✔ Your viewport is exactly medium</span> <span class="hidden-md-only not-visible">Your viewport is NOT exactly medium</span> </div> - <div class="col-xs-6 col-sm-3"> + </div> + +<div class="row responsive-utilities-test visible-on"> + <div class="col-6 col-sm-4"> <span class="hidden-md-down hidden-xl-up visible">✔ Your viewport is exactly large</span> <span class="hidden-lg-only not-visible">Your viewport is NOT exactly large</span> </div> - <div class="col-xs-6 col-sm-3"> + <div class="col-6 col-sm-4"> <span class="hidden-lg-down visible">✔ Your viewport is exactly extra large</span> <span class="hidden-xl-only not-visible">Your viewport is NOT exactly extra large</span> </div> |
