aboutsummaryrefslogtreecommitdiff
path: root/docs/4.1/utilities/visibility.md
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2018-04-09 09:00:23 -0700
committerGitHub <[email protected]>2018-04-09 09:00:23 -0700
commit8f7bd419935adfcd53c471a0202083464800619e (patch)
treed0e6ab018a0f41b59a1206cf72ffc79a474e69b9 /docs/4.1/utilities/visibility.md
parent91730a644f107ca80a747a6f7f0c173eca5708fa (diff)
downloadbootstrap-4.1.0.tar.xz
bootstrap-4.1.0.zip
Ship v4.1.0 (#26218)v4.1.0
* update docs path from docs/4.0/ to docs/4.1/ * bump version to 4.1.0 * Update redirects to work for 4.1 docs move * Update docs version switcher to include latest and link to 4.0 docs * re-run dist * Update package-lock.json * Update docs-navbar.html
Diffstat (limited to 'docs/4.1/utilities/visibility.md')
-rw-r--r--docs/4.1/utilities/visibility.md33
1 files changed, 33 insertions, 0 deletions
diff --git a/docs/4.1/utilities/visibility.md b/docs/4.1/utilities/visibility.md
new file mode 100644
index 000000000..9e127139f
--- /dev/null
+++ b/docs/4.1/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 do not modify the `display` value at all and are helpful for hiding content from most users, but still keeping them for screen readers.
+
+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 %}