mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
Copy edits, fix classes for demo, add subnav links
This commit is contained in:
parent
3260288df8
commit
5639287d5d
2 changed files with 30 additions and 14 deletions
|
@ -71,6 +71,17 @@
|
||||||
<li><a href="#buttons-tags">Button tags</a></li>
|
<li><a href="#buttons-tags">Button tags</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#images">Images</a></li>
|
<li>
|
||||||
<li><a href="#helper-classes">Helper classes</a></li>
|
<a href="#images">Images</a>
|
||||||
<li><a href="#responsive-utilities">Responsive utilities</a></li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="#helper-classes">Helper classes</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="#responsive-utilities">Responsive utilities</a>
|
||||||
|
<ul class="nav">
|
||||||
|
<li><a href="#responsive-utilities-classes">Available classes</a></li>
|
||||||
|
<li><a href="#responsive-utilities-print">Print classes</a></li>
|
||||||
|
<li><a href="#responsive-utilities-tests">Test cases</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
21
css.html
21
css.html
|
@ -2216,8 +2216,11 @@ For example, <code><section></code> should be wrapped as inline.
|
||||||
<h1>Responsive utilities</h1>
|
<h1>Responsive utilities</h1>
|
||||||
</div>
|
</div>
|
||||||
<p class="lead">For faster mobile-friendly development, use these utility classes for showing and hiding content by device via media query. Also included are utility classes for toggling content when printed.</p>
|
<p class="lead">For faster mobile-friendly development, use these utility classes for showing and hiding content by device via media query. Also included are utility classes for toggling content when printed.</p>
|
||||||
|
<p>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. <strong>Responsive utilities are currently only available for block and table toggling.</strong> Use with inline and table elements is currently not supported.</p>
|
||||||
|
|
||||||
<h3>Responsive classes</h3>
|
|
||||||
|
<h2 id="responsive-utilities-classes">Available classes</h2>
|
||||||
|
<p>Use a single or combination of the available classes for toggling content across viewport breakpoints.</p>
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table table-bordered table-striped responsive-utilities">
|
<table class="table table-bordered table-striped responsive-utilities">
|
||||||
<thead>
|
<thead>
|
||||||
|
@ -2304,7 +2307,9 @@ For example, <code><section></code> should be wrapped as inline.
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h3>Print classes</h3>
|
|
||||||
|
<h2 id="responsive-utilities-print">Print classes</h2>
|
||||||
|
<p>Similar to the regular responsive classes, use these for toggling content for print.</p>
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table table-bordered table-striped responsive-utilities">
|
<table class="table table-bordered table-striped responsive-utilities">
|
||||||
<thead>
|
<thead>
|
||||||
|
@ -2329,12 +2334,11 @@ For example, <code><section></code> should be wrapped as inline.
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h3>When to use</h3>
|
|
||||||
<p>Use on a limited basis and avoid creating entirely different versions of the same site. Instead, use them to complement each device's presentation. Responsive utilities are currently only available for block-level toggling, meaning <code>display: none;</code> or <code>display: block;</code>. Use with inline and table elements is currently not supported.</p>
|
|
||||||
|
|
||||||
<h3>Test case</h3>
|
<h2 id="responsive-utilities-tests">Test cases</h2>
|
||||||
<p>Resize your browser or load on different devices to test the responsive utility classes.</p>
|
<p>Resize your browser or load on different devices to test the responsive utility classes.</p>
|
||||||
<h4>Visible on...</h4>
|
|
||||||
|
<h3>Visible on...</h3>
|
||||||
<p>Green checkmarks indicate the element <strong>is visible</strong> in your current viewport.</p>
|
<p>Green checkmarks indicate the element <strong>is visible</strong> in your current viewport.</p>
|
||||||
<div class="row responsive-utilities-test visible-on">
|
<div class="row responsive-utilities-test visible-on">
|
||||||
<div class="col-xs-6 col-sm-3">
|
<div class="col-xs-6 col-sm-3">
|
||||||
|
@ -2355,7 +2359,7 @@ For example, <code><section></code> should be wrapped as inline.
|
||||||
<span class="visible-lg">✔ Visible on large</span>
|
<span class="visible-lg">✔ Visible on large</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row responsive-utilities-test hidden-on">
|
<div class="row responsive-utilities-test visible-on">
|
||||||
<div class="col-xs-6 col-sm-6">
|
<div class="col-xs-6 col-sm-6">
|
||||||
<span class="hidden-xs hidden-sm">Extra small and small</span>
|
<span class="hidden-xs hidden-sm">Extra small and small</span>
|
||||||
<span class="visible-xs visible-sm">✔ Visible on x-small and small</span>
|
<span class="visible-xs visible-sm">✔ Visible on x-small and small</span>
|
||||||
|
@ -2383,7 +2387,8 @@ For example, <code><section></code> should be wrapped as inline.
|
||||||
<span class="visible-sm visible-md">✔ Visible on small and medium</span>
|
<span class="visible-sm visible-md">✔ Visible on small and medium</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<h4>Hidden on...</h4>
|
|
||||||
|
<h3>Hidden on...</h3>
|
||||||
<p>Here, green checkmarks indicate the element <strong>is hidden</strong> in your current viewport.</p>
|
<p>Here, green checkmarks indicate the element <strong>is hidden</strong> in your current viewport.</p>
|
||||||
<div class="row responsive-utilities-test hidden-on">
|
<div class="row responsive-utilities-test hidden-on">
|
||||||
<div class="col-xs-6 col-sm-3">
|
<div class="col-xs-6 col-sm-3">
|
||||||
|
|
Loading…
Reference in a new issue