aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2014-01-26 19:15:31 -0800
committerMark Otto <[email protected]>2014-01-26 19:15:31 -0800
commit16fd8cd01e73a4370b4370e42b627554c0b6cbcd (patch)
tree1fc001b3d843f89464b99b290899008c0ac8936d
parent1a36e4fa1e9d9220a242d01062941a16ef07e660 (diff)
parent602e5f8f115b6625011e2e6c2d36c1d28715c4b9 (diff)
downloadbootstrap-16fd8cd01e73a4370b4370e42b627554c0b6cbcd.tar.xz
bootstrap-16fd8cd01e73a4370b4370e42b627554c0b6cbcd.zip
Merge pull request #12398 from twbs/deprecate-box-shadow-mixin
mark .box-shadow() mixin as deprecated
-rw-r--r--docs/css.html3
-rw-r--r--less/mixins.less4
2 files changed, 6 insertions, 1 deletions
diff --git a/docs/css.html b/docs/css.html
index dea8f5203..3b2cdf813 100644
--- a/docs/css.html
+++ b/docs/css.html
@@ -2989,7 +2989,8 @@ a {
{% endhighlight %}
<h3 id="less-mixins-box-shadow">Box (Drop) shadows</h3>
- <p>If your target audience is using the latest and greatest browsers and devices, be sure to just use the <code>box-shadow</code> property on its own. If you need support for older Android (pre-v4) and iOS devices (pre-iOS 5), use the mixin to pick up the required <code>-webkit</code> prefix.</p>
+ <p>If your target audience is using the latest and greatest browsers and devices, be sure to just use the <code>box-shadow</code> property on its own. If you need support for older Android (pre-v4) and iOS devices (pre-iOS 5), use the <strong>deprecated</strong> mixin to pick up the required <code>-webkit</code> prefix.</p>
+ <p>The mixin is <strong>deprecated</strong> as of v3.1.0, since Bootstrap doesn't officially support the outdated platforms that don't support the standard property. To preserve backwards-compatibility, Bootstrap will continue to use the mixin internally until Bootstrap v4.</p>
<p>Be sure to use <code>rgba()</code> colors in your box shadows so they blend as seamlessly as possible with backgrounds.</p>
{% highlight css %}
.box-shadow(@shadow: 0 1px 3px rgba(0,0,0,.25)) {
diff --git a/less/mixins.less b/less/mixins.less
index 104590730..85a41ef50 100644
--- a/less/mixins.less
+++ b/less/mixins.less
@@ -115,6 +115,10 @@
}
// Drop shadows
+//
+// Note: Deprecated `.box-shadow()` as of v3.1.0 since all of Bootstrap's
+// supported browsers that have box shadow capabilities now support the
+// standard `box-shadow` property.
.box-shadow(@shadow) {
-webkit-box-shadow: @shadow; // iOS <4.3 & Android <4.1
box-shadow: @shadow;