[improvement] rename packages dir to src (#3659)

This commit is contained in:
neverland
2019-06-27 11:25:57 +08:00
committed by GitHub
parent 8489918dca
commit 75c79b7044
619 changed files with 21 additions and 21 deletions
+133
View File
@@ -0,0 +1,133 @@
@import '../style/var';
.van-field {
&__label {
flex: none;
width: @field-label-width;
&--center {
text-align: center;
}
&--right {
text-align: right;
}
}
&__body {
display: flex;
align-items: center;
}
&__control {
display: block;
box-sizing: border-box;
width: 100%;
margin: 0;
padding: 0;
color: @field-input-text-color;
text-align: left;
background-color: transparent;
border: 0;
resize: none;
&::placeholder {
color: @field-placeholder-text-color;
}
&:disabled {
color: @field-input-disabled-text-color;
background-color: transparent;
opacity: 1;
}
&--center {
text-align: center;
}
&--right {
text-align: right;
}
/* for ios wechat */
&[type="date"],
&[type="time"],
&[type="datetime-local"] {
min-height: @cell-line-height;
}
}
&__clear,
&__icon,
&__button,
&__right-icon {
flex-shrink: 0;
}
&__clear,
&__right-icon {
margin-right: -10px;
padding: 0 10px;
line-height: inherit;
}
&__clear {
color: @field-clear-icon-color;
font-size: @field-clear-icon-size;
}
&__left-icon .van-icon,
&__right-icon .van-icon {
display: block;
min-width: 1em;
font-size: @field-icon-size;
line-height: inherit;
}
&__left-icon {
margin-right: 5px;
}
&__right-icon {
color: @field-right-icon-color;
}
&__button {
padding-left: 10px;
}
&__error-message {
color: @field-error-message-color;
font-size: @field-error-message-text-color;
text-align: left;
&--center {
text-align: center;
}
&--right {
text-align: right;
}
}
&--disabled {
.van-field__control {
color: @field-input-disabled-text-color;
}
}
&--error {
.van-field__control {
&,
&::placeholder {
color: @field-input-error-text-color;
}
}
}
&--min-height {
.van-field__control {
min-height: @field-text-area-min-height;
}
}
}