[libadwaita/wip/exalm/stylesheet2: 89/97] stylesheet: Split expander styles into a separate file




commit 0b2c080e4530074c1425a15c5416d586208473ee
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Fri Apr 9 14:14:10 2021 +0500

    stylesheet: Split expander styles into a separate file

 src/stylesheet/_common.scss            | 28 ----------------------------
 src/stylesheet/_widgets.scss           |  1 +
 src/stylesheet/meson.build             |  1 +
 src/stylesheet/widgets/_expanders.scss | 23 +++++++++++++++++++++++
 4 files changed, 25 insertions(+), 28 deletions(-)
---
diff --git a/src/stylesheet/_common.scss b/src/stylesheet/_common.scss
index 13dae04..503afd0 100644
--- a/src/stylesheet/_common.scss
+++ b/src/stylesheet/_common.scss
@@ -211,34 +211,6 @@ separator {
 }
 
 
-/*************
- * Expanders *
- *************/
-expander {
-  min-width: 16px;
-  min-height: 16px;
-  -gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
-  &:dir(rtl) { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic-rtl'); }
-
-  &:disabled { color: $insensitive_fg_color; }
-
-  &:checked { -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); }
-}
-
-expander-widget {
-  @include focus-ring("> box > title");
-
-  > box > title {
-    transition: $focus_transition;
-    border-radius: $button_radius;
-
-    &:hover > expander {
-      color: lighten($fg_color,30%); //only lightens the icon
-    }
-  }
-}
-
-
 /**************
  * GtkVideo *
  **************/
diff --git a/src/stylesheet/_widgets.scss b/src/stylesheet/_widgets.scss
index 21ffc9f..237dfc5 100644
--- a/src/stylesheet/_widgets.scss
+++ b/src/stylesheet/_widgets.scss
@@ -5,6 +5,7 @@
 @import 'widgets/dropdowns';
 @import 'widgets/emoji-chooser';
 @import 'widgets/entries';
+@import 'widgets/expanders';
 @import 'widgets/file-chooser';
 @import 'widgets/header-bar';
 @import 'widgets/level-bar';
diff --git a/src/stylesheet/meson.build b/src/stylesheet/meson.build
index 4770696..0a32665 100644
--- a/src/stylesheet/meson.build
+++ b/src/stylesheet/meson.build
@@ -27,6 +27,7 @@ if not fs.exists('Adwaita-light.css')
       'widgets/_dropdowns.scss',
       'widgets/_emoji-chooser.scss',
       'widgets/_entries.scss',
+      'widgets/_expanders.scss',
       'widgets/_file-chooser.scss',
       'widgets/_header-bar.scss',
       'widgets/_level-bar.scss',
diff --git a/src/stylesheet/widgets/_expanders.scss b/src/stylesheet/widgets/_expanders.scss
new file mode 100644
index 0000000..9c45ad7
--- /dev/null
+++ b/src/stylesheet/widgets/_expanders.scss
@@ -0,0 +1,23 @@
+expander {
+  min-width: 16px;
+  min-height: 16px;
+  -gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
+  &:dir(rtl) { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic-rtl'); }
+
+  &:disabled { color: $insensitive_fg_color; }
+
+  &:checked { -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); }
+}
+
+expander-widget {
+  @include focus-ring("> box > title");
+
+  > box > title {
+    transition: $focus_transition;
+    border-radius: $button_radius;
+
+    &:hover > expander {
+      color: lighten($fg_color,30%); //only lightens the icon
+    }
+  }
+}


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