You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.3 KiB
61 lines
1.3 KiB
@import './index';
|
|
|
|
// ================== Label ==================
|
|
.make-vertical-layout-label() {
|
|
margin: @form-vertical-label-margin;
|
|
padding: @form-vertical-label-padding;
|
|
line-height: @line-height-base;
|
|
white-space: initial;
|
|
text-align: left;
|
|
|
|
> label {
|
|
margin: 0;
|
|
|
|
&::after {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.@{form-prefix-cls}-vertical {
|
|
.@{form-item-prefix-cls} {
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
|
|
.@{form-prefix-cls}-vertical .@{form-item-prefix-cls}-label,
|
|
// when labelCol is 24, it is a vertical form
|
|
.@{ant-prefix}-col-24.@{form-item-prefix-cls}-label,
|
|
.@{ant-prefix}-col-xl-24.@{form-item-prefix-cls}-label {
|
|
.make-vertical-layout-label();
|
|
}
|
|
|
|
@media (max-width: @screen-xs-max) {
|
|
.@{ant-prefix}-col-xs-24.@{form-item-prefix-cls}-label {
|
|
.make-vertical-layout-label();
|
|
}
|
|
}
|
|
|
|
@media (max-width: @screen-sm-max) {
|
|
.@{ant-prefix}-col-sm-24.@{form-item-prefix-cls}-label {
|
|
.make-vertical-layout-label();
|
|
}
|
|
}
|
|
|
|
@media (max-width: @screen-md-max) {
|
|
.@{ant-prefix}-col-md-24.@{form-item-prefix-cls}-label {
|
|
.make-vertical-layout-label();
|
|
}
|
|
}
|
|
|
|
@media (max-width: @screen-lg-max) {
|
|
.@{ant-prefix}-col-lg-24.@{form-item-prefix-cls}-label {
|
|
.make-vertical-layout-label();
|
|
}
|
|
}
|
|
|
|
@media (max-width: @screen-xl-max) {
|
|
.@{ant-prefix}-col-xl-24.@{form-item-prefix-cls}-label {
|
|
.make-vertical-layout-label();
|
|
}
|
|
}
|
|
|