[libadwaita/wip/exalm/dialogs: 2/2] stylesheet: Split dialog styles into a separate file




commit 0043a7dd0c8ba67b9dcacdafaddd0ee7dd12f338
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Thu Jun 17 16:58:58 2021 +0500

    stylesheet: Split dialog styles into a separate file
    
    _misc.scss is growing too large.

 src/stylesheet/_widgets.scss         |  1 +
 src/stylesheet/meson.build           |  1 +
 src/stylesheet/widgets/_dialogs.scss | 51 ++++++++++++++++++++++++++++++++
 src/stylesheet/widgets/_misc.scss    | 56 ------------------------------------
 4 files changed, 53 insertions(+), 56 deletions(-)
---
diff --git a/src/stylesheet/_widgets.scss b/src/stylesheet/_widgets.scss
index ae2a0206..fbf00430 100644
--- a/src/stylesheet/_widgets.scss
+++ b/src/stylesheet/_widgets.scss
@@ -3,6 +3,7 @@
 @import 'widgets/calendar';
 @import 'widgets/checks';
 @import 'widgets/color-chooser';
+@import 'widgets/dialogs';
 @import 'widgets/dropdowns';
 @import 'widgets/emoji-chooser';
 @import 'widgets/entries';
diff --git a/src/stylesheet/meson.build b/src/stylesheet/meson.build
index 6ea83706..4dbbfa9b 100644
--- a/src/stylesheet/meson.build
+++ b/src/stylesheet/meson.build
@@ -27,6 +27,7 @@ if not fs.exists('Adwaita-light.css')
       'widgets/_calendar.scss',
       'widgets/_checks.scss',
       'widgets/_color-chooser.scss',
+      'widgets/_dialogs.scss',
       'widgets/_dropdowns.scss',
       'widgets/_emoji-chooser.scss',
       'widgets/_entries.scss',
diff --git a/src/stylesheet/widgets/_dialogs.scss b/src/stylesheet/widgets/_dialogs.scss
new file mode 100644
index 00000000..bc3bb642
--- /dev/null
+++ b/src/stylesheet/widgets/_dialogs.scss
@@ -0,0 +1,51 @@
+.dialog-action-area {
+  margin: 6px;
+  border-spacing: 6px;
+}
+
+/****************
+ * Print dialog *
+*****************/
+
+window.dialog.print {
+  drawing {
+    color: $fg_color;
+    background: none;
+    border: none;
+    padding: 0;
+
+    paper {
+      background: white;
+      color: #2e3436;
+      border: 1px solid $borders_color;
+    }
+  }
+}
+
+/****************
+ * GtkAssistant *
+ ****************/
+
+window.assistant {
+  .sidebar {
+    padding: $menu-margin;
+    border-top: 1px solid $borders_color;
+  }
+
+  &.csd .sidebar { border-top-style: none; }
+
+  .sidebar > label { padding: 6px 12px; }
+
+  .sidebar > label.highlight {
+    background-color: $view_selected_color;
+    border-radius: $menu-margin;
+  }
+}
+
+/****************
+ * GtkAboutDialog *
+ ****************/
+
+window.aboutdialog image.large-icons {
+  -gtk-icon-size: 128px;
+}
diff --git a/src/stylesheet/widgets/_misc.scss b/src/stylesheet/widgets/_misc.scss
index b1d854e2..e5412db6 100644
--- a/src/stylesheet/widgets/_misc.scss
+++ b/src/stylesheet/widgets/_misc.scss
@@ -67,62 +67,6 @@ video {
   }
 }
 
-/***********
- * Dialogs *
-************/
-
-.dialog-action-area {
-  margin: 6px;
-  border-spacing: 6px;
-}
-
-/****************
- * Print dialog *
-*****************/
-
-window.dialog.print {
-  drawing {
-    color: $fg_color;
-    background: none;
-    border: none;
-    padding: 0;
-
-    paper {
-      background: white;
-      color: #2e3436;
-      border: 1px solid $borders_color;
-    }
-  }
-}
-
-/****************
- * GtkAssistant *
- ****************/
-
-window.assistant {
-  .sidebar {
-    padding: $menu-margin;
-    border-top: 1px solid $borders_color;
-  }
-
-  &.csd .sidebar { border-top-style: none; }
-
-  .sidebar > label { padding: 6px 12px; }
-
-  .sidebar > label.highlight {
-    background-color: $view_selected_color;
-    border-radius: $menu-margin;
-  }
-}
-
-/****************
- * GtkAboutDialog *
- ****************/
-
-window.aboutdialog image.large-icons {
-  -gtk-icon-size: 128px;
-}
-
 /****************
  * GtkStatusBar *
  ****************/


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