aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2014-07-09 13:54:32 -0700
committerMark Otto <[email protected]>2014-07-09 13:54:32 -0700
commit02fe0ecc3169dd4c8ca9ac824a84527c1ef74012 (patch)
tree54997ac4e8d6ba70829ee45b67c90701a8425d90 /less
parenta0d8c62f184f6615b9fcdc1a7c57f2eda208aece (diff)
downloadbootstrap-02fe0ecc3169dd4c8ca9ac824a84527c1ef74012.tar.xz
bootstrap-02fe0ecc3169dd4c8ca9ac824a84527c1ef74012.zip
Drop deprecated code from Less files
Diffstat (limited to 'less')
-rw-r--r--less/alerts.less1
-rw-r--r--less/mixins/hide-text.less15
-rw-r--r--less/navs.less9
-rw-r--r--less/type.less15
-rw-r--r--less/utilities.less4
5 files changed, 4 insertions, 40 deletions
diff --git a/less/alerts.less b/less/alerts.less
index 3ee4d5556..f7e911dc0 100644
--- a/less/alerts.less
+++ b/less/alerts.less
@@ -37,7 +37,6 @@
//
// Expand the right padding and account for the close button's positioning.
-.alert-dismissable, // The misspelled .alert-dismissable was deprecated in 3.2.0.
.alert-dismissible {
padding-right: (@alert-padding + 20);
diff --git a/less/mixins/hide-text.less b/less/mixins/hide-text.less
index c2315e572..243d705cf 100644
--- a/less/mixins/hide-text.less
+++ b/less/mixins/hide-text.less
@@ -1,21 +1,8 @@
// CSS image replacement
-//
-// Heads up! v3 launched with with only `.hide-text()`, but per our pattern for
-// mixins being reused as classes with the same name, this doesn't hold up. As
-// of v3.0.1 we have added `.text-hide()` and deprecated `.hide-text()`.
-//
-// Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757
-
-// Deprecated as of v3.0.1 (will be removed in v4)
-.hide-text() {
+.text-hide() {
font: ~"0/0" a;
color: transparent;
text-shadow: none;
background-color: transparent;
border: 0;
}
-
-// New mixin to use as of v3.0.1
-.text-hide() {
- .hide-text();
-}
diff --git a/less/navs.less b/less/navs.less
index 5b64cc48c..1db5892b0 100644
--- a/less/navs.less
+++ b/less/navs.less
@@ -106,15 +106,6 @@
border-color: @link-color;
}
}
-
- // Nav dividers (deprecated with v3.0.1)
- //
- // This should have been removed in v3 with the dropping of `.nav-list`, but
- // we missed it. We don't currently support this anywhere, but in the interest
- // of maintaining backward compatibility in case you use it, it's deprecated.
- .nav-divider {
- .nav-divider();
- }
}
diff --git a/less/type.less b/less/type.less
index 246916d8c..bc4be377c 100644
--- a/less/type.less
+++ b/less/type.less
@@ -251,11 +251,7 @@ blockquote {
}
}
- // Note: Deprecated small and .small as of v3.1.0
- // Context: https://github.com/twbs/bootstrap/issues/11660
- footer,
- small,
- .small {
+ footer {
display: block;
font-size: 80%; // back to default font-size
line-height: @line-height-base;
@@ -268,10 +264,7 @@ blockquote {
}
// Opposite alignment of blockquote
-//
-// Heads up: `blockquote.pull-right` has been deprecated as of v3.1.0.
-.blockquote-reverse,
-blockquote.pull-right {
+.blockquote-reverse {
padding-right: 15px;
padding-left: 0;
border-right: 5px solid @blockquote-border-color;
@@ -279,9 +272,7 @@ blockquote.pull-right {
text-align: right;
// Account for citation
- footer,
- small,
- .small {
+ footer {
&:before { content: ''; }
&:after {
content: '\00A0 \2014'; // nbsp, em dash
diff --git a/less/utilities.less b/less/utilities.less
index 0ca3c85b7..083446c98 100644
--- a/less/utilities.less
+++ b/less/utilities.less
@@ -23,10 +23,6 @@
// Toggling content
// -------------------------
-// Note: Deprecated .hide in favor of .hidden or .sr-only (as appropriate) in v3.0.1
-.hide {
- display: none !important;
-}
.show {
display: block !important;
}