2019-07-22 19:14:47 +08:00
|
|
|
@import './mixins/mixins.scss';
|
2019-09-17 19:21:07 +08:00
|
|
|
@import './themes/vars.scss';
|
2019-07-22 19:14:47 +08:00
|
|
|
|
|
|
|
@include b(form) {
|
|
|
|
width: 100%;
|
|
|
|
font-size: 14px;
|
2019-11-01 19:01:55 +08:00
|
|
|
@include m(inline) {
|
2019-11-02 23:09:36 +08:00
|
|
|
width: 100%;
|
2019-11-01 19:01:55 +08:00
|
|
|
display: inline-flex;
|
2019-11-03 21:00:44 +08:00
|
|
|
align-items: flex-start;
|
2019-07-22 19:14:47 +08:00
|
|
|
align-content: space-around;
|
2019-11-02 23:09:36 +08:00
|
|
|
@include b(form-item) {
|
|
|
|
width: auto;
|
|
|
|
&:last-child {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
2019-07-22 19:14:47 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-03 21:00:44 +08:00
|
|
|
@include themes-mixin {
|
|
|
|
@include b(form-item) {
|
|
|
|
width: 100%;
|
2019-11-06 14:04:28 +08:00
|
|
|
padding-bottom: 24px;
|
2019-11-03 21:00:44 +08:00
|
|
|
@include m(top-labelled) {
|
|
|
|
margin-right: 18px;
|
|
|
|
@include m(no-label) {
|
2019-11-06 14:04:28 +08:00
|
|
|
padding-top: 24px;
|
2019-11-03 21:00:44 +08:00
|
|
|
}
|
|
|
|
@include b(form-item-label) {
|
2019-11-06 14:04:28 +08:00
|
|
|
display: block;
|
2019-11-03 21:00:44 +08:00
|
|
|
width: 100%;
|
|
|
|
padding-bottom: 8px;
|
|
|
|
padding-left: 2px;
|
|
|
|
}
|
2019-11-02 23:09:36 +08:00
|
|
|
}
|
2019-11-03 21:00:44 +08:00
|
|
|
@include m(has-feedback) {
|
2019-11-06 14:04:28 +08:00
|
|
|
padding-bottom: 0px;
|
2019-07-22 19:14:47 +08:00
|
|
|
}
|
2019-11-03 21:00:44 +08:00
|
|
|
@include b(form-item-label) {
|
2019-11-06 14:04:28 +08:00
|
|
|
display: inline-block;
|
2019-11-03 21:00:44 +08:00
|
|
|
transition: color .3s $default-cubic-bezier;
|
|
|
|
color: $--n-text-color;
|
2019-11-06 14:04:28 +08:00
|
|
|
height: 24px;
|
2019-11-03 21:00:44 +08:00
|
|
|
box-sizing: border-box;
|
2019-11-06 14:04:28 +08:00
|
|
|
font-size: 14px;
|
2019-07-22 19:14:47 +08:00
|
|
|
}
|
2019-11-03 21:00:44 +08:00
|
|
|
@include b(form-item-blank) {
|
|
|
|
position: relative;
|
2019-07-22 19:14:47 +08:00
|
|
|
}
|
2019-11-03 21:00:44 +08:00
|
|
|
@include b(form-item-feedback) {
|
|
|
|
padding-left: 2px;
|
2019-11-06 14:04:28 +08:00
|
|
|
padding-top: 4px;
|
2019-11-03 21:00:44 +08:00
|
|
|
box-sizing: border-box;
|
2019-11-06 14:04:28 +08:00
|
|
|
min-height: 24px;
|
2019-11-03 21:00:44 +08:00
|
|
|
color: $--error-6;
|
2019-11-06 14:04:28 +08:00
|
|
|
font-size: 14px;
|
2019-11-03 21:00:44 +08:00
|
|
|
transform-origin: top left;
|
|
|
|
transition: color .3s $default-cubic-bezier;
|
|
|
|
@include fade-down-transition($from-offset: -3px);
|
|
|
|
}
|
2019-07-22 19:14:47 +08:00
|
|
|
}
|
2019-11-03 21:00:44 +08:00
|
|
|
}
|