_notification.scss
ASCII text
1/* Notifications & Message Tray */ 2 3@use "../../../../theme"; 4@use "../../../../theme-color"; 5@use "../../../../shadow"; 6@use "../../gnome-shell"; 7@use "../../typography"; 8@use "../base/button"; 9@use "../base/entry"; 10 11// Banner notifications 12.notification-banner { 13min-height: theme.$menu-item-height * 2; 14width: 34em; 15margin: 5px; 16border: 0; 17border-radius: theme.$corner-radius; 18font-size: 1em; 19 20&, 21&:focus, 22&:hover, 23&:active { 24box-shadow: shadow.$z4; 25background-color: theme-color.$surface-z8; 26color: theme-color.$on-surface; 27} 28 29@if gnome-shell.$version == 3.34 { 30&, 31&:focus, 32&:active { 33.message-title { 34color: theme-color.$on-surface; 35} 36 37.message-content { 38color: theme-color.hint(theme-color.$on-surface); 39} 40} 41 42.message-icon-bin > StIcon { 43color: inherit; 44} 45 46StEntry { 47@extend %entry; 48} 49} 50 51.notification-actions { 52spacing: 0; 53padding-top: 0; 54border-top: 0; 55background-color: transparent; 56color: inherit; 57} 58 59.notification-button { 60@extend %bubble_button; 61} 62} 63 64// counter 65.summary-source-counter { 66-shell-counter-overlap-x: 3px; 67-shell-counter-overlap-y: 3px; 68height: 1.6em; 69width: 1.6em; 70border: 0; 71border-radius: .8em; 72box-shadow: shadow.$z4; 73background-color: theme-color.$primary; 74color: theme-color.$on-primary; 75font-weight: bold; 76font-size: 1em; 77} 78 79// chat bubbles 80.chat-body { 81spacing: 5px; 82} 83 84.chat-response { 85margin: 5px; 86} 87 88.chat-log-message { 89color: theme-color.$on-surface; 90} 91 92.chat-new-group { 93padding-top: 1em; 94} 95 96.chat-received { 97padding-left: 4px; 98 99&:rtl { 100padding-left: 0; 101padding-right: 4px; 102} 103} 104 105.chat-sent { 106padding-left: 18pt; 107color: theme-color.hint(theme-color.$on-surface); 108 109&:rtl { 110padding-left: 0; 111padding-right: 18pt; 112} 113} 114 115.chat-meta-message { 116padding-left: 4px; 117color: theme-color.hint(theme-color.$on-surface); 118@include typography.caption; 119 120&:rtl { 121padding-left: 0; 122padding-right: 4px; 123} 124} 125