@import (reference) '~antd/lib/style/themes/index.less';

.vtx-modal-maxClass {
    .ant-modal {
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        padding-bottom: 0 !important;
        overflow: hidden;
    }
    .ant-modal-body {
        height: e('calc(100% - 108px)') !important;
    }
}
.vtx-modal {
    .ant-modal {
        top: 10%;
        padding-bottom: 0;
        .ant-modal-content {
            height: 100%;
            .ant-modal-body {
                max-height: e('calc(100% - 108px)');
                padding: 20px 24px;
                overflow: auto;
            }
        }
    }
    .vtx-modal-title {
        position: relative;
        width: 100%;
        .vtx-modal-title_name {
            width: 100%;
            color: @primary-color;
        }
        .vtx-modal-close,
        .vtx-modal-maximizeIcon {
            position: absolute;
            top: -13px;
            right: -16px;
            p {
                position: absolute;
                top: 0;
                right: 0;
                z-index: 10;
                display: inline-block;
                width: 36px;
                height: 48px;
                color: @text-color-secondary;
                font-weight: 700;
                line-height: 48px;
                text-align: center;
                text-decoration: none;
                background: transparent;
                border: 0;
                outline: 0;
                cursor: pointer;
                -webkit-transition: color 0.3s ease;
                transition: color 0.3s ease;
                &:hover {
                    color: @icon-color-hover;
                    text-decoration: none;
                }
            }
        }
        .vtx-modal-maximizeIcon {
            right: 20px;
        }
    }
}

.vtx-modal-header-title {
    .vtx-modal-header-text {
        font-weight: 400;
    }
    .vtx-modal-header-text when(@theme=dark) {
        color: @text-color;
    }
    .vtx-modal-header-text when(@theme=default) {
        color: fade(@black, 65%);
    }
    .vtx-modal-header-text + .vtx-modal-header-subtitle {
        &::before {
            margin: 0 4px;
            font-weight: 400;
            content: '>';
        }
        &::before when(@theme=dark) {
            color: @text-color;
        }
        &::before when(@theme=default) {
            color: fade(@black, 65%);
        }
    }
}
