mirror of
https://github.com/youzan/vant.git
synced 2026-03-10 02:07:09 +08:00
107 lines
1.4 KiB
CSS
107 lines
1.4 KiB
CSS
@import './common/var.css';
|
|
|
|
.van-field {
|
|
.van-cell__title {
|
|
max-width: 90px;
|
|
}
|
|
|
|
.van-cell__value {
|
|
position: relative;
|
|
}
|
|
|
|
&__body {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
&__control {
|
|
border: 0;
|
|
margin: 0;
|
|
padding: 0;
|
|
width: 100%;
|
|
resize: none;
|
|
display: block;
|
|
box-sizing: border-box;
|
|
background-color: transparent;
|
|
|
|
&:disabled {
|
|
opacity: 1;
|
|
color: $gray-darker;
|
|
background-color: transparent;
|
|
}
|
|
|
|
&--center {
|
|
text-align: center;
|
|
}
|
|
|
|
&--right {
|
|
text-align: right;
|
|
}
|
|
}
|
|
|
|
&__clear,
|
|
&__icon,
|
|
&__button {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
&__clear,
|
|
&__icon {
|
|
padding: 0 10px;
|
|
color: $gray-dark;
|
|
line-height: inherit;
|
|
margin-right: -10px;
|
|
}
|
|
|
|
&__icon .van-icon {
|
|
display: block;
|
|
font-size: 16px;
|
|
line-height: inherit;
|
|
}
|
|
|
|
&__button {
|
|
padding-left: 10px;
|
|
}
|
|
|
|
&__error-message {
|
|
color: $red;
|
|
font-size: 12px;
|
|
text-align: left;
|
|
}
|
|
|
|
&--disabled {
|
|
.van-field__control {
|
|
color: $gray-dark;
|
|
}
|
|
}
|
|
|
|
&--error {
|
|
.van-field__control {
|
|
&,
|
|
&::placeholder {
|
|
color: $red;
|
|
}
|
|
}
|
|
}
|
|
|
|
&--min-height {
|
|
.van-field__control {
|
|
min-height: 60px;
|
|
}
|
|
}
|
|
|
|
&--label {
|
|
&-center {
|
|
.van-cell__title {
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
&-right {
|
|
.van-cell__title {
|
|
text-align: right;
|
|
}
|
|
}
|
|
}
|
|
}
|