Skip to content

Commit

Permalink
fix(Form): css hack only in ie9
Browse files Browse the repository at this point in the history
  • Loading branch information
bindoon committed Dec 12, 2018
1 parent ac04e9d commit f5e77bc
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/form/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ $form-element-large-height:40px;
padding-left: 0;
line-height: inherit;
}
&.#{$css-prefix}left > #{$form-prefix}-item-label {
display: table-cell\0;
}
}
&-item-control {
#{$form-prefix}-text-align {
Expand Down Expand Up @@ -118,7 +115,6 @@ $form-element-large-height:40px;
/* label on left */
&.#{$css-prefix}left #{$form-prefix}-item-control {
display: inline-block;
display: table-cell\0;
vertical-align: top;
line-height: 0;
}
Expand All @@ -135,3 +131,12 @@ $form-element-large-height:40px;
}
}
}

@media screen and (min-width:0\0) and (min-resolution: .001dpcm) {
#{$form-prefix}-item.#{$css-prefix}left > #{$form-prefix}-item-label {
display: table-cell;
}
#{$form-prefix}.#{$css-prefix}inline #{$form-prefix}-item.#{$css-prefix}left #{$form-prefix}-item-control {
display: table-cell;
}
}

0 comments on commit f5e77bc

Please sign in to comment.