Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <markotto@twitter.com>2012-03-12 08:12:59 +0400
committerMark Otto <markotto@twitter.com>2012-03-12 08:12:59 +0400
commitc8f4325c192f97e9c8d09e7d8ad3059be694fc4c (patch)
treeedbeebb70a8699da38bf506443b14ef4921d27f6 /less
parent67714d8347d635ab1cd25c1312d14ec2973b0944 (diff)
remove text indent on carets (not needed) and add inline replacement mixin
Diffstat (limited to 'less')
-rw-r--r--less/buttons.less1
-rw-r--r--less/mixins.less9
2 files changed, 9 insertions, 1 deletions
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
// --------------------------------------------------