UNPKG

sci-pro

Version:
83 lines (82 loc) 1.55 kB
.sci-message { position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 8000; display: flex; flex-flow: column nowrap; justify-content: flex-start; align-items: center; margin: 0; padding-top: 20px; transition: 0.2s; } .sci-message .message-item { display: inline-block; padding: 6px 14px 6px 16px; max-width: 600px; margin: 0 0 10px 0; width: auto; min-width: 248px; font-size: 14px; color: #007bff; text-align: left; box-shadow: 0 1px 1px 0 hsla(0, 0%, 80.4%, 0.5); border-radius: 4px; cursor: default; display: flex; justify-content: center; align-items: center; position: relative; border: 1px solid #ebe2e2; } .sci-message .message-item-success { color: #53ad53; } .sci-message .message-item-error { color: #f74545; } .sci-message .message-item-wran { color: #e1e16f; } @keyframes moves { 0% { max-height: 150px; opacity: 0; transform: translateY(-100%); } 40% { max-height: 150px; transform: translateY(-50%); opacity: 0.5; } to { max-height: 150px; opacity: 1; transform: translateY(0%); } } .sci-message .active_message_animate { animation: moves 0.3s; } .sci-message .leave_message_animate { animation: hiddens 0.3s; } .move-enter, .move-leave-to { opacity: 0; transform: translate(-50%, -30px); } .move-leave-active { transition: all 1s; opacity: 0.5; transform: translate(-50%, 50%); } .move-enter-to { opacity: 1; transform: translate(-50%, 10%); } .move-leave-active { transition: all 1s; }