This repository has been archived on 2023-08-30. You can view files and clone it, but cannot push or open issues/pull-requests.
bytedo
/
wcui
Archived
1
0
Fork 0

input组件增加auto-border属性

old
宇天 2019-12-11 21:00:40 +08:00
parent bcb5996e90
commit 1c7f63fc95
1 changed files with 6 additions and 0 deletions

View File

@ -150,6 +150,9 @@ li {
}
/* --- */
:host([auto-border]) .label {
border-color: transparent;
}
:host([disabled]) .label {
background: nth($cp, 1);
cursor: not-allowed;
@ -157,6 +160,9 @@ li {
}
:host(:focus-within) {
@include focus1;
.label {
border-color: nth($cp, 3);
}
}
:host(:focus-within[readonly]) {
@include focus2;