UNPKG

wetrade-design

Version:

一款多语言支持Vue3的UI框架

307 lines (306 loc) 6.33 kB
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ /* stylelint-disable no-duplicate-selectors */ /* stylelint-disable */ /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ /** gray-sp */ /** blue-sp */ /** green-sp */ /** red-sp */ /** orange-sp */ /** 品牌橙 */ /** 日落黄 */ /** 柠檬黄 */ /** 新生绿 */ /** 绿色 */ /** 碧涛青 */ /** 海蔚蓝 */ /** 品牌蓝色 */ /** 宝石蓝 */ /** 星空紫 */ /** 罗兰紫 */ /** 青春紫 */ /** 品红 */ /** 红色 */ /** 灰色 */ /** 保留ant色板 */ /** 绿色 */ /** 品牌蓝 */ .wd-modal { box-sizing: border-box; margin: 0; padding: 0; color: #1E1E29; font-size: 14px; font-variant: tabular-nums; line-height: 18px; list-style: none; font-feature-settings: 'tnum'; pointer-events: none; position: relative; top: 10%; width: auto; max-width: 1200px; margin: 0 auto; } .wd-modal .wd-table { background-color: #1f2029; } .wd-modal .wd-table-body .wd-table-cell { background-color: #1f2029; } .wd-modal.wd-zoom-enter, .wd-modal.wdzoom-appear { transform: none; opacity: 0; animation-duration: 0.3s; -webkit-user-select: none; -moz-user-select: none; user-select: none; } .wd-modal-mask { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2000; height: 100%; background-color: rgba(0, 0, 0, 0.4); } .wd-modal-mask-hidden { display: none; } .wd-modal-wrap { position: fixed; top: 0; right: 0; bottom: 0; left: 0; overflow: auto; outline: 0; -webkit-overflow-scrolling: touch; } .wd-modal-wrap { z-index: 2000; } .wd-modal-title { margin: 0; color: #1E1E29; font-weight: 600; font-size: 16px; line-height: 22px; word-wrap: break-word; } .wd-modal-content { position: relative; background-color: #1f2029; background-clip: padding-box; border: 0; border-radius: 8px; box-shadow: 0px 6px 12px 0px rgba(0, 0, 0, 0.24), 0px 9px 32px 2px rgba(0, 0, 0, 0.5), 0px 0px 1px 0px rgba(255, 255, 255, 0.6); pointer-events: auto; overflow: hidden; } .wd-modal-close { position: absolute; top: 24px; right: 24px; z-index: 10; padding: 0; color: #656B80; font-weight: 700; line-height: 1; text-decoration: none; background: transparent; border: 0; outline: 0; cursor: pointer; transition: color 0.3s; border-radius: 3px; } .wd-modal-close-x { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; font-size: 18px; font-style: normal; line-height: 22px; text-align: center; text-transform: none; text-rendering: auto; } .wd-modal-close:focus, .wd-modal-close:hover { color: #1E1E29; background-color: rgba(129, 135, 153, 0.1); text-decoration: none; } .wd-modal-close:active { color: #1E1E29; background-color: rgba(129, 135, 153, 0.2); text-decoration: none; } .wd-modal-header { padding: 24px 24px; color: #1E1E29; background: #1f2029; border-radius: 6px 6px 0 0; } .wd-modal-body { padding: 0 24px; font-size: 14px; line-height: 22px; word-wrap: break-word; } .wd-modal-footer { padding: 24px 24px; text-align: right; background: #1f2029; border-radius: 0 0 6px 6px; } .wd-modal-footer .wd-btn + .wd-btn:not(.wd-dropdown-trigger) { margin-bottom: 0; margin-left: 8px; } .wd-modal-open { overflow: hidden; } .wd-modal-sidebar { max-width: 248px; padding: 16px; } .wd-modal-sidebar-exist { display: flex; max-height: 80vh; } .wd-modal-sidebar-right { flex: 1; min-width: 0; display: flex; flex-direction: column; } .wd-modal-centered { text-align: center; } .wd-modal-centered::before { display: inline-block; width: 0; height: 100%; vertical-align: middle; content: ''; } .wd-modal-centered .wd-modal { top: 0; display: inline-block; padding-bottom: 0; text-align: left; vertical-align: middle; } @media (max-width: 768px) { .wd-modal { max-width: calc(100vw - 16px); margin: 8px auto; } .wd-modal-centered .wd-modal { flex: 1; } } .wd-modal-confirm .wd-modal-header { display: none; } .wd-modal-confirm .wd-modal-body { padding: 24px; } .wd-modal-confirm-body-wrapper::before { display: table; content: ''; } .wd-modal-confirm-body-wrapper::after { display: table; clear: both; content: ''; } .wd-modal-confirm-body .wd-modal-confirm-title { display: block; overflow: hidden; color: #1E1E29; font-weight: 600; font-size: 16px; line-height: 22px; } .wd-modal-confirm-body .wd-modal-confirm-content { margin-top: 16px; color: #1E1E29; font-size: 14px; } .wd-modal-confirm-body > .wdicon { float: left; margin-right: 8px; font-size: 20px; } .wd-modal-confirm .wd-modal-confirm-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; } .wd-modal-confirm .wd-modal-confirm-footer .wd-modal-confirm-btns { white-space: nowrap; } .wd-modal-confirm .wd-modal-confirm-footer .wd-modal-confirm-btns .wd-btn + .wd-btn { margin-bottom: 0; margin-left: 8px; } .wd-modal-confirm-error .wd-modal-confirm-body > .wdicon { color: #f5222d; } .wd-modal-confirm-warning .wd-modal-confirm-body > .wdicon { color: #FF7925; } .wd-modal-confirm-confirm .wd-modal-confirm-body > .wdicon { color: #2469F2; } .wd-modal-confirm-info .wd-modal-confirm-body > .wdicon { color: #2469F2; } .wd-modal-confirm-success .wd-modal-confirm-body > .wdicon { color: #23BF70; } .wd-modal-wrap-rtl { direction: rtl; } .wd-modal-wrap-rtl .wd-modal-close { right: initial; left: 0; } .wd-modal-wrap-rtl .wd-modal-footer { text-align: left; } .wd-modal-wrap-rtl .wd-modal-footer .wd-btn + .wd-btn { margin-right: 8px; margin-left: 0; } .wd-modal-wrap-rtl .wd-modal-confirm-body { direction: rtl; } .wd-modal-wrap-rtl .wd-modal-confirm-body > .wdicon { float: right; margin-right: 0; margin-left: 16px; } .wd-modal-wrap-rtl .wd-modal-confirm-body > .wdicon + .wd-modal-confirm-title + .wd-modal-confirm-content { margin-right: 38px; margin-left: 0; } .wd-modal-wrap-rtl .wd-modal-confirm-btns { float: left; } .wd-modal-wrap-rtl .wd-modal-confirm-btns .wd-btn + .wd-btn { margin-right: 8px; margin-left: 0; } .wd-modal-wrap-rtl.wd-modal-centered .wd-modal { text-align: right; }