@import (reference) '~antd/lib/style/themes/default.less';
@icon-url: "/vtxIcon2x/iconfont";

.vtx-ui-modal-normal {
    .ant-modal {
        .ant-modal-content {
            height: 100%;

            .ant-modal-body {
                max-height: e('calc(100% - 98px)');
                overflow: auto;
                background-color: @body-background;
            }
        }
    }

    .vtx-ui-modal-title {
        position: relative;
        width: 100%;

        .vtx-ui-modal-title_name {
            width: 100%;
            color: #108EE2;
        }

        .vtx-ui-modal-close,
        .vtx-ui-modal-maximizeIcon {
            position: absolute;
            top: -13px;
            right: -16px;

            p {
                width: 36px;
                height: 48px;
                text-align: center;
                line-height: 48px;
                cursor: pointer;
                border: 0;
                background: transparent;
                position: absolute;
                right: 0;
                top: 0;
                z-index: 10;
                font-weight: 700;
                text-decoration: none;
                -webkit-transition: color .3s ease;
                transition: color .3s ease;
                color: @text-color;
                outline: 0;
                display: inline-block;

                &:hover {
                    color: fade(@text-color, 65%);
                    text-decoration: none;
                }
            }
        }

        .vtx-ui-modal-maximizeIcon {
            right: 20px;
        }
    }
}

.vtx-ui-modal-maxClass {
    .ant-modal {
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        padding-bottom: 0 !important;
        overflow: hidden;
    }

    .ant-modal-body {
        height: e('calc(100% - 98px)') !important;
    }
}