summaryrefslogtreecommitdiff
path: root/scss/popdowns/notifications.scss
diff options
context:
space:
mode:
Diffstat (limited to 'scss/popdowns/notifications.scss')
-rw-r--r--scss/popdowns/notifications.scss58
1 files changed, 58 insertions, 0 deletions
diff --git a/scss/popdowns/notifications.scss b/scss/popdowns/notifications.scss
new file mode 100644
index 0000000..c7914c2
--- /dev/null
+++ b/scss/popdowns/notifications.scss
@@ -0,0 +1,58 @@
+@use "sass:color";
+@use "../scheme";
+@use "../lib";
+@use "../font";
+
+@mixin popup($accent) {
+ .separator {
+ background-color: $accent;
+ }
+
+ .image {
+ @include lib.border($accent, 0.05);
+ }
+}
+
+.notifications {
+ @include lib.popdown-window(scheme.$mauve);
+
+ min-width: lib.s(400);
+ min-height: lib.s(600);
+
+ .notification {
+ .wrapper {
+ padding-bottom: lib.s(10);
+ }
+
+ .inner {
+ background-color: color.mix(scheme.$surface0, scheme.$base, 70%);
+
+ &.low {
+ @include popup(scheme.$overlay0);
+ }
+
+ &.normal {
+ @include lib.border(scheme.$lavender, 0.3);
+ @include popup(scheme.$lavender);
+ }
+
+ &.critical {
+ @include lib.border(scheme.$red, 0.5);
+ @include popup(scheme.$red);
+ }
+ }
+
+ .actions > * {
+ background-color: scheme.$surface1;
+
+ &:hover,
+ &:focus {
+ background-color: scheme.$surface2;
+ }
+
+ &:active {
+ background-color: scheme.$overlay0;
+ }
+ }
+ }
+}