@import '../default/var';
.#{$prefix}-form {
    &-item {
        text-align: left;
        margin-bottom: 24px;
        &__label,
        &__content {
            vertical-align: middle;
            position: relative;
            &-box {
                overflow: hidden;
            }
            &__main {
                float: left;
                width: 100%;
            }
            &__append {
                margin-left: 10px;
            }
        }
        &__label {
            color: $form-color-label;
            height: 100%;
            float: left;
            &.is-required:not(.is-no-asterisk) {
                &:before {
                    content: "*";
                    vertical-align: sub;
                    margin-right: 5px;
                    color: $form-color-error;
                }
            }
            &--top {
                line-height: 1.5;
                float: none;
            }
        }
        &__notice,
        &__error {
            position: absolute;
            display: inline-block;
            line-height: 1;
            transform: translateY(3px);
            margin-left: 2px;
            left: 0;
            bottom: -14px;
            white-space: nowrap;
            font-size: $font-size-mini;
        }
        &__notice {
            color: $form-color-notice;
        }
        &__error {
            color: $form-color-error;
            opacity: 1;
            transition: all .3s;
        }
        @each $size in large,
        medium,
        small,
        mini {
            &--#{$size} {
                font-size: map-get($form-font-sizes, $size);
                line-height: map-get($form-sizes, $size) - 2px;
                .#{$prefix}-form-item__label,
                .#{$prefix}-form-item__content__append {
                    line-height: map-get($form-sizes, $size);
                }
            }
        }
    }
    &-section {
        &__title {
            font-size: 16px;
            color: #636672;
            margin-bottom: 24px;
            font-family: PingFangSC-Semibold, 微软雅黑;
            height: 40px;
            line-height: 40px;
        }
        &__sub-title {
            font-size: 12px;
            margin-left: 10px;
            font-weight: normal;
        }
        &__action {
            font-size: 12px;
            float: right;
            font-family: PingFangSC-Semibold, 微软雅黑;
        }
        &__content {
            margin: 0 auto;
        }
        &:not(:last-of-type) {
            padding: 0 0 40px;
            border-bottom: dashed 1px #eff0f5;
        }
        &:last-of-type {
            margin-bottom: 0 !important;
        }
    }
}