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

67 lines
1.3 KiB
SCSS
Raw Normal View History

2019-02-06 10:24:29 +00:00
@import "variables";
2018-06-19 06:12:36 +00:00
vn-snackbar #shapes {
2020-04-02 12:52:02 +00:00
max-height: 330px;
2020-04-02 15:06:07 +00:00
margin-left: -160px;
position: fixed;
z-index: 100;
2020-04-02 15:06:07 +00:00
width: 320px;
left: 50%;
bottom: 0
2018-06-19 06:12:36 +00:00
}
vn-snackbar .shape {
background-color: rgba(0, 0, 0, .8);
2020-04-02 12:20:57 +00:00
box-shadow: 0 0 6px $color-shadow;
2018-06-19 06:12:36 +00:00
transition: transform 300ms ease-in-out;
2020-04-02 12:52:02 +00:00
transform: translateY(320px);
box-sizing: border-box;
2020-04-02 12:20:57 +00:00
border-radius: 3px;
margin-bottom: 15px;
color: white;
padding: 12px 25px 12px 12px;
2020-02-10 06:24:12 +00:00
& > .text {
text-align: center;
vn-chip {
position: absolute;
2020-04-02 12:52:02 +00:00
left: -16px;
top: -16px;
2020-02-10 06:24:12 +00:00
}
2018-06-19 06:12:36 +00:00
}
&.shown {
transform: translateY(0);
}
2018-06-19 06:12:36 +00:00
&.success {
background-color: rgba(163, 209, 49, .8);
2018-06-19 06:12:36 +00:00
color: #445911;
& > button {
color: rgba(1, 1, 1, .6);
}
}
2018-06-19 06:12:36 +00:00
&.error {
background-color: rgba(198, 40, 40, .8);
& > button {
color: rgba(1, 1, 1, .6);
}
}
2018-06-19 06:12:36 +00:00
& > button {
background-color: transparent;
text-transform: uppercase;
font-weight: bold;
cursor: pointer;
2019-02-08 16:49:51 +00:00
color: $color-main;
position: absolute;
border: none;
padding: 5px;
top: 0;
right: 0
}
}