UNPKG

winbox-ui-next

Version:

We Design Vue 2.0: A Vue.js 3 UI Library

230 lines (229 loc) 4.85 kB
/******** borderSize *******/ /******** borderStyle *******/ /******** radius *******/ /******** shadow distance *******/ /******** size *******/ /******** spacing *******/ /******** shadow *******/ /******** opacity *******/ /******** fontSize *******/ /******** fontWeight ********/ /******** radius *******/ /******** Primary *******/ /******** success *******/ /******** warning *******/ /******** danger *******/ /******** link *******/ /******** radius *******/ /********* icon hover *********/ .w-modal-container { position: fixed; top: 0; right: 0; bottom: 0; left: 0; } .w-modal-mask { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background-color: rgba(29, 33, 41, 0.6); } .w-modal-wrapper { position: absolute; top: 0; right: 0; bottom: 0; left: 0; overflow: auto; } .w-modal-wrapper.w-modal-wrapper-align-center { white-space: nowrap; text-align: center; } .w-modal-wrapper.w-modal-wrapper-align-center::after { display: inline-block; width: 0; height: 100%; vertical-align: middle; content: ''; } .w-modal-wrapper.w-modal-wrapper-align-center .w-modal { top: 0; display: inline-block; vertical-align: middle; } .w-modal-wrapper.w-modal-wrapper-moved { text-align: left; } .w-modal-wrapper.w-modal-wrapper-moved .w-modal { top: 0; vertical-align: top; } .w-modal { position: relative; top: 100px; width: 30%; margin: 0 auto; line-height: 1.5715; white-space: initial; text-align: left; background-color: var(--color-bg-3); border-radius: var(--border-radius-small); } .w-modal-draggable .w-modal-header { cursor: move; } .w-modal-header { display: flex; align-items: center; box-sizing: border-box; width: 100%; padding: 9px 16px; border-bottom: 1px solid var(--color-neutral-3); } .w-modal-header .w-modal-title { display: flex; flex: 1; align-items: center; justify-content: flex-start; } .w-modal-header .w-modal-title-align-start { justify-content: flex-start; } .w-modal-header .w-modal-title-align-center { justify-content: center; } .w-modal-body { position: relative; padding: 20px 40px; color: var(--color-text-1); font-size: 14px; } .w-modal-footer { flex-shrink: 0; box-sizing: border-box; width: 100%; padding: 9px 16px; text-align: right; border-top: 1px solid var(--color-neutral-3); } .w-modal-footer > .w-btn:not(:nth-child(1)) { margin-left: 12px; } .w-modal-close-btn { margin-left: -12px; color: var(--color-text-1); font-size: 12px; cursor: pointer; } .w-modal-title { color: var(--color-text-1); font-weight: 500; font-size: 16px; } .w-modal-title-icon { margin-right: 10px; font-size: 18px; vertical-align: -0.15em; } .w-modal-title-icon .w-icon-info-circle-fill { color: rgb(var(--primary-6)); } .w-modal-title-icon .w-icon-check-circle-fill { color: rgb(var(--success-6)); } .w-modal-title-icon .w-icon-exclamation-circle-fill { color: rgb(var(--warning-6)); } .w-modal-title-icon .w-icon-close-circle-fill { color: rgb(var(--danger-6)); } .w-modal-simple { width: 400px; padding: 24px 32px 32px; } .w-modal-simple .w-modal-header, .w-modal-simple .w-modal-footer { height: unset; padding: 0; border: none; } .w-modal-simple .w-modal-header { margin-bottom: 24px; } .w-modal-simple .w-modal-title { justify-content: flex-start; } .w-modal-simple .w-modal-title-align-start { justify-content: flex-start; } .w-modal-simple .w-modal-title-align-center { justify-content: center; } .w-modal-simple .w-modal-footer { margin-top: 32px; text-align: center; } .w-modal-simple .w-modal-body { padding: 0; } .w-modal-fullscreen { top: 0; display: inline-flex; flex-direction: column; box-sizing: border-box; width: 100%; height: 100%; } .w-modal-fullscreen .w-modal-footer { margin-top: auto; } .zoom-modal-enter-from, .zoom-modal-appear-from { transform: scale(0.5, 0.5); opacity: 0; } .zoom-modal-enter-to, .zoom-modal-appear-to { transform: scale(1, 1); opacity: 1; } .zoom-modal-enter-active, .zoom-modal-appear-active { transition: opacity 0.4s cubic-bezier(0.3, 1.3, 0.3, 1), transform 0.4s cubic-bezier(0.3, 1.3, 0.3, 1); } .zoom-modal-leave-from { transform: scale(1, 1); opacity: 1; } .zoom-modal-leave-to { transform: scale(0.5, 0.5); opacity: 0; } .zoom-modal-leave-active { transition: opacity 0.4s cubic-bezier(0.3, 1.3, 0.3, 1), transform 0.4s cubic-bezier(0.3, 1.3, 0.3, 1); } .fade-modal-enter-from, .fade-modal-appear-from { opacity: 0; } .fade-modal-enter-to, .fade-modal-appear-to { opacity: 1; } .fad-modal-enter-active, .fade-modal-appear-active { transition: opacity 0.4s cubic-bezier(0.3, 1.3, 0.3, 1); } .fade-modal-leave-from { opacity: 1; } .fade-modal-leave-to { opacity: 0; } .fade-modal-leave-active { transition: opacity 0.4s cubic-bezier(0.3, 1.3, 0.3, 1); }