diff options
| author | Mark Otto <[email protected]> | 2013-10-13 18:59:40 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-10-13 18:59:40 -0700 |
| commit | bf73f1f9d3ccb4e3753066b2d697e99b94a0f155 (patch) | |
| tree | fa33f487db14527a2cb69e73ef59ef181ec58584 /css.html | |
| parent | 265fda7903e189ee0d2d7201cc92bf384fc53043 (diff) | |
| parent | 6351c30782a87fe03d5c27e75f2287cc657ba06d (diff) | |
| download | bootstrap-bf73f1f9d3ccb4e3753066b2d697e99b94a0f155.tar.xz bootstrap-bf73f1f9d3ccb4e3753066b2d697e99b94a0f155.zip | |
Merge branch 'master' into restore_grid_mixins
Conflicts:
dist/css/bootstrap.min.css
Diffstat (limited to 'css.html')
| -rw-r--r-- | css.html | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -2357,7 +2357,8 @@ For example, <code><section></code> should be wrapped as inline. <h3 id="helper-classes-show-hide">Showing and hiding content</h3> <p>Force an element to be shown or hidden (<strong>including for screen readers</strong>) with the use of <code>.show</code> and <code>.hidden</code> classes. These classes use <code>!important</code> to avoid specificity conflicts, just like the <a href="../css/#helper-classes-floats">quick floats</a>. They are only available for block level toggling. They can also be used as mixins.</p> - <p><code>.hide</code> is also available, but it does not always affect screen readers and is <strong>deprecated</strong> as of v3.0.1. Use <code>.hidden</code> or <code>.sr-only</code> instead.</p> + <p><code>.hide</code> is available, but it does not always affect screen readers and is <strong>deprecated</strong> as of v3.0.1. Use <code>.hidden</code> or <code>.sr-only</code> instead.</p> + <p>Furthermore, <code>.invisible</code> can be used to toggle only the visibility of an element, meaning its <code>display</code> is not modified and the element can still affect the flow of the document.</p> {% highlight html %} <div class="show">...</div> <div class="hidden">...</div> @@ -2371,6 +2372,9 @@ For example, <code><section></code> should be wrapped as inline. display: none !important; visibility: hidden !important; } +.invisible { + visibility: hidden; +} // Usage as mixins .element { |
