diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-16 18:47:23 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-16 18:47:23 +1100 |
| commit | ed05e9af2515c3c1c09becae5b405fc5074aa5e9 (patch) | |
| tree | ac6d4e9e4262b79d6eec4ce64ffd351d8ba4d315 /scss/notifications.scss | |
| parent | refactor: move ts to src (diff) | |
| download | caelestia-shell-ed05e9af2515c3c1c09becae5b405fc5074aa5e9.tar.gz caelestia-shell-ed05e9af2515c3c1c09becae5b405fc5074aa5e9.tar.bz2 caelestia-shell-ed05e9af2515c3c1c09becae5b405fc5074aa5e9.zip | |
notifications: make popup window
Diffstat (limited to 'scss/notifications.scss')
| -rw-r--r-- | scss/notifications.scss | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/scss/notifications.scss b/scss/notifications.scss new file mode 100644 index 0000000..51f1a0b --- /dev/null +++ b/scss/notifications.scss @@ -0,0 +1,101 @@ +@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.rounded(8); + @include lib.border(scheme.$mauve, 0.4, 2); + @include lib.shadow; + + min-width: lib.s(400); + min-height: lib.s(600); + background-color: scheme.$base; + color: scheme.$mauve; + padding: lib.s(10) lib.s(12); + + .header { + @include font.mono; + @include lib.spacing(8); + + padding: 0 lib.s(5); + margin-bottom: lib.s(8); + + button { + @include lib.rounded(5); + @include lib.element-decel; + + padding: lib.s(3) lib.s(8); + + &:hover, + &:focus { + background-color: scheme.$surface0; + } + + &:active { + background-color: scheme.$surface1; + } + + &.enabled { + background-color: scheme.$mauve; + color: scheme.$base; + + &:hover, + &:focus { + background-color: color.mix(scheme.$mauve, scheme.$base, 80%); + } + + &:active { + background-color: color.mix(scheme.$mauve, scheme.$base, 70%); + } + } + } + } + + .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; + } + } + } +} |