summaryrefslogtreecommitdiff
path: root/lib/res/styles/partials/_notification.scss
diff options
context:
space:
mode:
authorHannes Schulze <haschu0103@outlook.de>2025-06-20 17:11:35 +0200
committerHannes Schulze <haschu0103@outlook.de>2025-06-20 17:11:35 +0200
commit75b5dde3a4d62acfc4f354b6dc237062cb83b89b (patch)
treea39283ff47a1a33a1a713e03a1e60b8efe80e03a /lib/res/styles/partials/_notification.scss
parent519956797d905c0925b8dd418ceb17c7495ad30a (diff)
add resources
Diffstat (limited to 'lib/res/styles/partials/_notification.scss')
-rw-r--r--lib/res/styles/partials/_notification.scss67
1 files changed, 67 insertions, 0 deletions
diff --git a/lib/res/styles/partials/_notification.scss b/lib/res/styles/partials/_notification.scss
new file mode 100644
index 0000000..a531b87
--- /dev/null
+++ b/lib/res/styles/partials/_notification.scss
@@ -0,0 +1,67 @@
+//
+// General notification style, used both in the control center as well as the notification area
+//
+
+notification {
+ & .content {
+ background: $foobar-color-background-primary;
+ border: $foobar-dim-border-light solid $foobar-color-border;
+ border-radius: $foobar-dim-radius-large;
+ padding: $foobar-dim-margin-medium-vertical $foobar-dim-margin-medium-horizontal;
+ }
+
+ & .icon {
+ -gtk-icon-size: 32px;
+ margin-right: $foobar-dim-spacing-large;
+ }
+
+ & .title {
+ font-weight: bold;
+ }
+
+ & .body {
+ font-size: $foobar-dim-font-small;
+ margin-top: $foobar-dim-spacing-small;
+ }
+
+ & .time {
+ font-size: $foobar-dim-font-small;
+ color: $foobar-color-foreground-secondary;
+ margin-left: $foobar-dim-spacing-medium;
+ }
+
+ & .close-button {
+ min-width: 24px;
+ min-height: 24px;
+ background: $foobar-color-background-secondary;
+ border: $foobar-dim-border-light solid $foobar-color-border;
+ border-radius: 100%;
+
+ &:hover {
+ background: $foobar-color-background-tertiary;
+ }
+
+ &:active {
+ background: $foobar-color-background-quaternary;
+ }
+ }
+}
+
+//
+// Style for the notification area window presenting popup notifications
+//
+
+window.notification-area {
+ &, & listview {
+ // XXX: To prevent some glitches
+ background: rgba(0, 0, 0, 0.005);
+ }
+
+ & row,
+ & row:hover,
+ & row:active,
+ & row:focus ,
+ & row:selected {
+ background: transparent;
+ }
+}