From 7545faad5b524be41931a47999a621a7462222ca Mon Sep 17 00:00:00 2001 From: vinceliuice Date: Sun, 13 Nov 2022 12:58:58 +0800 Subject: [PATCH] update --- src/sass/gtk/_common-3.0.scss | 20 ++++++++++++++------ src/sass/gtk/apps/_gnome-3.22.scss | 17 ++++++++++++++--- 2 files changed, 28 insertions(+), 9 deletions(-) diff --git a/src/sass/gtk/_common-3.0.scss b/src/sass/gtk/_common-3.0.scss index 76e406a..24424de 100644 --- a/src/sass/gtk/_common-3.0.scss +++ b/src/sass/gtk/_common-3.0.scss @@ -3845,6 +3845,7 @@ stacksidebar { padding-left: $container_padding; padding-right: $container_padding; } + &.needs-attention > label { @extend %needs_attention; background-size: $container_padding $container_padding, 0 0; @@ -3904,17 +3905,24 @@ stacksidebar { background-clip: content-box; } - &.sidebar-new-bookmark-row { color: $selected_bg_color; } + &.sidebar-new-bookmark-row { + color: $selected_bg_color; + + &:drop(active):not(:disabled) { + &, label, .sidebar-icon { color: $selected_fg_color; } + background-color: $selected_bg_color; + } + } &:drop(active):not(:disabled) { + box-shadow: none; + background-color: rgba($drop_target_color, 0.15); + &, label, image { color: $drop_target_color; } - box-shadow: inset 0 1px $drop_target_color, - inset 0 -1px $drop_target_color; - &:selected { - &, label, image { color: $dark_sidebar_fg; } - background-color: $drop_target_color; + &, label, image { color: $drop_target_color; } + background-color: rgba($drop_target_color, 0.35); } } } diff --git a/src/sass/gtk/apps/_gnome-3.22.scss b/src/sass/gtk/apps/_gnome-3.22.scss index 01ae3b9..810ee4b 100644 --- a/src/sass/gtk/apps/_gnome-3.22.scss +++ b/src/sass/gtk/apps/_gnome-3.22.scss @@ -225,15 +225,26 @@ $nautilus_sidebar_image: image($dark_sidebar_bg); &.sidebar-new-bookmark-row { color: $selected_bg_color; + &:drop(active):not(:disabled) { + &, label, .sidebar-icon { color: $selected_fg_color; } + background-color: $selected_bg_color; + } + .sidebar-icon { color: inherit; } } &:drop(active):not(:disabled) { + border: none; + border-radius: 0; + background-color: rgba($dark_sidebar_fg, 0.15); + &, label, .sidebar-icon { color: $dark_sidebar_fg; } - &:selected { - &, label, .sidebar-icon { color: $dark_sidebar_fg; } - background-color: $drop_target_color; + &:selected.has-open-popup, + &:selected, &:selected:hover { + background-image: none; + background-color: rgba($selected_bg_color, 0.15); + &, label, .sidebar-icon { color: $selected_bg_color; } } } }