@use 'sass:color'; $notify-border-color: $color6; $notify-bg: $background; $notify-bg-hover: $background; $notify-bg-darker: color.adjust($background, $lightness: -2%); $notify-bg-focus: color.adjust($background, $lightness: 4%); $close-bg: rgba($foreground, 0.4); $close-bg-hover: transparent; .notification-row { outline: none; } .notification-row:focus, .notification-row:hover { background: $notify-bg-focus; } .notification-row .notification-background { padding: 6px 12px; } .notification-row .notification-background .close-button { /* The notification Close Button */ background: $close-bg; color: $foreground; text-shadow: none; padding: 0; border-radius: $border-radius; margin-top: 5px; margin-right: 5px; box-shadow: none; border: 1px solid transparent; min-width: 24px; min-height: 24px; } .notification-row .notification-background .close-button:hover { box-shadow: $box-shadow; background: $close-bg-hover; transition: background 0.15s ease-in-out; border: 1px solid $notify-border-color; } .notification-row .notification-background .notification { /* The actual notification */ border-radius: $border-radius; border: 1px solid $notify-border-color; padding: 0; transition: background 0.15s ease-in-out; background: $notify-bg; box-shadow: $box-shadow; } .notification-row .notification-background .notification.low { /* Low Priority Notification */ } .notification-row .notification-background .notification.normal { /* Normal Priority Notification */ } .notification-row .notification-background .notification.critical { /* Critical Priority Notification */ } .notification-row .notification-background .notification .notification-action, .notification-row .notification-background .notification .notification-default-action { padding: 4px; margin: 0; box-shadow: none; background: transparent; border: none; color: $foreground; transition: background 0.15s ease-in-out; } .notification-row .notification-background .notification .notification-action:hover, .notification-row .notification-background .notification .notification-default-action:hover { -gtk-icon-effect: none; background: $notify-bg-hover; } .notification-row .notification-background .notification .notification-default-action { /* The large action that also displays the notification summary and body */ border-radius: 12px; } .notification-row .notification-background .notification .notification-default-action:not(:only-child) { /* When alternative actions are visible */ border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; } .notification-row .notification-background .notification .notification-default-action .notification-content { background: transparent; border-radius: 12px; padding: 4px; } .notification-row .notification-background .notification .notification-default-action .notification-content .image { /* Notification Primary Image */ -gtk-icon-effect: none; border-radius: 100px; /* Size in px */ margin: 4px; } .notification-row .notification-background .notification .notification-default-action .notification-content .app-icon { /* Notification app icon (only visible when the primary image is set) */ -gtk-icon-effect: none; -gtk-icon-shadow: 0 1px 4px black; margin: 6px; } .notification-row .notification-background .notification .notification-default-action .notification-content .text-box .summary { /* Notification summary/title */ font-size: 16px; font-weight: bold; background: transparent; color: $foreground; text-shadow: none; } .notification-row .notification-background .notification .notification-default-action .notification-content .text-box .time { /* Notification time-ago */ font-size: 16px; font-weight: bold; background: transparent; color: $foreground; text-shadow: none; margin-right: 30px; } .notification-row .notification-background .notification .notification-default-action .notification-content .text-box .body { /* Notification body */ font-size: 15px; font-weight: normal; background: transparent; color: $foreground; text-shadow: none; } .notification-row .notification-background .notification .notification-default-action .notification-content progressbar { /* The optional notification progress bar */ margin-top: 4px; } .notification-row .notification-background .notification .notification-default-action .notification-content .body-image { /* The "extra" optional bottom notification image */ margin-top: 4px; background-color: white; border-radius: 12px; -gtk-icon-effect: none; } .notification-row .notification-background .notification .notification-default-action .notification-content .inline-reply { /* The inline reply section */ margin-top: 4px; } .notification-row .notification-background .notification .notification-default-action .notification-content .inline-reply .inline-reply-entry { background: $notify-bg-darker; color: $foreground; caret-color: $foreground; border: 1px solid $notify-border-color; border-radius: 12px; } .notification-row .notification-background .notification .notification-default-action .notification-content .inline-reply .inline-reply-button { margin-left: 4px; background: $notify-bg; border: 1px solid $notify-border-color; border-radius: 12px; color: $foreground; } .notification-row .notification-background .notification .notification-default-action .notification-content .inline-reply .inline-reply-button:disabled { background: initial; color: $foreground-disabled; border: 1px solid $notify-border-color; border-color: transparent; } .notification-row .notification-background .notification .notification-default-action .notification-content .inline-reply .inline-reply-button:hover { background: $notify-bg-hover; } .notification-row .notification-background .notification .notification-action { /* The alternative actions below the default action */ border-top: 1px solid $notify-border-color; border-radius: 0px; border-right: 1px solid $notify-border-color; } .notification-row .notification-background .notification .notification-action:first-child { /* add bottom border radius to eliminate clipping */ border-bottom-left-radius: 12px; } .notification-row .notification-background .notification .notification-action:last-child { border-bottom-right-radius: 12px; border-right: none; }