mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-12 12:25:16 +08:00
67 lines
1.5 KiB
SCSS
67 lines
1.5 KiB
SCSS
@import './mixins/mixins.scss';
|
|
@import './themes/vars.scss';
|
|
|
|
@include b(form) {
|
|
width: 100%;
|
|
font-size: 14px;
|
|
@include m(inline) {
|
|
width: 100%;
|
|
display: inline-flex;
|
|
align-items: flex-start;
|
|
align-content: space-around;
|
|
@include b(form-item) {
|
|
width: auto;
|
|
&:last-child {
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@include themes-mixin {
|
|
@include b(form-item) {
|
|
display: flex;
|
|
width: 100%;
|
|
align-items: center;
|
|
margin-bottom: 24px;
|
|
@include m(top-labelled) {
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
margin-right: 18px;
|
|
@include m(no-label) {
|
|
padding-top: 22px;
|
|
}
|
|
@include b(form-item-label) {
|
|
width: 100%;
|
|
padding-bottom: 8px;
|
|
padding-left: 2px;
|
|
}
|
|
}
|
|
@include m(has-feedback) {
|
|
margin-bottom: 2px;
|
|
}
|
|
@include b(form-item-label) {
|
|
transition: color .3s $default-cubic-bezier;
|
|
color: $--n-text-color;
|
|
height: 22px;
|
|
box-sizing: border-box;
|
|
font-size: 13px;
|
|
}
|
|
@include b(form-item-blank) {
|
|
position: relative;
|
|
flex-grow: 1;
|
|
}
|
|
@include b(form-item-feedback) {
|
|
padding-left: 2px;
|
|
padding-top: 6px;
|
|
box-sizing: border-box;
|
|
min-height: 20px;
|
|
color: $--error-6;
|
|
font-size: 13px;
|
|
transform-origin: top left;
|
|
transition: color .3s $default-cubic-bezier;
|
|
@include fade-down-transition($from-offset: -3px);
|
|
}
|
|
}
|
|
}
|