[gtk/matthiasc/for-master: 7/8] Adwaita: Allow separators on individual list items



commit c80ba49a6024d4837e6eac97b778fd3a9953e9e2
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jun 12 09:20:46 2020 -0400

    Adwaita: Allow separators on individual list items
    
    Allow setting a .separator style class on list items
    to put a separator before the item.

 gtk/theme/Adwaita/_common.scss | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 748702eb89..d2ed052b06 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -3012,9 +3012,11 @@ list {
   > row.expander { padding: 0px; }
   > row.expander .row-header { padding: 2px; }
 
+  &.horizontal row.separator:not(:first-child),
   &.separators.horizontal row:not(:first-child) {
     border-left: 1px solid $borders_color;
   }
+  &:not(.horizontal) row.separator:not(:first-child),
   &.separators:not(.horizontal) row:not(:first-child) {
     border-top: 1px solid $borders_color;
   }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]