aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
Diffstat (limited to 'less')
-rw-r--r--less/buttons.less7
-rw-r--r--less/forms.less10
-rw-r--r--less/tables.less1
3 files changed, 18 insertions, 0 deletions
diff --git a/less/buttons.less b/less/buttons.less
index d7f533783..f18cf9d95 100644
--- a/less/buttons.less
+++ b/less/buttons.less
@@ -67,6 +67,13 @@
// Button Base
display: inline-block;
padding: 4px 10px 4px;
+ *padding: 2px 10px;
+ // IE7 likes to collapse the whitespace before the button, so bring it back...
+ *margin-left: 4px;
+ &:first-child {
+ // ...but not before the first button
+ *margin-left: 0;
+ }
font-size: @baseFontSize;
line-height: @baseLineHeight;
color: @grayDark;
diff --git a/less/forms.less b/less/forms.less
index 9e2e1dc1b..55a646368 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -192,6 +192,7 @@ textarea:focus {
@shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);
.box-shadow(@shadow);
outline: 0;
+ outline: 1px dotted #666 \9; /* IE6-8 */
}
input[type=file]:focus,
input[type=checkbox]:focus,
@@ -439,6 +440,15 @@ select:focus:required:invalid {
margin-left: -1px;
.border-radius(0 3px 3px 0);
}
+ input:first-child {
+ // In IE7, having a hasLayout container (from clearfix's zoom:1) can make the first input
+ // inherit the sum of its ancestors' margins.
+ *margin-left: -160px;
+
+ &+.add-on {
+ *margin-left: -21px;
+ }
+ }
}
diff --git a/less/tables.less b/less/tables.less
index 809c2f60e..c069ed588 100644
--- a/less/tables.less
+++ b/less/tables.less
@@ -64,6 +64,7 @@ table {
.table-bordered {
border: 1px solid #ddd;
border-collapse: separate; // Done so we can round those corners!
+ *border-collapse: collapsed; // IE7 can't round corners anyway
.border-radius(4px);
th + th,
td + td,