mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-05 05:28:37 +08:00
99 lines
2.7 KiB
SCSS
99 lines
2.7 KiB
SCSS
@include media-breakpoint-up(md) {
|
|
.#{$ns}Form-group {
|
|
margin-bottom: $Form-item-gap;
|
|
|
|
.#{$ns}Form-value > & {
|
|
margin-bottom: $Form-input-marginBottom;
|
|
}
|
|
|
|
&--hor {
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
margin-left: -$Form-group-gutterWidth / 2;
|
|
margin-right: -$Form-group-gutterWidth / 2;
|
|
align-items: flex-end;
|
|
|
|
&.#{$ns}Form-group--horizontal {
|
|
align-items: flex-start;
|
|
}
|
|
|
|
> * {
|
|
padding-left: $Form-group-gutterWidth / 2;
|
|
padding-right: $Form-group-gutterWidth / 2;
|
|
}
|
|
|
|
> .#{$ns}Form-item--inline {
|
|
margin-right: 0;
|
|
}
|
|
|
|
> .#{$ns}Form-item,
|
|
> div > .#{$ns}Form-item {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
&.#{$ns}Form-group--inline {
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.#{$ns}Form-input > .#{$ns}Form-group {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
&--lg {
|
|
margin-left: -$Form-group--lg-gutterWidth / 2;
|
|
margin-right: -$Form-group--lg-gutterWidth / 2;
|
|
|
|
> * {
|
|
padding-left: $Form-group--lg-gutterWidth / 2;
|
|
padding-right: $Form-group--lg-gutterWidth / 2;
|
|
}
|
|
}
|
|
|
|
&--md {
|
|
margin-left: -$Form-group--md-gutterWidth / 2;
|
|
margin-right: -$Form-group--md-gutterWidth / 2;
|
|
|
|
> * {
|
|
padding-left: $Form-group--md-gutterWidth / 2;
|
|
padding-right: $Form-group--md-gutterWidth / 2;
|
|
}
|
|
}
|
|
|
|
&--sm {
|
|
margin-left: -$Form-group--sm-gutterWidth / 2;
|
|
margin-right: -$Form-group--sm-gutterWidth / 2;
|
|
|
|
> * {
|
|
padding-left: $Form-group--sm-gutterWidth / 2;
|
|
padding-right: $Form-group--sm-gutterWidth / 2;
|
|
}
|
|
}
|
|
|
|
&--xs {
|
|
margin-left: -$Form-group--xs-gutterWidth / 2;
|
|
margin-right: -$Form-group--xs-gutterWidth / 2;
|
|
|
|
> * {
|
|
padding-left: $Form-group--xs-gutterWidth / 2;
|
|
padding-right: $Form-group--xs-gutterWidth / 2;
|
|
}
|
|
}
|
|
}
|
|
|
|
.#{$ns}Form-groupColumn {
|
|
flex-basis: 0;
|
|
flex-grow: 1;
|
|
width: 0;
|
|
max-width: 100%;
|
|
}
|
|
|
|
@for $i from (1) through $Form--horizontal-columns {
|
|
.#{$ns}Form-groupColumn--#{$i} {
|
|
flex: 0 0 percentage($i / $Form--horizontal-columns);
|
|
max-width: percentage($i / $Form--horizontal-columns);
|
|
min-height: 1px;
|
|
}
|
|
}
|
|
}
|