[gnome-themes-standard: 22/26] css: cleanup a bit the file



commit 5855c1d0a589f26110e157b6354864960d5ba52c
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Mar 3 22:14:18 2011 -0500

    css: cleanup a bit the file

 themes/Adwaita/gtk-3.0/gtk.css |  152 ++++++++++++++++++++--------------------
 1 files changed, 77 insertions(+), 75 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/gtk.css b/themes/Adwaita/gtk-3.0/gtk.css
index 1bf47a1..5df67a1 100644
--- a/themes/Adwaita/gtk-3.0/gtk.css
+++ b/themes/Adwaita/gtk-3.0/gtk.css
@@ -178,6 +178,12 @@
     border-radius: 0;
 }
 
+.tooltip {
+    padding: 4 4;
+    background-color: @theme_tooltip_bg_color;
+    color: @theme_tooltip_fg_color;
+}
+
 /****************
  * Text Entries *
  ****************/
@@ -611,22 +617,6 @@ GtkComboBox .button {
     background-image: url ("assets/radio-mixed.svg");
 }
 
-GtkStatusbar {
-    padding: 5;
-    color: @theme_fg_color;
-    -GtkStatusbar-shadow-type: none;
-}
-
-column-header {
-    padding: 1 2;
-}
-
-.tooltips {
-    padding: 4 4;
-    background-color: @theme_tooltip_bg_color;
-    color: @theme_tooltip_fg_color;
-}
-
 /************
  * Toolbars *
  ************/
@@ -744,6 +734,68 @@ EggEditableToolbar .toolbar {
     -GtkWidget-separator-width: 1;
 }
 
+/*************
+ * GtkSwitch *
+ *************/
+GtkSwitch.trough {
+    color: @internal_element_color;
+    border-radius: 1;
+    border-width: 1;
+    border-style: solid;
+    border-color: shade (@frame_color, 1.22);
+    background-image: -gtk-gradient (linear,
+                                     left top, left bottom,
+                                     from (@trough_bg_color_b),
+                                     to (@trough_bg_color_a));
+}
+
+GtkSwitch.trough:active {
+    color: @theme_base_color;
+    border-color: shade (@theme_selected_bg_color, 0.66);
+    background-image: -gtk-gradient (linear,
+                                     left top, left bottom,
+                                     from (@active_switch_bg_color_a),
+                                     to (@active_switch_bg_color_b));
+}
+
+GtkSwitch.trough:insensitive {
+    background-image: none;
+    background-color: shade (@theme_bg_color, 0.9);
+    border-color: shade (@inactive_frame_color, 0.845);
+}
+
+GtkSwitch.slider {
+    border-width: 1;
+    border-radius: 1;
+    border-color: shade (@frame_color, 1.31);
+    border-style: solid;
+    padding: 2;
+    background-image: -gtk-gradient (linear,
+                                     left top, left bottom,
+                                     from (@switch_slider_color),
+                                     color-stop (0.02, @switch_slider_color),
+                                     color-stop (0.03, @theme_base_color),
+                                     color-stop (0.85, @switch_slider_color),
+                                     color-stop (0.86, shade (@switch_slider_color, 1.03)),
+                                     to (shade (@switch_slider_color, 1.03)));
+}
+
+GtkSwitch.slider:active {
+    border-color: @switch_slider_border;
+}
+
+GtkSwitch.slider:insensitive {
+    border-style: none;
+    background-image: none;
+    background-color: @insensitive_bg_color;
+}
+
+GtkStatusbar {
+    padding: 5;
+    color: @theme_fg_color;
+    -GtkStatusbar-shadow-type: none;
+}
+
 GtkScrolledWindow.frame {
     border-style: solid;
     border-color: darker (@theme_bg_color);
@@ -753,23 +805,26 @@ GtkScrolledWindow.frame {
 }
 
 GtkViewport,
-GtkTreeView,
 GtkIconView {
     border-radius: 3;
     padding: 0;
 }
 
-GtkTreeView * {
-    border-radius: 0;
-    border-width: 0;
-}
-
 .view {
     background-color: @theme_base_color;
     color: @theme_fg_color;
     border-radius: 0;
 }
 
+GtkTreeView {
+    border-radius: 3;
+    border-width: 0;
+}
+
+column-header {
+    padding: 1 2;
+}
+
 row:selected:focused {
     background-image: -gtk-gradient (linear,
 				     left top,
@@ -814,59 +869,6 @@ column-header .button {
     color: lighter (@theme_bg_color);
 }
 
-GtkSwitch.trough {
-    color: @internal_element_color;
-    border-radius: 1;
-    border-width: 1;
-    border-style: solid;
-    border-color: shade (@frame_color, 1.22);
-    background-image: -gtk-gradient (linear,
-                                     left top, left bottom,
-                                     from (@trough_bg_color_b),
-                                     to (@trough_bg_color_a));
-}
-
-GtkSwitch.trough:active {
-    color: @theme_base_color;
-    border-color: shade (@theme_selected_bg_color, 0.66);
-    background-image: -gtk-gradient (linear,
-                                     left top, left bottom,
-                                     from (@active_switch_bg_color_a),
-                                     to (@active_switch_bg_color_b));
-}
-
-GtkSwitch.trough:insensitive {
-    background-image: none;
-    background-color: shade (@theme_bg_color, 0.9);
-    border-color: shade (@inactive_frame_color, 0.845);
-}
-
-GtkSwitch.slider {
-    border-width: 1;
-    border-radius: 1;
-    border-color: shade (@frame_color, 1.31);
-    border-style: solid;
-    padding: 2;
-    background-image: -gtk-gradient (linear,
-                                     left top, left bottom,
-                                     from (@switch_slider_color),
-                                     color-stop (0.02, @switch_slider_color),
-                                     color-stop (0.03, @theme_base_color),
-                                     color-stop (0.85, @switch_slider_color),
-                                     color-stop (0.86, shade (@switch_slider_color, 1.03)),
-                                     to (shade (@switch_slider_color, 1.03)));
-}
-
-GtkSwitch.slider:active {
-    border-color: @switch_slider_border;
-}
-
-GtkSwitch.slider:insensitive {
-    border-style: none;
-    background-image: none;
-    background-color: @insensitive_bg_color;
-}
-
 /* Calendars */
 GtkCalendar.view {
     border-radius: 3;



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