[libadwaita/wip/exalm/resize-area] stylesheet: fix solid-csd style




commit 2956cfef5c7b1907af4b17f1d65ab3c8bfe2a1a0
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Tue Apr 20 22:02:10 2021 +0300

    stylesheet: fix solid-csd style
    
    Move .solid-csd style out of .csd parent and adjust it so windows
    look similar / same to GTK 3 windows:
    - 4px padding.
    - extra shadow.
    
    https://gitlab.gnome.org/GNOME/gtk/-/issues/3879#note_1086351
    https://gitlab.gnome.org/GNOME/gtk/-/issues/3879#note_1086377
    
    ---
    
    Remove the top highlight as we don't have it on header bars either anymore
    and it will be the only instance in the whole stylesheet using that color.
    
    Fixes https://gitlab.gnome.org/GNOME/libadwaita/-/issues/142

 src/stylesheet/widgets/_window.scss | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)
---
diff --git a/src/stylesheet/widgets/_window.scss b/src/stylesheet/widgets/_window.scss
index 5254e20..ce65e42 100644
--- a/src/stylesheet/widgets/_window.scss
+++ b/src/stylesheet/widgets/_window.scss
@@ -34,17 +34,16 @@ window {
       box-shadow: 0 1px 2px transparentize(black, 0.8),
                   0 0 0 1px transparentize($_wm_border, 0.1);
     }
+  }
 
-    &.solid-csd {
-      margin: 0;
-      padding: 0;
-      border: solid 1px $borders_color;
-      border-radius: 0;
-      outline: none;
-      box-shadow: inset 0 0 0 3px $headerbar_bg_color, inset 0 1px $top_hilight;
+  &.solid-csd {
+    margin: 0;
+    padding: 4px;
+    border: solid 1px $borders_color;
+    border-radius: 0;
+    box-shadow: inset 0 0 0 4px $borders_color, inset 0 0 0 3px $headerbar_bg_color;
 
-      &:backdrop { box-shadow: inset 0 0 0 3px $backdrop_bg_color, inset 0 1px $top_hilight; }
-    }
+    &:backdrop { box-shadow: inset 0 0 0 4px $borders_color, inset 0 0 0 3px $backdrop_bg_color; }
   }
 
   &.maximized,


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