From 72419e2f826031a158173f46d723a672064e37cd Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 31 八月 2021 22:42:51 +0800 Subject: [PATCH] 2021-08-31 --- src/assets/css/main.scss | 196 +++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 189 insertions(+), 7 deletions(-) diff --git a/src/assets/css/main.scss b/src/assets/css/main.scss index e02d81b..9c1486d 100644 --- a/src/assets/css/main.scss +++ b/src/assets/css/main.scss @@ -9,6 +9,9 @@ -webkit-font-smoothing: antialiased; box-sizing: border-box; font-weight: normal; + border-style: solid; + border-width: 0; + border-color: transparent; &:hover { outline: none; } @@ -68,7 +71,7 @@ background-color: unset; color: unset; } -.side-menu.ant-menu-dark .ant-menu-item.ant-menu-item-selected { +.mk-side-menu.ant-menu-dark .ant-menu-item.ant-menu-item-selected { background-color: unset; color: unset; } @@ -132,15 +135,15 @@ background: rgba(0, 0, 0, 0); } // 閲嶇疆妯℃�佹婊氬姩鏉� -.ant-modal-wrap::-webkit-scrollbar { +.ant-modal-wrap::-webkit-scrollbar, .ant-drawer-wrapper-body::-webkit-scrollbar { width: 7px; } -.ant-modal-wrap::-webkit-scrollbar-thumb { +.ant-modal-wrap::-webkit-scrollbar-thumb, .ant-drawer-wrapper-body::-webkit-scrollbar-thumb { border-radius: 5px; - box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.13); - background: rgba(0, 0, 0, 0.13); + box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1); + background: rgba(0, 0, 0, 0.1); } -.ant-modal-wrap::-webkit-scrollbar-track { +.ant-modal-wrap::-webkit-scrollbar-track, .ant-drawer-wrapper-body::-webkit-scrollbar-track { box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05); border-radius: 3px; border: 1px solid rgba(0, 0, 0, 0.07); @@ -171,13 +174,45 @@ z-index: 1090!important; } +.ant-dropdown { + z-index: 1090!important; +} + +.mk-normal-dropdown { + .ant-dropdown-menu { + max-height: 250px; + overflow-y: auto; + } + .ant-dropdown-menu::-webkit-scrollbar { + width: 7px; + } + .ant-dropdown-menu::-webkit-scrollbar-thumb { + border-radius: 5px; + box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.13); + background: rgba(0, 0, 0, 0.13); + } + .ant-dropdown-menu::-webkit-scrollbar-track { + box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05); + border-radius: 3px; + border: 1px solid rgba(0, 0, 0, 0.07); + background: rgba(0, 0, 0, 0); + } +} + // 纭鎻愮ず妗嗛珮搴� .ant-modal.ant-modal-confirm { top: 38vh; } .ant-popover { - z-index: 1090!important; + z-index: 1070!important; +} +// 姘旀场纭妗� +.ant-popover.popover-confirm { + z-index: 1080!important; +} +.ant-message { + z-index: 1110!important; } .ant-notification-notice.notification-custom-error { @@ -222,3 +257,150 @@ background: rgba(0, 0, 0, 0); } } + +.ant-modal.popview-modal { + top: 70px; + .ant-modal-body { + min-height: 200px; + max-height: calc(100vh - 210px); + overflow-y: auto; + } + .ant-modal-body::-webkit-scrollbar { + width: 7px; + } + .ant-modal-body::-webkit-scrollbar-thumb { + border-radius: 5px; + box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.13); + background: rgba(0, 0, 0, 0.13); + } + .ant-modal-body::-webkit-scrollbar-track { + box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05); + border-radius: 3px; + border: 1px solid rgba(0, 0, 0, 0.07); + background: rgba(0, 0, 0, 0); + } +} +.ant-modal-wrap.popview-modal { + .ant-modal { + top: 70px; + } + .ant-modal-body { + min-height: 200px; + max-height: calc(100vh - 210px); + overflow-y: auto; + } + .ant-modal-body::-webkit-scrollbar { + width: 7px; + } + .ant-modal-body::-webkit-scrollbar-thumb { + border-radius: 5px; + box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.13); + background: rgba(0, 0, 0, 0.13); + } + .ant-modal-body::-webkit-scrollbar-track { + box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05); + border-radius: 3px; + border: 1px solid rgba(0, 0, 0, 0.07); + background: rgba(0, 0, 0, 0); + } +} +// 璁剧疆妯℃�佹鏍峰紡锛岃瀹氭渶澶ф渶灏忛珮搴︼紝閲嶇疆婊氬姩鏉� +.action-modal { + .ant-modal { + max-width: 95vw; + top: 70px; + } + .ant-modal-body { + max-height: calc(100vh - 205px); + min-height: 150px; + overflow-y: auto; + padding-bottom: 35px; + } + .ant-modal-body::-webkit-scrollbar { + width: 7px; + height: 7px; + } + .ant-modal-body::-webkit-scrollbar-thumb { + border-radius: 5px; + box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.13); + background: rgba(0, 0, 0, 0.13); + } + .ant-modal-body::-webkit-scrollbar-track { + box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05); + border-radius: 3px; + border: 1px solid rgba(0, 0, 0, 0.07); + background: rgba(0, 0, 0, 0); + } +} + +.ant-drawer { + z-index: 1080!important; +} + +.mk-popover-control-wrap { + .ant-popover-content { + position: relative; + top: 5px; + .ant-popover-arrow { + bottom: -3.8px!important; + } + .mk-popover-control { + white-space: nowrap; + i { + padding: 5px 8px; + cursor: pointer; + font-size: 16px; + } + .edit { + color: #1890ff; + } + .plus { + color: #26C281; + } + .copy { + color: #26C281; + } + .close { + color: #ff4d4f; + } + .profile { + color: purple; + } + .style { + color: orange; + } + .model-datasource { + display: inline-block; + position: unset; + } + } + .mk-popover-control::after { + position: absolute; + content: ' '; + width: 100%; + height: 12px; + bottom: -12px; + left: 0px; + } + .ant-popover-inner-content { + padding: 5px 20px; + } + } +} + +.ant-input[disabled] { + background-color: #fafafa!important; +} +.ant-btn[disabled] { + background-color: transparent!important; + border-color: rgba(0, 0, 0, 0.35)!important; + color: rgba(0, 0, 0, 0.35)!important; +} +.ant-btn.ant-btn-link { + border-width: 0; +} +.button-list { + .ant-btn.ant-btn-link { + border-width: 1px; + } +} \ No newline at end of file -- Gitblit v1.8.0