salix/front/core/components/snackbar/style.scss

67 lines
1.3 KiB
SCSS

@import "variables";
vn-snackbar #shapes {
max-height: 20.625em;
margin-left: -12.5em;
position: fixed;
z-index: 100;
width: 25em;
left: 50%;
bottom: 0
}
vn-snackbar .shape {
background-color: rgba(0, 0, 0, .8);
box-shadow: 0 0 .4em $color-shadow;
transition: transform 300ms ease-in-out;
transform: translateY(20em);
box-sizing: border-box;
border-radius: .2em;
margin-bottom: 15px;
color: white;
padding: .8em;
& > .text {
text-align: center;
vn-chip {
position: absolute;
left: -1em;
top: -1em;
}
}
&.shown {
transform: translateY(0);
}
&.success {
background-color: rgba(163, 209, 49, .8);
color: #445911;
& > button {
color: rgba(1, 1, 1, .6);
}
}
&.error {
background-color: rgba(198, 40, 40, .8);
& > button {
color: rgba(1, 1, 1, .6);
}
}
& > button {
background-color: transparent;
text-transform: uppercase;
margin-left: .5em;
font-weight: bold;
cursor: pointer;
color: $color-main;
float: right;
border: none;
padding: .5em;
margin: -.5em
}
}