Browse Source
🐛 Fix Input not align with other components in Chrome
close #17082
pull/17100/head
afc163
6 years ago
No known key found for this signature in database
GPG Key ID: 738F973FCE5C6B48
2 changed files with
14 additions and
1 deletions
-
components/input/style/mixin.less
-
components/time-picker/style/index.less
|
|
@ -8,11 +8,13 @@ |
|
|
|
height: @input-height-lg; |
|
|
|
padding: @input-padding-vertical-lg @input-padding-horizontal-lg; |
|
|
|
font-size: @font-size-lg; |
|
|
|
line-height: @input-height-lg; |
|
|
|
} |
|
|
|
|
|
|
|
.input-sm() { |
|
|
|
height: @input-height-sm; |
|
|
|
padding: @input-padding-vertical-sm @input-padding-horizontal-sm; |
|
|
|
line-height: @input-height-sm; |
|
|
|
} |
|
|
|
|
|
|
|
// input status |
|
|
@ -49,7 +51,7 @@ |
|
|
|
padding: @input-padding-vertical-base @input-padding-horizontal-base; |
|
|
|
color: @input-color; |
|
|
|
font-size: @font-size-base; |
|
|
|
line-height: @line-height-base; |
|
|
|
line-height: @input-height-base; |
|
|
|
background-color: @input-bg; |
|
|
|
background-image: none; |
|
|
|
border: @border-width-base @border-style-base @input-border-color; |
|
|
|
|
|
@ -225,3 +225,14 @@ |
|
|
|
right: @control-padding-horizontal-sm - 1px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// Fix cursor height in safari |
|
|
|
// https://stackoverflow.com/q/3843408/3040605 |
|
|
|
// https://browserstrangeness.github.io/css_hacks.html#safari |
|
|
|
@media not all and (min-resolution: 0.001dpcm) { |
|
|
|
@supports (-webkit-appearance: none) and (stroke-color: transparent) { |
|
|
|
.@{ant-prefix}-input { |
|
|
|
line-height: @line-height-base; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|