From c8f4325c192f97e9c8d09e7d8ad3059be694fc4c Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 11 Mar 2012 21:12:59 -0700 Subject: remove text indent on carets (not needed) and add inline replacement mixin --- less/buttons.less | 1 + less/mixins.less | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'less') diff --git a/less/buttons.less b/less/buttons.less index f93cd01a9..8376c7a76 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 cafd7daf9..8ff5efe50 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 // -------------------------------------------------- -- cgit v1.2.3