]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
mention .invisible in docs per #10102
authorMark Otto <otto@github.com>
Mon, 14 Oct 2013 01:54:15 +0000 (18:54 -0700)
committerMark Otto <otto@github.com>
Mon, 14 Oct 2013 01:54:15 +0000 (18:54 -0700)
css.html

index e0828c6ffe29762563d0de828e899f57682bac40..653ede7ccea3632bb42b21bc08dde7a7dbd548b0 100644 (file)
--- a/css.html
+++ b/css.html
@@ -2357,7 +2357,8 @@ For example, <code>&lt;section&gt;</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>&lt;section&gt;</code> should be wrapped as inline.
   display: none !important;
   visibility: hidden !important;
 }
+.invisible {
+  visibility: hidden;
+}
 
 // Usage as mixins
 .element {