[libadwaita] stylesheet: Use bottom border for boxed list rows



commit 5cac61674bd94f131d816e6dfcf27e13912f13c2
Author: Romain Vigier <romain romainvigier fr>
Date:   Wed Sep 15 15:09:34 2021 +0200

    stylesheet: Use bottom border for boxed list rows
    
    Fix the double border when using `show-separators=true` with `.content` class name.

 src/stylesheet/widgets/_lists.scss | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/stylesheet/widgets/_lists.scss b/src/stylesheet/widgets/_lists.scss
index a26c201c..39a8dd0e 100644
--- a/src/stylesheet/widgets/_lists.scss
+++ b/src/stylesheet/widgets/_lists.scss
@@ -148,7 +148,7 @@ listview.inline {
 
 %boxed_list_row {
   transition: 200ms $ease-out-quad;
-    border-top: 1px solid $borders_color;
+  border-bottom: 1px solid $borders_color;
 
   &:not(:selected).activatable {
     &.has-open-popup,
@@ -240,12 +240,10 @@ listview.content {
       &, &.expander row.header {
         border-top-left-radius: 8px;
         border-top-right-radius: 8px;
-        border-top: none;
       }
     }
 
     // Bottom border
-    &:last-child,
     &.checked-expander-row-previous-sibling,
     &.expander:checked {
       border-width: 1px;
@@ -260,6 +258,7 @@ listview.content {
       &.expander:checked list.nested > row:last-child {
         border-bottom-left-radius: 8px;
         border-bottom-right-radius: 8px;
+        border-bottom-width: 0;
       }
     }
   }


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