From 2d1fa8cb5bdb61043b1abad5497ce2c74764106e Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 13 Oct 2013 18:54:15 -0700 Subject: [PATCH] mention .invisible in docs per #10102 --- css.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/css.html b/css.html index e0828c6ffe..653ede7cce 100644 --- a/css.html +++ b/css.html @@ -2357,7 +2357,8 @@ For example, <section> should be wrapped as inline.

Showing and hiding content

Force an element to be shown or hidden (including for screen readers) with the use of .show and .hidden classes. These classes use !important to avoid specificity conflicts, just like the quick floats. They are only available for block level toggling. They can also be used as mixins.

-

.hide is also available, but it does not always affect screen readers and is deprecated as of v3.0.1. Use .hidden or .sr-only instead.

+

.hide is available, but it does not always affect screen readers and is deprecated as of v3.0.1. Use .hidden or .sr-only instead.

+

Furthermore, .invisible can be used to toggle only the visibility of an element, meaning its display is not modified and the element can still affect the flow of the document.

{% highlight html %}
...
@@ -2371,6 +2372,9 @@ For example, <section> should be wrapped as inline. display: none !important; visibility: hidden !important; } +.invisible { + visibility: hidden; +} // Usage as mixins .element {