UNPKG

winbox-ui-next

Version:

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

217 lines (216 loc) 5.16 kB
/******** borderSize *******/ /******** borderStyle *******/ /******** radius *******/ /******** shadow distance *******/ /******** size *******/ /******** spacing *******/ /******** shadow *******/ /******** opacity *******/ /******** fontSize *******/ /******** fontWeight ********/ /******** radius *******/ /******** Primary *******/ /******** success *******/ /******** warning *******/ /******** danger *******/ /******** link *******/ /******** radius *******/ /********* icon hover *********/ .w-notification-list { position: fixed; z-index: 1003; padding: 0; } .w-notification-list-top-left { top: 20px; left: 20px; } .w-notification-list-top-left .w-notification { margin-right: auto; } .w-notification-list-top-right { top: 20px; right: 20px; } .w-notification-list-top-right .w-notification { margin-left: auto; } .w-notification-list-bottom-left { bottom: 20px; left: 20px; } .w-notification-list-bottom-left .w-notification { margin-right: auto; } .w-notification-list-bottom-right { right: 20px; bottom: 20px; } .w-notification-list-bottom-right .w-notification { margin-left: auto; } .w-notification { position: relative; display: flex; box-sizing: border-box; width: 300px; margin-bottom: 20px; padding: 20px 20px 20px 20px; overflow: hidden; background-color: var(--color-bg-popup); border: 1px solid var(--color-neutral-3); border-radius: var(--border-radius-small); box-shadow: 0 1px 4px 4px rgba(0, 0, 0, 0.05); opacity: 1; transition: opacity 0.3s, transform 0.3s, left 0.3s, right 0.3s, top 0.4s, bottom 0.3s; } .w-notification-icon { display: inline-flex; align-items: center; font-size: 24px; } .w-notification-info { background-color: var(--color-bg-popup); border-color: var(--color-neutral-3); } .w-notification-info .w-notification-icon { color: rgb(var(--primary-6)); } .w-notification-success { background-color: var(--color-bg-popup); border-color: var(--color-neutral-3); } .w-notification-success .w-notification-icon { color: rgb(var(--success-6)); } .w-notification-warning { background-color: var(--color-bg-popup); border-color: var(--color-neutral-3); } .w-notification-warning .w-notification-icon { color: rgb(var(--warning-6)); } .w-notification-error { background-color: var(--color-bg-popup); border-color: var(--color-neutral-3); } .w-notification-error .w-notification-icon { color: rgb(var(--danger-6)); } .w-notification-left { padding-right: 16px; } .w-notification-right { flex: 1; word-break: break-word; } .w-notification-title { margin-bottom: 4px; color: var(--color-text-1); font-weight: 500; font-size: 16px; } .w-notification-content { color: var(--color-text-1); font-size: 14px; line-height: 20px; } .w-notification-info .w-notification-title { color: var(--color-text-1); } .w-notification-info .w-notification-content { color: var(--color-text-1); } .w-notification-success .w-notification-title { color: var(--color-text-1); } .w-notification-success .w-notification-content { color: var(--color-text-1); } .w-notification-warning .w-notification-title { color: var(--color-text-1); } .w-notification-warning .w-notification-content { color: var(--color-text-1); } .w-notification-error .w-notification-title { color: var(--color-text-1); } .w-notification-error .w-notification-content { color: var(--color-text-1); } .w-notification-btn-wrapper { margin-top: 16px; text-align: right; } .w-notification-footer { margin-top: 16px; text-align: right; } .w-notification-close-btn { position: absolute; top: 18px; right: 15px; color: var(--color-text-1); font-size: 12px; cursor: pointer; } .w-notification-close-btn > svg { position: relative; } .w-notification .w-icon-hover.w-notification-icon-hover::before { width: 20px; height: 20px; } .slide-left-notification-enter-from, .slide-left-notification-appear-from { transform: translateX(-100%); } .slide-left-notification-enter-to, .slide-left-notification-appear-to { transform: translateX(0); } .slide-left-notification-enter-active, .slide-left-notification-appear-active { transition: transform 0.4s cubic-bezier(0.3, 1.3, 0.3, 1); } .slide-left-notification-leave-from { opacity: 1; } .slide-left-notification-leave-to { height: 0; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; opacity: 0; } .slide-left-notification-leave-active { transition: all 0.3s cubic-bezier(0.34, 0.69, 0.1, 1); } .slide-right-notification-enter-from, .slide-right-notification-appear-from { transform: translateX(100%); } .slide-right-notification-enter-to, .slide-right-notification-appear-to { transform: translateX(0); } .slide-right-notification-enter-active, .slide-right-notification-appear-active { transition: transform 0.4s cubic-bezier(0.3, 1.3, 0.3, 1); } .slide-right-notification-leave-from { opacity: 1; } .slide-right-notification-leave-to { height: 0; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; opacity: 0; } .slide-right-notification-leave-active { transition: all 0.3s cubic-bezier(0.34, 0.69, 0.1, 1); }