[gnome-themes-standard] Use .scale not GtkScale in css matchers



commit 71193223ee39e811379e65039eee44de16f2f1e8
Author: Alexander Larsson <alexl redhat com>
Date:   Tue Jun 12 15:54:51 2012 +0200

    Use .scale not GtkScale in css matchers
    
    This means you can match the scale rules for non-GtkScale widgets

 themes/Adwaita/gtk-3.0/gtk-widgets-assets-dark.css |   56 ++++++++++----------
 themes/Adwaita/gtk-3.0/gtk-widgets-assets.css      |   56 ++++++++++----------
 themes/Adwaita/gtk-3.0/gtk-widgets-backgrounds.css |    4 +-
 themes/Adwaita/gtk-3.0/gtk-widgets.css             |   52 +++++++++---------
 4 files changed, 84 insertions(+), 84 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets-assets-dark.css b/themes/Adwaita/gtk-3.0/gtk-widgets-assets-dark.css
index d3b2901..4609f37 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets-assets-dark.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets-assets-dark.css
@@ -195,104 +195,104 @@
     background-image: url("assets/sidebar-radio-selected-prelight.svg");    
 }
 
-GtkScale.slider,
-GtkScale.slider.horizontal {
+.scale.slider,
+.scale.slider.horizontal {
     background-image: url("assets/scale-slider-horz-dark.png");
 }
 
-GtkScale.slider:backdrop,
-GtkScale.slider.horizontal:backdrop {
+.scale.slider:backdrop,
+.scale.slider.horizontal:backdrop {
     background-image: url("assets/scale-slider-horz-backdrop-dark.png");
 }
 
-GtkScale.slider:insensitive,
-GtkScale.slider.horizontal:insensitive {
+.scale.slider:insensitive,
+.scale.slider.horizontal:insensitive {
     background-image: url("assets/scale-slider-horz-insensitive-dark.png");
 }
 
-GtkScale.slider:backdrop:insensitive,
-GtkScale.slider.horizontal:backdrop:insensitive {
+.scale.slider:backdrop:insensitive,
+.scale.slider.horizontal:backdrop:insensitive {
     background-image: url("assets/scale-slider-horz-backdrop-insensitive-dark.png");
 }
 
 
-GtkScale.slider.vertical {
+.scale.slider.vertical {
     background-image: url("assets/scale-slider-vert-dark.png");
 }
 
-GtkScale.slider.vertical:backdrop {
+.scale.slider.vertical:backdrop {
     background-image: url("assets/scale-slider-vert-backdrop-dark.png");
 }
 
-GtkScale.slider.vertical:insensitive {
+.scale.slider.vertical:insensitive {
     background-image: url("assets/scale-slider-vert-insensitive-dark.png");
 }
 
-GtkScale.slider.vertical:backdrop:insensitive {
+.scale.slider.vertical:backdrop:insensitive {
     background-image: url("assets/scale-slider-vert-backdrop-insensitive-dark.png");
 }
 
-GtkScale.scale-has-marks-above.slider.horizontal {
+.scale.scale-has-marks-above.slider.horizontal {
     background-image: url("assets/scale-slider-up-dark.png");
 }
 
-GtkScale.scale-has-marks-above.slider.horizontal:insensitive {
+.scale.scale-has-marks-above.slider.horizontal:insensitive {
     background-image: url("assets/scale-slider-up-insensitive-dark.png");
 }
 
-GtkScale.scale-has-marks-above.slider.horizontal:backdrop {
+.scale.scale-has-marks-above.slider.horizontal:backdrop {
     background-image: url("assets/scale-slider-up-backdrop-dark.png");
 }
 
-GtkScale.scale-has-marks-above.slider.horizontal:backdrop:insensitive {
+.scale.scale-has-marks-above.slider.horizontal:backdrop:insensitive {
     background-image: url("assets/scale-slider-up-backdrop-insensitive-dark.png");
 }
 
-GtkScale.scale-has-marks-above.slider.vertical {
+.scale.scale-has-marks-above.slider.vertical {
     background-image: url("assets/scale-slider-left-dark.png");
 }
 
-GtkScale.scale-has-marks-above.slider.vertical:insensitive {
+.scale.scale-has-marks-above.slider.vertical:insensitive {
     background-image: url("assets/scale-slider-left-insensitive-dark.png");
 }
 
-GtkScale.scale-has-marks-above.slider.vertical:backdrop {
+.scale.scale-has-marks-above.slider.vertical:backdrop {
     background-image: url("assets/scale-slider-left-backdrop-dark.png");
 }
 
-GtkScale.scale-has-marks-above.slider.vertical:backdrop:insensitive {
+.scale.scale-has-marks-above.slider.vertical:backdrop:insensitive {
     background-image: url("assets/scale-slider-left-backdrop-insensitive-dark.png");
 }
 
-GtkScale.scale-has-marks-below.slider.horizontal {
+.scale.scale-has-marks-below.slider.horizontal {
     background-image: url("assets/scale-slider-down-dark.png");
 }
 
-GtkScale.scale-has-marks-below.slider.horizontal:insensitive {
+.scale.scale-has-marks-below.slider.horizontal:insensitive {
     background-image: url("assets/scale-slider-down-insensitive-dark.png");
 }
 
-GtkScale.scale-has-marks-below.slider.horizontal:backdrop {
+.scale.scale-has-marks-below.slider.horizontal:backdrop {
     background-image: url("assets/scale-slider-down-backdrop-dark.png");
 }
 
-GtkScale.scale-has-marks-below.slider.horizontal:backdrop:insensitive {
+.scale.scale-has-marks-below.slider.horizontal:backdrop:insensitive {
     background-image: url("assets/scale-slider-down-backdrop-insensitive-dark.png");
 }
 
-GtkScale.scale-has-marks-below.slider.vertical {
+.scale.scale-has-marks-below.slider.vertical {
     background-image: url("assets/scale-slider-right-dark.png");
 }
 
-GtkScale.scale-has-marks-below.slider.vertical:insensitive {
+.scale.scale-has-marks-below.slider.vertical:insensitive {
     background-image: url("assets/scale-slider-right-insensitive-dark.png");
 }
 
-GtkScale.scale-has-marks-below.slider.vertical:backdrop {
+.scale.scale-has-marks-below.slider.vertical:backdrop {
     background-image: url("assets/scale-slider-right-backdrop-dark.png");
 }
 
-GtkScale.scale-has-marks-below.slider.vertical:backdrop:insensitive {
+.scale.scale-has-marks-below.slider.vertical:backdrop:insensitive {
     background-image: url("assets/scale-slider-right-backdrop-insensitive-dark.png");
 }
 
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets-assets.css b/themes/Adwaita/gtk-3.0/gtk-widgets-assets.css
index 65719ab..72df00f 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets-assets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets-assets.css
@@ -216,104 +216,104 @@
 /*********************
  * GtkScale's slider *
  *********************/
-GtkScale.slider,
-GtkScale.slider.horizontal {
+.scale.slider,
+.scale.slider.horizontal {
     background-image: url("assets/scale-slider-horz.png");
 }
 
-GtkScale.slider:backdrop,
-GtkScale.slider.horizontal:backdrop {
+.scale.slider:backdrop,
+.scale.slider.horizontal:backdrop {
     background-image: url("assets/scale-slider-horz-backdrop.png");
 }
 
-GtkScale.slider:insensitive,
-GtkScale.slider.horizontal:insensitive {
+.scale.slider:insensitive,
+.scale.slider.horizontal:insensitive {
     background-image: url("assets/scale-slider-horz-insensitive.png");
 }
 
-GtkScale.slider:insensitive:backdrop,
-GtkScale.slider.horizontal:insensitive:backdrop {
+.scale.slider:insensitive:backdrop,
+.scale.slider.horizontal:insensitive:backdrop {
     background-image: url("assets/scale-slider-horz-backdrop-insensitive.png");
 }
 
 
-GtkScale.slider.vertical {
+.scale.slider.vertical {
     background-image: url("assets/scale-slider-vert.png");
 }
 
-GtkScale.slider.vertical:backdrop {
+.scale.slider.vertical:backdrop {
     background-image: url("assets/scale-slider-vert-backdrop.png");
 }
 
-GtkScale.slider.vertical:insensitive {
+.scale.slider.vertical:insensitive {
     background-image: url("assets/scale-slider-vert-insensitive.png");
 }
 
-GtkScale.slider.vertical:insensitive:backdrop {
+.scale.slider.vertical:insensitive:backdrop {
     background-image: url("assets/scale-slider-vert-backdrop-insensitive.png");
 }
 
-GtkScale.scale-has-marks-above.slider.horizontal {
+.scale.scale-has-marks-above.slider.horizontal {
     background-image: url("assets/scale-slider-up.png");
 }
 
-GtkScale.scale-has-marks-above.slider.horizontal:insensitive {
+.scale.scale-has-marks-above.slider.horizontal:insensitive {
     background-image: url("assets/scale-slider-up-insensitive.png");
 }
 
-GtkScale.scale-has-marks-above.slider.horizontal:backdrop {
+.scale.scale-has-marks-above.slider.horizontal:backdrop {
     background-image: url("assets/scale-slider-up-backdrop.png");
 }
 
-GtkScale.scale-has-marks-above.slider.horizontal:backdrop:insensitive {
+.scale.scale-has-marks-above.slider.horizontal:backdrop:insensitive {
     background-image: url("assets/scale-slider-up-backdrop-insensitive.png");
 }
 
-GtkScale.scale-has-marks-above.slider.vertical {
+.scale.scale-has-marks-above.slider.vertical {
     background-image: url("assets/scale-slider-left.png");
 }
 
-GtkScale.scale-has-marks-above.slider.vertical:insensitive {
+.scale.scale-has-marks-above.slider.vertical:insensitive {
     background-image: url("assets/scale-slider-left-insensitive.png");
 }
 
-GtkScale.scale-has-marks-above.slider.vertical:backdrop {
+.scale.scale-has-marks-above.slider.vertical:backdrop {
     background-image: url("assets/scale-slider-left-backdrop.png");
 }
 
-GtkScale.scale-has-marks-above.slider.vertical:backdrop:insensitive {
+.scale.scale-has-marks-above.slider.vertical:backdrop:insensitive {
     background-image: url("assets/scale-slider-left-backdrop-insensitive.png");
 }
 
-GtkScale.scale-has-marks-below.slider.horizontal {
+.scale.scale-has-marks-below.slider.horizontal {
     background-image: url("assets/scale-slider-down.png");
 }
 
-GtkScale.scale-has-marks-below.slider.horizontal:insensitive {
+.scale.scale-has-marks-below.slider.horizontal:insensitive {
     background-image: url("assets/scale-slider-down-insensitive.png");
 }
 
-GtkScale.scale-has-marks-below.slider.horizontal:backdrop {
+.scale.scale-has-marks-below.slider.horizontal:backdrop {
     background-image: url("assets/scale-slider-down-backdrop.png");
 }
 
-GtkScale.scale-has-marks-below.slider.horizontal:backdrop:insensitive {
+.scale.scale-has-marks-below.slider.horizontal:backdrop:insensitive {
     background-image: url("assets/scale-slider-down-backdrop-insensitive.png");
 }
 
-GtkScale.scale-has-marks-below.slider.vertical {
+.scale.scale-has-marks-below.slider.vertical {
     background-image: url("assets/scale-slider-right.png");
 }
 
-GtkScale.scale-has-marks-below.slider.vertical:insensitive {
+.scale.scale-has-marks-below.slider.vertical:insensitive {
     background-image: url("assets/scale-slider-right-insensitive.png");
 }
 
-GtkScale.scale-has-marks-below.slider.vertical:backdrop {
+.scale.scale-has-marks-below.slider.vertical:backdrop {
     background-image: url("assets/scale-slider-right-backdrop.png");
 }
 
-GtkScale.scale-has-marks-below.slider.vertical:backdrop:insensitive {
+.scale.scale-has-marks-below.slider.vertical:backdrop:insensitive {
     background-image: url("assets/scale-slider-right-backdrop-insensitive.png");
 }
 
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets-backgrounds.css b/themes/Adwaita/gtk-3.0/gtk-widgets-backgrounds.css
index 6d1f2db..df69af6 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets-backgrounds.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets-backgrounds.css
@@ -213,7 +213,7 @@ GtkComboBox.combobox-entry .button:insensitive:backdrop {
 
 /* Active switch background*/
 GtkSwitch.trough:active,
-GtkScale.progressbar {
+.scale.progressbar {
     background-color: transparent;
     background-image: -gtk-gradient (linear,
                                      left top, left bottom,
@@ -231,7 +231,7 @@ GtkSwitch.trough:active:backdrop {
     background-image: none;
 }
 
-GtkScale.progressbar.vertical {
+.scale.progressbar.vertical {
     background-color: transparent;
     background-image: -gtk-gradient (linear,
                                      left top, right top,
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets.css b/themes/Adwaita/gtk-3.0/gtk-widgets.css
index 81e33f3..6d64789 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets.css
@@ -607,17 +607,17 @@ GtkProgressBar.vertical:backdrop,
 /************
  * GtkScale *
  ************/
-GtkScale {
+.scale {
     -GtkScale-slider-length: 16;
     -GtkRange-slider-width: 20;
     -GtkRange-trough-border: 0;
 }
 
-GtkScale.slider,
-GtkScale.slider:hover,
-GtkScale.slider:insensitive,
-GtkScale.slider:backdrop,
-GtkScale.slider:insensitive:backdrop {
+.scale.slider,
+.scale.slider:hover,
+.scale.slider:insensitive,
+.scale.slider:backdrop,
+.scale.slider:insensitive:backdrop {
     border-radius: 0;
     border-style: none;
 
@@ -626,68 +626,68 @@ GtkScale.slider:insensitive:backdrop {
     /* background-image in -assets variant */
 }
 
-GtkScale.trough {
+.scale.trough {
     margin: 8px 0;
 }
 
-GtkScale.trough.vertical {
+.scale.trough.vertical {
     margin: 0 8px;
 }
 
-GtkScale.trough,
-GtkScale.trough.highlight,
-GtkScale.trough.vertical,
-GtkScale.trough:backdrop {
+.scale.trough,
+.scale.trough.highlight,
+.scale.trough.vertical,
+.scale.trough:backdrop {
     border-width: 1px;
     border-image: none;
     border-style: solid;
 }
 
-GtkScale.trough,
-GtkScale.trough.highlight,
-GtkScale.trough.vertical {
+.scale.trough,
+.scale.trough.highlight,
+.scale.trough.vertical {
     border-color: @borders;
 }
 
-GtkScale.trough:backdrop {
+.scale.trough:backdrop {
     border-color: @unfocused_borders;
 }
 
-GtkScale.trough:insensitive {
+.scale.trough:insensitive {
     background-color: @insensitive_bg_color;
     border-color: @insensitive_borders;
     box-shadow: none;
     background-image: none;
 }
 
-GtkScale.progressbar {
+.scale.progressbar {
     background-color: @scale_progress_fill;
 }
 
-GtkScale.progressbar:backdrop {
+.scale.progressbar:backdrop {
     background-color: @unfocused_borders;
 }
 
-GtkScale.mark {
+.scale.mark {
     color: alpha(@theme_fg_color, 0.3);
 }
 
-GtkScale.trough.vertical {
+.scale.trough.vertical {
     box-shadow: inset -1px 0 @theme_bg_color;
 }
 
-GtkScale.trough {
+.scale.trough {
     box-shadow: inset 0 -1px @theme_bg_color;
 }
 
-GtkScale.trough:backdrop {
+.scale.trough:backdrop {
     box-shadow: none;
     border-color: @unfocused_borders;
     background-color: @unfocused_dark_bg;
     background-image: none;
 }
 
-GtkScale.trough:insensitive:backdrop {
+.scale.trough:insensitive:backdrop {
     background-color: @unfocused_insensitive_bg_color;
     border-color: @unfocused_insensitive_borders;
     box-shadow: none;
@@ -2203,7 +2203,7 @@ GtkOverlay.osd {
     background-color: @osd_fg;
 }
 
-.osd GtkScale.trough {
+.osd .scale.trough {
     border-color: @osd_button_border;
     background-image: -gtk-gradient(linear, left top, left bottom,
                                     from(shade(@osd_button_border, 0.70)),
@@ -2266,7 +2266,7 @@ GtkSwitch {
     font: bold condensed 10;
 }
 
-GtkScale.progressbar,
+.scale.progressbar,
 GtkSwitch.trough:active {
     color: @switch_trough_active_color;
 }



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