Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'site/docs/4.2/utilities/visibility.md')
-rw-r--r--site/docs/4.2/utilities/visibility.md33
1 files changed, 33 insertions, 0 deletions
diff --git a/site/docs/4.2/utilities/visibility.md b/site/docs/4.2/utilities/visibility.md
new file mode 100644
index 0000000000..cb02e1b88c
--- /dev/null
+++ b/site/docs/4.2/utilities/visibility.md
@@ -0,0 +1,33 @@
+---
+layout: docs
+title: Visibility
+description: Control the visibility, without modifying the display, of elements with visibility utilities.
+group: utilities
+---
+
+Set the `visibility` of elements with our visibility utilities. These utility classes do not modify the `display` value at all and do not affect layout – `.invisible` elements still take up space in the page. Content will be hidden both visually and for assistive technology/screen reader users.
+
+Apply `.visible` or `.invisible` as needed.
+
+{% highlight html %}
+<div class="visible">...</div>
+<div class="invisible">...</div>
+{% endhighlight %}
+
+{% highlight scss %}
+// Class
+.visible {
+ visibility: visible;
+}
+.invisible {
+ visibility: hidden;
+}
+
+// Usage as a mixin
+.element {
+ @include invisible(visible);
+}
+.element {
+ @include invisible(hidden);
+}
+{% endhighlight %}