UNPKG

@mdsfe/mds-ui

Version:

A set of enterprise-class Vue UI components.

193 lines (192 loc) 4.73 kB
.mds-notification-topLeft[data-v-d94bfa66] { top: 24px; left: 0; } .mds-notification-topRight[data-v-d94bfa66] { top: 24px; right: 0; } .mds-notification-bottomLeft[data-v-d94bfa66] { bottom: 24px; left: 0; } .mds-notification-bottomRight[data-v-d94bfa66] { bottom: 24px; right: 0; } /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ /* stylelint-disable declaration-bang-space-before */ /* stylelint-disable declaration-bang-space-before */ .mds-notification { position: fixed; z-index: 1010; width: 400px; margin-right: 24px; } .mds-notification-topLeft, .mds-notification-bottomLeft { margin-left: 24px; margin-right: 0; } .mds-notification-topLeft .mds-notification-fade-enter.mds-notification-fade-enter-active, .mds-notification-bottomLeft .mds-notification-fade-enter.mds-notification-fade-enter-active, .mds-notification-topLeft .mds-notification-fade-appear.mds-notification-fade-appear-active, .mds-notification-bottomLeft .mds-notification-fade-appear.mds-notification-fade-appear-active { animation-name: NotificationLeftFadeIn; } .mds-notification-notice { padding: 24px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); background: #fff; margin-bottom: 10px; line-height: 1.5; position: relative; overflow: hidden; box-shadow: 0px 0px 12px 0px #d8dce6; } .mds-notification-notice-close-btn { cursor: pointer; position: absolute; right: 20px; top: 20px; } .mds-notification-notice-title { color: #333333; display: inline-block; font-weight: 500; font-size: 18px; padding: 0 20px 0 0; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%; } .mds-notification-notice-desc { font-size: 14px; } .mds-notification-notice-with-icon .mds-notification-notice-title { padding: 0 20px 0 48px; } .mds-notification-notice-with-icon .mds-notification-notice-desc { padding-left: 48px; } .mds-notification-notice-single-line-auto-margin { width: calc(400px - 24px * 2 - 24px - 48px - 100%); background-color: transparent; pointer-events: none; display: block; max-width: 4px; } .mds-notification-notice-single-line-auto-margin:before { content: ''; display: block; padding-bottom: 100%; } .mds-notification-notice-icon { position: absolute; font-size: 24px; line-height: 24px; } .mds-notification-notice-icon-success { color: #00a854; } .mds-notification-notice-icon-info { color: #0364ff; } .mds-notification-notice-icon-warning { color: #ffbf00; } .mds-notification-notice-icon-error { color: #EE3333; } .mds-notification-notice-close-x:after { font-size: 12px; content: "\E633"; font-family: "mdsicon"; cursor: pointer; } .mds-notification-notice-close { position: absolute; right: 16px; top: 10px; color: rgba(0, 0, 0, 0.43); outline: none; text-decoration: none; } .mds-notification-notice-close:hover { color: #404040; } .mds-notification-notice-btn { text-align: right; margin-top: 16px; } .mds-notification .notification-fade-effect { animation-duration: 0.24s; animation-fill-mode: both; animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1); } .mds-notification-fade-enter, .mds-notification-fade-appear { opacity: 0; animation-duration: 0.24s; animation-fill-mode: both; animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1); animation-play-state: paused; } .mds-notification-fade-leave { animation-duration: 0.24s; animation-fill-mode: both; animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1); animation-duration: 0.2s; animation-play-state: paused; } .mds-notification-fade-enter.mds-notification-fade-enter-active, .mds-notification-fade-appear.mds-notification-fade-appear-active { animation-name: NotificationFadeIn; animation-play-state: running; } .mds-notification-fade-leave.mds-notification-fade-leave-active { animation-name: NotificationFadeOut; animation-play-state: running; } @keyframes NotificationFadeIn { 0% { opacity: 0; left: 400px; } 100% { left: 0; opacity: 1; } } @keyframes NotificationLeftFadeIn { 0% { opacity: 0; right: 400px; } 100% { right: 0; opacity: 1; } } @keyframes NotificationFadeOut { 0% { opacity: 1; margin-bottom: 10px; padding-top: 24px; padding-bottom: 24px; max-height: 150px; } 100% { opacity: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; max-height: 0; } } /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ /* stylelint-disable declaration-bang-space-before */ /* stylelint-disable declaration-bang-space-before */