changeset 224:f3a5a094c8d6

browser_side: center the buttons of GenericConfirmDialog
author souliane <souliane@mailoo.org>
date Thu, 26 Sep 2013 11:33:55 +0200
parents 624a87377412
children 9b93a21dc5e2
files browser_side/dialog.py public/libervia.css
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/browser_side/dialog.py	Thu Sep 26 11:13:40 2013 +0200
+++ b/browser_side/dialog.py	Thu Sep 26 11:33:55 2013 +0200
@@ -110,6 +110,7 @@
         for wid in widgets:
             content.add(wid)
         button_panel = HorizontalPanel()
+        button_panel.addStyleName("marginAuto")
         self.confirm_button = Button("OK", self.onConfirm)
         button_panel.add(self.confirm_button)
         button_panel.add(Button("Cancel", self.onCancel))
--- a/public/libervia.css	Thu Sep 26 11:13:40 2013 +0200
+++ b/public/libervia.css	Thu Sep 26 11:33:55 2013 +0200
@@ -474,9 +474,9 @@
 .uniBox {
     height: 45px;
     padding: 5px;
-   border: 1px solid #bbb;
+    border: 1px solid #bbb;
     color: #444;
-   background: #fff url('media/libervia/unibox_2.png') top right no-repeat;    
+    background: #fff url('media/libervia/unibox_2.png') top right no-repeat;    
     box-shadow:inset 0 0 10px #ddd;
     -webkit-box-shadow:inset 0 0 10px #ddd; 
     -moz-box-shadow:inset 0 0 10px #ddd;
@@ -1112,6 +1112,10 @@
     height: 100%;
 }
 
+.marginAuto {
+    margin: auto;
+}
+
 /* URLs */
 
 a.url {