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) {
|
2019-12-12 18:36:30 +08:00
|
|
|
@include once {
|
|
|
|
width: 100%;
|
|
|
|
@include m(top-labelled) {
|
|
|
|
margin-right: 18px;
|
|
|
|
@include m(no-label) {
|
|
|
|
padding-top: 24px;
|
2019-11-09 00:25:06 +08:00
|
|
|
}
|
2019-12-12 18:36:30 +08:00
|
|
|
@include b(form-item-label) {
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
padding-bottom: 8px;
|
|
|
|
padding-left: 2px;
|
2019-11-09 00:25:06 +08:00
|
|
|
}
|
|
|
|
}
|
2019-12-12 18:36:30 +08:00
|
|
|
@include m(left-labelled) {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
@include b(form-item-label) {
|
|
|
|
line-height: 40px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding-right: 12px;
|
|
|
|
white-space: nowrap;
|
|
|
|
height: 40px;
|
|
|
|
flex-shrink: 0;
|
|
|
|
flex-grow: 0;
|
|
|
|
}
|
|
|
|
@include b(form-item-control) {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
2019-11-03 21:00:44 +08:00
|
|
|
}
|
2019-12-12 18:36:30 +08:00
|
|
|
@include m(has-feedback) {
|
|
|
|
padding-bottom: 0px;
|
|
|
|
}
|
|
|
|
@include b(form-item-blank) {
|
|
|
|
padding-top: 3px;
|
|
|
|
padding-bottom: 3px;
|
|
|
|
min-height: 34px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
position: relative;
|
2019-11-03 21:00:44 +08:00
|
|
|
}
|
2019-11-02 23:09:36 +08:00
|
|
|
}
|
2019-12-12 18:36:30 +08:00
|
|
|
@include m(right-label-aligned) {
|
2019-11-09 00:25:06 +08:00
|
|
|
@include b(form-item-label) {
|
2019-12-12 18:36:30 +08:00
|
|
|
@include once {
|
|
|
|
text-align: right;
|
|
|
|
&::after {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&::before {
|
|
|
|
@include once {
|
|
|
|
content: '* ';
|
|
|
|
}
|
|
|
|
color: $--error-6;
|
|
|
|
}
|
2019-11-09 00:25:06 +08:00
|
|
|
}
|
|
|
|
}
|
2019-11-06 15:57:03 +08:00
|
|
|
@include m(required) {
|
|
|
|
@include b(form-item-label) {
|
|
|
|
&::after {
|
2019-12-12 18:36:30 +08:00
|
|
|
@include once {
|
|
|
|
content: '*';
|
|
|
|
}
|
2019-11-06 15:57:03 +08:00
|
|
|
color: $--error-6;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-11-03 21:00:44 +08:00
|
|
|
@include b(form-item-label) {
|
2019-12-12 18:36:30 +08:00
|
|
|
@include once {
|
|
|
|
display: inline-block;
|
|
|
|
height: 24px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
font-size: 14px;
|
2019-11-06 15:57:03 +08:00
|
|
|
transition: color .3s $default-cubic-bezier;
|
2019-12-12 18:36:30 +08:00
|
|
|
&::after {
|
|
|
|
transition: color .3s $default-cubic-bezier;
|
|
|
|
}
|
2019-11-06 15:57:03 +08:00
|
|
|
}
|
2019-12-12 18:36:30 +08:00
|
|
|
color: $--n-text-color;
|
2019-07-22 19:14:47 +08:00
|
|
|
}
|
2019-12-12 18:36:30 +08:00
|
|
|
|
2019-11-09 13:38:06 +08:00
|
|
|
@include b(form-item-feedback-wrapper) {
|
2019-12-12 18:36:30 +08:00
|
|
|
@include once {
|
|
|
|
padding-left: 2px;
|
|
|
|
padding-top: 0px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
min-height: 20px;
|
|
|
|
font-size: 14px;
|
|
|
|
transform-origin: top left;
|
|
|
|
line-height: 1.25;
|
|
|
|
transition: color .3s $default-cubic-bezier;
|
|
|
|
@include b(form-item-feedback) {
|
|
|
|
@include fade-down-transition($from-offset: -3px);
|
|
|
|
}
|
2019-11-09 13:38:06 +08:00
|
|
|
}
|
2019-12-12 18:36:30 +08:00
|
|
|
color: $--error-6;
|
2019-11-03 21:00:44 +08:00
|
|
|
}
|
2019-07-22 19:14:47 +08:00
|
|
|
}
|
2019-11-03 21:00:44 +08:00
|
|
|
}
|