UNPKG

@brightleaf/elements

Version:

React UI elements styled with Bulma CSS

229 lines (188 loc) 4.03 kB
.notices { position: fixed; display: flex; top: 0; bottom: 0; left: 0; right: 0; padding: 2em; overflow: hidden; z-index: 1000; pointer-events: none; } .notices .toast { display: inline-flex; animation-duration: 150ms; margin: 0.5em 0; text-align: center; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04); border-radius: 2em; padding: 0.75em 1.5em; pointer-events: auto; opacity: 0.92; } .notices .toast.is-white { color: #0a0a0a; background: white; } .notices .toast.is-black { color: white; background: #0a0a0a; } .notices .toast.is-light { color: #363636; background: whitesmoke; } .notices .toast.is-dark { color: whitesmoke; background: #363636; } .notices .toast.is-primary { color: white; background: #7957d5; } .notices .toast.is-link { color: white; background: #7957d5; } .notices .toast.is-info { color: #fff; background: #167df0; } .notices .toast.is-success { color: #fff; background: #23d160; } .notices .toast.is-warning { color: rgba(0, 0, 0, 0.7); background: #ffdd57; } .notices .toast.is-danger { color: #fff; background: #ff3860; } .notices .snackbar { display: inline-flex; align-items: center; justify-content: space-around; animation-duration: 150ms; margin: 0.5em 0; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04); border-radius: 4px; pointer-events: auto; background: #363636; color: whitesmoke; min-height: 3em; } .notices .snackbar .text { padding: 0.5em 1em; } .notices .snackbar .action { margin-left: auto; padding: 0.5em; padding-left: 0; white-space: nowrap; } .notices .snackbar .action .button { font-weight: 600; text-transform: uppercase; background: #363636; border: transparent; } .notices .snackbar .action .button:hover { background: #292929; } .notices .snackbar .action .button:active { background: #292929; } .notices .snackbar .action.is-white .button { color: white; } .notices .snackbar .action.is-black .button { color: #0a0a0a; } .notices .snackbar .action.is-light .button { color: whitesmoke; } .notices .snackbar .action.is-dark .button { color: #363636; } .notices .snackbar .action.is-primary .button { color: #7957d5; } .notices .snackbar .action.is-link .button { color: #7957d5; } .notices .snackbar .action.is-info .button { color: #167df0; } .notices .snackbar .action.is-success .button { color: #23d160; } .notices .snackbar .action.is-warning .button { color: #ffdd57; } .notices .snackbar .action.is-danger .button { color: #ff3860; } @media screen and (max-width: 768px) { .notices .snackbar { width: 100%; margin: 0; border-radius: 0; } } @media screen and (min-width: 769px), print { .notices .snackbar { min-width: 350px; max-width: 600px; overflow: hidden; } } .notices .notification { max-width: 600px; } .notices.is-bottom { flex-direction: column-reverse; } .notices .toast.is-top, .notices .toast.is-bottom, .notices .snackbar.is-top, .notices .snackbar.is-bottom, .notices .notification.is-top, .notices .notification.is-bottom { align-self: center; } .notices .toast.is-top-right, .notices .toast.is-bottom-right, .notices .snackbar.is-top-right, .notices .snackbar.is-bottom-right, .notices .notification.is-top-right, .notices .notification.is-bottom-right { align-self: flex-end; } .notices .toast.is-top-left, .notices .toast.is-bottom-left, .notices .snackbar.is-top-left, .notices .snackbar.is-bottom-left, .notices .notification.is-top-left, .notices .notification.is-bottom-left { align-self: flex-start; } .notices .toast.is-toast, .notices .snackbar.is-toast, .notices .notification.is-toast { opacity: 0.92; } .notices.is-top { flex-direction: column; } .notices.is-bottom { flex-direction: column-reverse; } .notices.has-custom-container { position: absolute; } @media screen and (max-width: 768px) { .notices { padding: 0; position: fixed !important; } }