From f96d4ed77603ca1f908dcdc4a51bd2ce2178d10c Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期三, 19 六月 2024 10:10:58 +0800 Subject: [PATCH] 登录logo,其他 --- src/components/Modal/src/index.less | 173 ++++++++++++++++++++++++++++++++------------------------- 1 files changed, 96 insertions(+), 77 deletions(-) diff --git a/src/components/Modal/src/index.less b/src/components/Modal/src/index.less index a23be29..8ecfd0d 100644 --- a/src/components/Modal/src/index.less +++ b/src/components/Modal/src/index.less @@ -1,125 +1,144 @@ +@modal-prefix-cls: ~'@{namespace}-basic-modal'; + .fullscreen-modal { overflow: hidden; .ant-modal { - top: 0 !important; - right: 0 !important; - bottom: 0 !important; - left: 0 !important; + inset: 0 !important; width: 100% !important; + max-width: 100%; height: 100%; &-content { height: 100%; + overflow: hidden; } + } + + .ant-modal-footer { + margin-top: 0; } } -.ant-modal { - width: 520px; - padding-bottom: 0; +.@{modal-prefix-cls} { + .ant-modal { + width: 520px; + padding-bottom: 0; - .ant-modal-body > .scrollbar { - padding: 14px; - } - - &-title { - font-size: 16px; - font-weight: bold; - - .base-title { - cursor: move !important; + .ant-modal-body > .scrollbar { + padding: 14px; } - } - .ant-modal-body { - padding: 0; + &-title { + font-size: 16px; + font-weight: bold; - > .scrollbar > .scrollbar__bar.is-horizontal { - display: none; + .base-title { + cursor: move !important; + } } - } - &-large { - top: 60px; + .ant-modal-body { + padding: 0; - &--mini { - top: 16px; + > .scrollbar > .scrollbar__bar.is-horizontal { + display: none; + } } - } - &-header { - padding: 16px; - } + &-large { + top: 60px; - &-content { - box-shadow: 0 4px 8px 0 rgb(0 0 0 / 20%), 0 6px 20px 0 rgb(0 0 0 / 19%); - } - - &-footer { - button + button { - margin-left: 10px; + &--mini { + top: 16px; + } } - } - &-close { - font-weight: normal; - outline: none; - } + &-header { + padding: 16px; + border-bottom: 1px solid @border-color-base; + } - &-close-x { - display: inline-block; - width: 96px; - height: 56px; - line-height: 56px; - } + &-content { + padding: 0 !important; + box-shadow: + 0 4px 8px 0 rgb(0 0 0 / 20%), + 0 6px 20px 0 rgb(0 0 0 / 19%); + } - &-confirm-body { - .ant-modal-confirm-content { - // color: #fff; + &-footer { + padding: 10px 16px; + border-top: 1px solid @border-color-base; - > * { - color: @text-color-help-dark; + button + button { + margin-left: 10px; + } + } + + &-close { + top: 0 !important; + right: 0 !important; + width: auto !important; + outline: none; + background: transparent !important; + font-weight: normal; + } + + &-close-x { + display: inline-block; + width: 96px; + height: 56px; + line-height: 56px !important; + } + + &-confirm-body { + .ant-modal-confirm-content { + > * { + color: @text-color-help-dark; + } + } + } + + &-confirm-confirm.error .ant-modal-confirm-body > .anticon { + color: @error-color; + } + + &-confirm-btns { + .ant-btn:last-child { + margin-right: 0; + } + } + + &-confirm-info { + .ant-modal-confirm-body > .anticon { + color: @warning-color; + } + } + + &-confirm-confirm.success { + .ant-modal-confirm-body > .anticon { + color: @success-color; } } } - &-confirm-confirm.error .ant-modal-confirm-body > .anticon { - color: @error-color; - } - - &-confirm-btns { - .ant-btn:last-child { - margin-right: 0; - } - } - - &-confirm-info { - .ant-modal-confirm-body > .anticon { - color: @warning-color; - } - } - - &-confirm-confirm.success { - .ant-modal-confirm-body > .anticon { - color: @success-color; - } + .ant-modal-confirm .ant-modal-body { + padding: 24px !important; } } -.ant-modal-confirm .ant-modal-body { - padding: 24px !important; -} @media screen and (max-height: 600px) { .ant-modal { top: 60px; } } + @media screen and (max-height: 540px) { .ant-modal { top: 30px; } } + @media screen and (max-height: 480px) { .ant-modal { top: 10px; -- Gitblit v1.9.3