aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2015-11-12 19:15:54 -0800
committerChris Rebert <[email protected]>2015-11-12 19:15:54 -0800
commitbe5e223177004c2072e8beedf00963adf9ced2db (patch)
tree0b3c34cb383315c0240d86071b2c638b37ecf741
parentfcbf49ae0ac39f4444d782103e191252b3a41d18 (diff)
downloadbootstrap-be5e223177004c2072e8beedf00963adf9ced2db.tar.xz
bootstrap-be5e223177004c2072e8beedf00963adf9ced2db.zip
Move `[hidden]` style from _utilities.scss to _reboot.scss; fixes #18230
[skip sauce]
-rw-r--r--docs/components/utilities.md16
-rw-r--r--docs/content/reboot.md16
-rw-r--r--scss/_reboot.scss5
-rw-r--r--scss/_utilities.scss5
4 files changed, 21 insertions, 21 deletions
diff --git a/docs/components/utilities.md b/docs/components/utilities.md
index 887cc32d4..788f1a3c8 100644
--- a/docs/components/utilities.md
+++ b/docs/components/utilities.md
@@ -318,19 +318,3 @@ Aspect ratios can be customized with modifier classes.
<iframe class="embed-responsive-item" src="..."></iframe>
</div>
{% endhighlight %}
-
-## HTML5 `[hidden]` attribute
-
-HTML5 adds [a new global attribute named `[hidden]`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/hidden), which is styled as `display: none` by default. Borrowing an idea from [PureCSS](http://purecss.io), we improve upon this default by making `[hidden] { display: none !important; }` to help prevent its `display` from getting accidentally overridden. While `[hidden]` isn't natively supported by IE9-10, the explicit declaration in our CSS gets around that problem.
-
-{% highlight html %}
-<input type="text" hidden>
-{% endhighlight %}
-
-{% callout warning %}
-#### jQuery incompatibility
-
-`[hidden]` is not compatible with jQuery's `$(...).hide()` and `$(...).show()` methods. This could potentially change in jQuery 3, but we're not holding our breath. Therefore, we don't currently especially endorse `[hidden]` over other techniques for managing the `display` of elements.
-{% endcallout %}
-
-To merely toggle the visibility of an element, meaning its `display` is not modified and the element can still affect the flow of the document, use [the `.invisible` class](#invisible-content) instead.
diff --git a/docs/content/reboot.md b/docs/content/reboot.md
index 933df0e64..fc708554e 100644
--- a/docs/content/reboot.md
+++ b/docs/content/reboot.md
@@ -285,3 +285,19 @@ The `<abbr>` element receives basic styling to make it stand out amongst paragra
<div class="bd-example">
Nulla <abbr title="attribute">attr</abbr> vitae elit libero, a pharetra augue.
</div>
+
+## HTML5 `[hidden]` attribute
+
+HTML5 adds [a new global attribute named `[hidden]`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/hidden), which is styled as `display: none` by default. Borrowing an idea from [PureCSS](http://purecss.io), we improve upon this default by making `[hidden] { display: none !important; }` to help prevent its `display` from getting accidentally overridden. While `[hidden]` isn't natively supported by IE9-10, the explicit declaration in our CSS gets around that problem.
+
+{% highlight html %}
+<input type="text" hidden>
+{% endhighlight %}
+
+{% callout warning %}
+#### jQuery incompatibility
+
+`[hidden]` is not compatible with jQuery's `$(...).hide()` and `$(...).show()` methods. This could potentially change in jQuery 3, but we're not holding our breath. Therefore, we don't currently especially endorse `[hidden]` over other techniques for managing the `display` of elements.
+{% endcallout %}
+
+To merely toggle the visibility of an element, meaning its `display` is not modified and the element can still affect the flow of the document, use [the `.invisible` class]({{ site.baseurl }}/components/utilities/#invisible-content) instead.
diff --git a/scss/_reboot.scss b/scss/_reboot.scss
index 0da7e5ea6..8a8609dd8 100644
--- a/scss/_reboot.scss
+++ b/scss/_reboot.scss
@@ -298,3 +298,8 @@ output {
// line-height: $line-height;
// color: $input-color;
}
+
+// Always hide an element with the `hidden` HTML attribute (from PureCSS).
+[hidden] {
+ display: none !important;
+}
diff --git a/scss/_utilities.scss b/scss/_utilities.scss
index dd32a847b..521d2f987 100644
--- a/scss/_utilities.scss
+++ b/scss/_utilities.scss
@@ -31,11 +31,6 @@
@include sr-only-focusable();
}
-// Always hide an element with the `hidden` HTML attribute (from PureCSS).
-[hidden] {
- display: none !important;
-}
-
.invisible {
visibility: hidden !important;
}