From 636a9a6ea73cf5ef3d5791e4997cd4f5bf2a8a1a Mon Sep 17 00:00:00 2001 From: Adrien Plazas Date: Wed, 23 Jan 2019 21:27:33 +0100 Subject: [PATCH] adwaita: Fix the greediness of row:not(.expander) This avoids list rows (e.g. the ones in a stack sidebar) to be accidentally selected and see their padding messed up. --- gtk/theme/Adwaita/_common.scss | 3 ++- gtk/theme/Adwaita/gtk-contained-dark.css | 4 +++- gtk/theme/Adwaita/gtk-contained.css | 4 +++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss index 369b651cb9..52ec52252f 100644 --- a/gtk/theme/Adwaita/_common.scss +++ b/gtk/theme/Adwaita/_common.scss @@ -3662,7 +3662,8 @@ list { border-color: $backdrop_borders_color; } - row:not(.expander) { padding: 2px; } + row { padding: 2px; } + row.expander { padding: 0px; } row.expander .row-header { padding: 2px; } } diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css index 814067a29a..dc867f3198 100644 --- a/gtk/theme/Adwaita/gtk-contained-dark.css +++ b/gtk/theme/Adwaita/gtk-contained-dark.css @@ -1590,7 +1590,9 @@ list { color: white; background-color: #26232d; border-color: #2a2a2b; } list:backdrop { background-color: #282530; border-color: #2f2e2f; } -list row:not(.expander) { padding: 2px; } +list row { padding: 2px; } + +list row.expander { padding: 0px; } list row.expander .row-header { padding: 2px; } diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css index d120401504..f3298c65e7 100644 --- a/gtk/theme/Adwaita/gtk-contained.css +++ b/gtk/theme/Adwaita/gtk-contained.css @@ -1610,7 +1610,9 @@ list { color: black; background-color: #ffffff; border-color: #dad6d2; } list:backdrop { background-color: #fcfcfc; border-color: #e0ddd9; } -list row:not(.expander) { padding: 2px; } +list row { padding: 2px; } + +list row.expander { padding: 0px; } list row.expander .row-header { padding: 2px; }