nosignal-shell/scss/notifpopups.scss
2025-03-25 12:59:51 +11:00

45 lines
907 B
SCSS

@use "sass:color";
@use "scheme";
@use "lib";
@use "font";
@mixin popup($colour) {
.separator {
background-color: $colour;
}
.image {
@include lib.border($colour, 0.05);
}
}
.notifpopups {
min-width: lib.s(425);
padding-left: lib.s(10); // So notifications can overshoot for init animation
padding-right: lib.s(10);
padding-top: lib.s(5);
.notification {
.wrapper {
padding: lib.s(5); // For shadow
}
.inner {
@include lib.rounded(8);
@include lib.shadow;
&.low {
@include popup(scheme.$overlay0);
}
&.normal {
@include popup(scheme.$primary);
}
&.critical {
@include lib.border(scheme.$error, 0.5);
@include popup(scheme.$error);
}
}
}
}