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;
margin-left: -200px;
position: fixed;
z-index: 100;
2020-04-02 12:52:02 +00:00
width: 400px;
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;
2020-04-02 12:20:57 +00:00
padding: 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;
2020-04-02 12:20:57 +00:00
margin-left: 8px;
font-weight: bold;
cursor: pointer;
2019-02-08 16:49:51 +00:00
color: $color-main;
float: right;
border: none;
2020-04-02 12:20:57 +00:00
padding: 8px;
2020-04-02 12:52:02 +00:00
margin: -8px;
}
}