[gnome-themes-standard/wip/sass] removed a leftover from window box-shadow and rationalized code a bit



commit 95369c2f89d229173e47135cc738d3df1849faac
Author: Lapo Calamandrei <calamandrei gmail com>
Date:   Fri May 23 15:50:34 2014 +0200

    removed a leftover from window box-shadow and rationalized code a bit

 themes/Adwaita/gtk-3.0/_common.scss           |   13 +++++--------
 themes/Adwaita/gtk-3.0/gtk-contained-dark.css |    2 +-
 2 files changed, 6 insertions(+), 9 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/_common.scss b/themes/Adwaita/gtk-3.0/_common.scss
index 35e1574..f696984 100644
--- a/themes/Adwaita/gtk-3.0/_common.scss
+++ b/themes/Adwaita/gtk-3.0/_common.scss
@@ -656,16 +656,13 @@ GtkScrolledWindow.frame {
   border-radius: 7px 7px 0 0;
   /* lamefun trick to get rounded borders regardless of CSD use */
   border-width: 0px;
-  // the second box shadow is the window border
-  // it needs to be transparent, see bug #722563   
+  $_wm_border: transparentize(black, 0.8); // this needs to be transparent, 
+                                           // see bug #722563
   @if $variant == 'dark' { 
-    box-shadow: 0 2px 10px 4px transparentize(black, 0.9),
-                inset 0 0 0 1px transparentize(black, 0.4);
-  }
-  @else {
-    box-shadow: 0 2px 10px 4px transparentize(black, 0.9),
-                0 0 0 1px transparentize(black, 0.8);
+    $_wm_border: transparentize(black, 0.4); 
   }
+  box-shadow: 0 2px 10px 4px transparentize(black, 0.9),
+              0 0 0 1px $_wm_border;
 
   /* this is used for the resize cursor area */
   margin: 10px;
diff --git a/themes/Adwaita/gtk-3.0/gtk-contained-dark.css b/themes/Adwaita/gtk-3.0/gtk-contained-dark.css
index e18b48c..0551e67 100644
--- a/themes/Adwaita/gtk-3.0/gtk-contained-dark.css
+++ b/themes/Adwaita/gtk-3.0/gtk-contained-dark.css
@@ -661,7 +661,7 @@ GtkScrolledWindow.frame {
   border-radius: 7px 7px 0 0;
   /* lamefun trick to get rounded borders regardless of CSD use */
   border-width: 0px;
-  box-shadow: 0 2px 10px 4px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(0, 0, 0, 0.6);
+  box-shadow: 0 2px 10px 4px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.6);
   /* this is used for the resize cursor area */
   margin: 10px; }
   .window-frame:backdrop {


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