Skip to content

Commit

Permalink
fix(module: all): fix ios style exception (#810)
Browse files Browse the repository at this point in the history
  • Loading branch information
shuizhongxiong committed Nov 26, 2021
1 parent 00b9e69 commit 99c8e52
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/badge/style/index.less
Expand Up @@ -15,7 +15,7 @@
top: -1 * @v-spacing-sm;
height: @icon-size-xs;
line-height: @icon-size-xs;
min-width: @icon-size-xs / 2;
min-width: calc(@icon-size-xs / 2);
border-radius: 2 * @v-spacing-sm;
padding: 0 @h-spacing-sm;
text-align: center;
Expand Down
2 changes: 1 addition & 1 deletion components/search-bar/style/index.less
Expand Up @@ -90,7 +90,7 @@
z-index: 3;
width: @icon-size-xxs;
height: @icon-size-xxs;
padding: (@search-bar-input-height - @icon-size-xxs) / 2;
padding: calc((@search-bar-input-height - @icon-size-xxs) / 2);
border-radius: @radius-circle;
top: 0;
right: 0;
Expand Down
22 changes: 20 additions & 2 deletions components/style/index.less
Expand Up @@ -4,8 +4,9 @@
@import './v2-compatible-reset';

*,
*:before,
*:after {
*::before,
*::after {
box-sizing: border-box;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

Expand All @@ -27,3 +28,20 @@ a {
text-decoration: none;
outline: none;
}

input[type='text'],
input[type='password'],
input[type='number'],
textarea {
-webkit-appearance: none;
}

[type='number']::-webkit-inner-spin-button,
[type='number']::-webkit-outer-spin-button {
height: auto;
}

[type='search']::-webkit-search-cancel-button,
[type='search']::-webkit-search-decoration {
-webkit-appearance: none;
}

0 comments on commit 99c8e52

Please sign in to comment.