From 64bff3e160431ac1dd3b3563035928030d54d485 Mon Sep 17 00:00:00 2001 From: vinceliuice Date: Thu, 18 Apr 2024 08:42:47 +0800 Subject: [PATCH] update --- src/sass/gnome-shell/common/_calendar.scss | 2 +- .../widgets-46-0/_message-list.scss | 5 ++- .../widgets-46-0/_notifications.scss | 45 ++++++++++--------- 3 files changed, 28 insertions(+), 24 deletions(-) diff --git a/src/sass/gnome-shell/common/_calendar.scss b/src/sass/gnome-shell/common/_calendar.scss index 5630a090..3f466789 100644 --- a/src/sass/gnome-shell/common/_calendar.scss +++ b/src/sass/gnome-shell/common/_calendar.scss @@ -293,7 +293,7 @@ $popover_bubble_bg: if($variant == 'light', rgba(white, 0.95), rgba(lighten($bas .events-button { @extend %popover_bubble; padding: $base_padding * 3 !important; - margin: 3px 4px !important; + margin: 4px !important; } // Events diff --git a/src/sass/gnome-shell/widgets-46-0/_message-list.scss b/src/sass/gnome-shell/widgets-46-0/_message-list.scss index 6660c715..510d569f 100644 --- a/src/sass/gnome-shell/widgets-46-0/_message-list.scss +++ b/src/sass/gnome-shell/widgets-46-0/_message-list.scss @@ -80,7 +80,6 @@ $card_bg: if($variant == 'light', rgba(white, 0.95), rgba(lighten($base_color, 8 background-color: $card_bg; box-shadow: 0 1px 2px 0 rgba(black, 0.02); // bit of a hack here with border since we can't have double box-shadow - border: 1px solid transparent; color: $alt_fg_color; &:hover, &:focus { @@ -105,6 +104,8 @@ $card_bg: if($variant == 'light', rgba(white, 0.95), rgba(lighten($base_color, 8 // message bubbles .message { @extend %card; + border: 1px solid transparent; + border-left: none; // subtract side padding to accommodate the close button's border &:ltr { padding-right:-2px; } @@ -162,7 +163,7 @@ $card_bg: if($variant == 'light', rgba(white, 0.95), rgba(lighten($base_color, 8 } .message-expand-button { - padding: 6px; + padding: 4px; &:ltr { margin-right: $base_padding; } &:rtl { margin-left: $base_padding; } } diff --git a/src/sass/gnome-shell/widgets-46-0/_notifications.scss b/src/sass/gnome-shell/widgets-46-0/_notifications.scss index 2b02130c..82c06a61 100644 --- a/src/sass/gnome-shell/widgets-46-0/_notifications.scss +++ b/src/sass/gnome-shell/widgets-46-0/_notifications.scss @@ -11,37 +11,40 @@ $notification_banner_width: 34em; border-radius: $wm_radius; margin: $base_padding; padding: $scaled_padding; + border-left: 0; + border-bottom: 0; } .notification-buttons-bin { spacing: 0; + padding: 0; } .notification-button { - min-height: 40px; - padding: 0 16px; + min-height: 40px; + padding: 0 16px; + background-color: $fill_color; + color: $alt_fg_color; + font-weight: 500; + border: none; + margin-right: $scaled_padding !important; + + &:focus { background-color: $base_color; - color: $alt_fg_color; - font-weight: 500; - border-width: 0; - margin-right: $scaled_padding !important; + color: $fg_color; + box-shadow: inset 0 0 0 2px $divider_color !important; + } - &:focus { - background-color: $base_color; - color: $fg_color; - box-shadow: inset 0 0 0 2px $divider_color !important; - } + &:hover { + background-color: $divider_color; + color: $fg_color; + box-shadow: none; + } - &:hover { - background-color: $divider_color; - color: $fg_color; - box-shadow: none; - } - - &:active, &:checked { - background-color: $track_color; - color: $fg_color; - } + &:active, &:checked { + background-color: $track_color; + color: $fg_color; + } &:insensitive { background-color: transparent;