react-toolbox/components/snackbar/theme.scss

50 lines
1.1 KiB
SCSS
Raw Normal View History

2016-06-04 23:06:59 +03:00
@import "../colors";
@import "../globals";
@import "../mixins";
@import "./config";
2015-10-20 06:25:35 +03:00
2016-05-25 01:41:26 +03:00
.snackbar {
2015-10-20 18:27:22 +03:00
position: fixed;
right: $snackbar-horizontal-offset;
2015-10-20 18:27:22 +03:00
bottom: 0;
left: $snackbar-horizontal-offset;
z-index: $z-index-higher;
2015-10-20 18:27:22 +03:00
display: flex;
align-items: center;
padding: $snackbar-vertical-offset $snackbar-horizontal-offset;
margin: 0 auto;
2015-10-20 18:27:22 +03:00
margin-top: $snackbar-vertical-offset;
2015-10-20 06:25:35 +03:00
color: $snackbar-color;
2015-10-20 18:27:22 +03:00
background-color: $snackbar-background-color;
2015-10-21 02:05:57 +03:00
border-radius: $snackbar-border-radius;
transition: all $animation-duration $animation-curve-default $animation-duration;
2015-10-20 18:27:22 +03:00
&.accept .button {
color: $snackbar-color-accept;
2015-10-20 18:27:22 +03:00
}
&.warning .button {
color: $snackbar-color-warning;
2015-10-20 18:27:22 +03:00
}
&.cancel .button {
color: $snackbar-color-cancel;
2015-10-20 18:27:22 +03:00
}
&:not(.active) {
transform: translateY(100%);
}
&.active {
transform: translateY(0%);
}
2015-10-20 06:25:35 +03:00
}
2015-10-20 18:27:22 +03:00
.label {
flex-grow: 1;
font-size: $font-size-small;
}
.button {
min-width: inherit;
2015-11-01 17:19:45 +03:00
margin-top: - $snackbar-vertical-offset / 2;
margin-right: - $snackbar-horizontal-offset / 2;
margin-bottom: - $snackbar-vertical-offset / 2;
2015-10-20 18:27:22 +03:00
margin-left: $snackbar-button-offset;
2015-10-20 06:25:35 +03:00
}