Isa*_*lle 12 ionic-framework material-design ionic2
如何删除文本输入md下面的默认行.
我已经在下面尝试了所有这些,但"默认"样式仍然保持这一行.
$text-input-md-highlight-color: "transparent";
$text-input-md-highlight-color-invalid : "transparent";
$text-input-md-highlight-color-valid : "transparent";
$text-input-md-background-color : "transparent";
$text-input-md-show-focus-highlight : "transparent";
$text-input-md-show-invalid-highlight: "transparent";
$text-input-md-show-valid-highlight : "transparent";
$text-input-md-show-success-highlight: false;
$text-input-md-show-error-highlight: false;
// Input highlight - normal
$text-input-md-highlight-color: "transparent";
// Input highlight - valid
$text-input-md-hightlight-color-valid: "transparent";
// Input highlight - invalid
$text-input-md-hightlight-color-invalid: "transparent";
Run Code Online (Sandbox Code Playgroud)
Gab*_*eto 40
尝试使用以下代码:
.item-md.item-input.input-has-focus .item-inner {
border-bottom-color: transparent !important;
box-shadow: none !important;
}
.list-md .item-input.input-has-focus:last-child {
border-bottom-color: transparent !important;
box-shadow: none !important;
}
.list-md .item-input.input-has-focus:last-child .item-inner {
box-shadow: none;
}
.item-md.item-input.ng-valid.input-has-value:not(.input-has-focus) .item-inner {
border-bottom-color: transparent !important;
box-shadow: none !important;
}
.list-md .item-input.ng-valid.input-has-value:not(.input-has-focus):last-child {
border-bottom-color: transparent !important;
box-shadow: none !important;
}
.list-md .item-input.ng-valid.input-has-value:not(.input-has-focus):last-child .item-inner {
box-shadow: none;
}
.item-md.item-input.ng-invalid.ng-touched:not(.input-has-focus) .item-inner {
border-bottom-color: transparent !important;
box-shadow: none !important;
}
.list-md .item-input.ng-invalid.ng-touched:not(.input-has-focus):last-child {
border-bottom-color: transparent !important;
box-shadow: none !important;
}
Run Code Online (Sandbox Code Playgroud)
它将删除所有验证行(红色/绿色/蓝色).
使用主题有更好的方法.
转到您的theme.scss文件src/theme并使用此代码
$text-input-md-highlight-color-invalid: transparent;
$text-input-md-highlight-color-valid: transparent;
$text-input-md-show-invalid-highlight: transparent;
$text-input-md-highlight-color: transparent;
$text-input-md-show-valid-highlight: transparent;
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
13428 次 |
| 最近记录: |