lbry.tech/sass/partials/_flash.scss
ポール ウェッブ 8c4d300f31 Handle Tour errors
2018-07-17 15:40:25 -04:00

46 lines
781 B
SCSS

.flashes {
top: 4rem; right: 0;
position: absolute;
width: 100%;
z-index: 9;
}
.flash {
border: 2px solid;
border-radius: 3px;
font-size: 1rem;
line-height: 1.33;
padding: 0.5rem 1rem;
position: absolute;
right: 2rem;
&:not(.error):not(.info):not(.warning) {
background-color: mix($white, $teal, 90%);
border-color: $teal;
}
&:not(.active) {
transform: translateY(-4rem);
}
&.active {
animation: slide-down 2s linear;
transform: translateY(-4rem);
}
&.error {
background-color: mix($white, $red, 90%);
border-color: $red;
}
&.info {
background-color: mix($white, $gray, 90%);
border-color: $gray;
}
&.warning {
background-color: mix($white, $yellow, 90%);
border-color: $yellow;
}
}