Skip to content

Commit c8f4325

Browse files
committed
remove text indent on carets (not needed) and add inline replacement mixin
1 parent 67714d8 commit c8f4325

File tree

5 files changed

+23
-1
lines changed

5 files changed

+23
-1
lines changed

docs/assets/bootstrap.zip

110 Bytes
Binary file not shown.

docs/assets/css/bootstrap-responsive.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
.clearfix:after {
1919
clear: both;
2020
}
21+
.hide-text {
22+
overflow: hidden;
23+
text-indent: 100%;
24+
white-space: nowrap;
25+
}
2126
.hidden {
2227
display: none;
2328
visibility: hidden;

docs/assets/css/bootstrap.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ textarea {
112112
.clearfix:after {
113113
clear: both;
114114
}
115+
.hide-text {
116+
overflow: hidden;
117+
text-indent: 100%;
118+
white-space: nowrap;
119+
}
115120
body {
116121
margin: 0;
117122
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
@@ -1930,6 +1935,10 @@ table .span24 {
19301935
}
19311936
.btn {
19321937
display: inline-block;
1938+
*display: inline;
1939+
/* IE7 inline-block hack */
1940+
1941+
*zoom: 1;
19331942
padding: 4px 10px 4px;
19341943
margin-bottom: 0;
19351944
font-size: 13px;

less/buttons.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// Core
99
.btn {
1010
display: inline-block;
11+
.ie7-inline-block();
1112
padding: 4px 10px 4px;
1213
margin-bottom: 0; // For input.btn
1314
font-size: @baseFontSize;

less/mixins.less

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,14 @@
9898
white-space: nowrap;
9999
}
100100

101-
101+
// New image replacement
102+
// -------------------------
103+
// Source: http://www.zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement/
104+
.hide-text {
105+
overflow: hidden;
106+
text-indent: 100%;
107+
white-space: nowrap;
108+
}
102109

103110
// FONTS
104111
// --------------------------------------------------

0 commit comments

Comments
 (0)