@import "src/constants/style/styleConst"; .modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: var(--ant-color-bg-mask); width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; z-index: 100; &__wrap { min-width: 310px; min-height: 170px; max-height: 90vh; max-width: 90%; background: var(--ant-layout-light-sider-bg); color: white; z-index: 10; border-radius: 16px; box-shadow: 0 5px 20px 0 rgba(0, 0, 0, 0.04); position: relative; padding: $basic-padding * 1.5; display: flex; flex-direction: column; justify-content: space-between; } &__header { height: 50px; background: var(--ant-layout-light-sider-bg); overflow: hidden; border-top-left-radius: 16px; border-top-right-radius: 16px; } &__title { color: $grey; font-size: 17px; padding: 0 10px; } &__content { padding: 10px; font-size: 14px; color: #2c3e50; overflow: auto; } &__footer { padding: 0 10px; display: flex; justify-content: end; margin-top: $basic-margin; button:first-child { margin-right: 8px; } } } body.modal-open { overflow: hidden; }