From: Mark Otto Date: Mon, 12 Mar 2012 04:12:59 +0000 (-0700) Subject: remove text indent on carets (not needed) and add inline replacement mixin X-Git-Tag: v2.0.2~27 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c8f4325c192f97e9c8d09e7d8ad3059be694fc4c;p=thirdparty%2Fbootstrap.git remove text indent on carets (not needed) and add inline replacement mixin --- diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip index be630ee801..6ef4b19101 100644 Binary files a/docs/assets/bootstrap.zip and b/docs/assets/bootstrap.zip differ diff --git a/docs/assets/css/bootstrap-responsive.css b/docs/assets/css/bootstrap-responsive.css index 48bb004edf..14df20d4a5 100644 --- a/docs/assets/css/bootstrap-responsive.css +++ b/docs/assets/css/bootstrap-responsive.css @@ -18,6 +18,11 @@ .clearfix:after { clear: both; } +.hide-text { + overflow: hidden; + text-indent: 100%; + white-space: nowrap; +} .hidden { display: none; visibility: hidden; diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index 1834e15eb0..65b63118c9 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -112,6 +112,11 @@ textarea { .clearfix:after { clear: both; } +.hide-text { + overflow: hidden; + text-indent: 100%; + white-space: nowrap; +} body { margin: 0; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; @@ -1930,6 +1935,10 @@ table .span24 { } .btn { display: inline-block; + *display: inline; + /* IE7 inline-block hack */ + + *zoom: 1; padding: 4px 10px 4px; margin-bottom: 0; font-size: 13px; diff --git a/less/buttons.less b/less/buttons.less index f93cd01a96..8376c7a763 100644 --- a/less/buttons.less +++ b/less/buttons.less @@ -8,6 +8,7 @@ // Core .btn { display: inline-block; + .ie7-inline-block(); padding: 4px 10px 4px; margin-bottom: 0; // For input.btn font-size: @baseFontSize; diff --git a/less/mixins.less b/less/mixins.less index cafd7daf90..8ff5efe503 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -98,7 +98,14 @@ white-space: nowrap; } - +// New image replacement +// ------------------------- +// Source: http://www.zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement/ +.hide-text { + overflow: hidden; + text-indent: 100%; + white-space: nowrap; +} // FONTS // --------------------------------------------------