[gnome-shell-sass] dialog: Add MessageDialogContent



commit 8e42cb424f727d9bf5be4f70971042760c5925ee
Author: Florian Müllner <fmuellner gnome org>
Date:   Sat Jul 15 06:01:37 2017 +0200

    dialog: Add MessageDialogContent
    
    A lot of our modal dialogs share a similar structure:
    
     [Icon]   Some title
              Maybe a subtitle
    
              And sometimes even a body for stuff like
              longer descriptions.
    
    While a dedicated widget doesn't save much in terms of code, it does
    allow us to use consistent styling without duplicating a lot of CSS.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=784985

 _common.scss |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)
---
diff --git a/_common.scss b/_common.scss
index 78537bf..2cd202e 100644
--- a/_common.scss
+++ b/_common.scss
@@ -205,6 +205,31 @@ StScrollBar {
     @include fontsize($font-size * 1.3);
   }
 
+/* Message Dialog */
+  .message-dialog-main-layout {
+    padding: 12px 20px 0;
+    spacing: 12px;
+  }
+
+  .message-dialog-content {
+    max-width: 28em;
+    spacing: 20px;
+  }
+
+  .message-dialog-icon {
+    min-width: 48px;
+    icon-size: 48px;
+  }
+
+  .message-dialog-title {
+    font-weight: bold;
+  }
+
+  .message-dialog-subtitle {
+    color: darken($fg_color,40%);
+    font-weight: bold;
+  }
+
 /* End Session Dialog */
 .end-session-dialog {
   spacing: 42px;


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