input组件增加auto-border属性
parent
bcb5996e90
commit
1c7f63fc95
|
@ -150,6 +150,9 @@ li {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- */
|
/* --- */
|
||||||
|
:host([auto-border]) .label {
|
||||||
|
border-color: transparent;
|
||||||
|
}
|
||||||
:host([disabled]) .label {
|
:host([disabled]) .label {
|
||||||
background: nth($cp, 1);
|
background: nth($cp, 1);
|
||||||
cursor: not-allowed;
|
cursor: not-allowed;
|
||||||
|
@ -157,6 +160,9 @@ li {
|
||||||
}
|
}
|
||||||
:host(:focus-within) {
|
:host(:focus-within) {
|
||||||
@include focus1;
|
@include focus1;
|
||||||
|
.label {
|
||||||
|
border-color: nth($cp, 3);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
:host(:focus-within[readonly]) {
|
:host(:focus-within[readonly]) {
|
||||||
@include focus2;
|
@include focus2;
|
||||||
|
|
Reference in New Issue