react-hook-popup
Version:
Easily manage popups like alerts and modals in React with a single hook
39 lines (38 loc) • 735 B
CSS
.rhp-snackbar {
position: absolute;
bottom: 24px;
left: 24px;
padding: 1rem;
min-width: 8rem;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
border-radius: 6px;
color: #fff;
display: flex;
justify-content: space-between;
}
.rhp-snackbar--error {
background-color: red;
}
.rhp-snackbar--success {
background-color: green;
}
.rhp-snackbar--info {
background-color: lightgray;
color: #000;
}
.rhp-snackbar--warning {
background-color: #ffc107;
color: #000;
}
.rhp-snackbar__close-button {
cursor: pointer;
margin-left: 1rem;
transition: all 200ms;
}
.rhp-snackbar__close-button:hover {
transform: scale(1.15);
font-weight: bold;
}
.rhp-snackbar__close-button:active {
transform: translateY(4px);
}