changeset 805:f2a76ee020f6

browser_side: improve CSS alignements of the dialogs' widgets
author souliane <souliane@mailoo.org>
date Sat, 12 Dec 2015 12:50:43 +0100
parents 1f054ba3245e
children cab7bf950fa0
files src/browser/public/libervia.css src/browser/sat_browser/menu.py
diffstat 2 files changed, 28 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/browser/public/libervia.css	Tue Dec 15 13:04:20 2015 +0100
+++ b/src/browser/public/libervia.css	Sat Dec 12 12:50:43 2015 +0100
@@ -364,7 +364,7 @@
     text-shadow: 1px 1px 1px rgba(0,0,0,0.25);  
 }
 
-.gwt-DialogBox .gwt-TextBox {
+.gwt-DialogBox .gwt-TextBox, .gwt-DialogBox .gwt-PasswordTextBox {
     background-color: #fff;
     border-radius: 5px 5px 5px 5px;
     -webkit-box-shadow:inset 0px 1px 4px #000;
@@ -396,7 +396,7 @@
     -webkit-box-shadow:inset 0px 1px 4px #000;
     box-shadow:inset 0px 1px 4px #000;
     padding: 3px 5px 3px 5px;
-    margin: 10px 5px 10px 5px;
+    margin: 9px 5px 9px 5px;
     color: #444;
     font-size: 1em;
     border: none;
@@ -406,6 +406,24 @@
     margin-top: 13px;
 }
 
+.gwt-DialogBox .gwt-CheckBox {
+    margin-top: 12px;
+    display: block;
+}
+
+.gwt-DialogBox .gwt-RadioButton {
+    margin-top: 13px;
+    display: block;
+}
+
+.gwt-DialogBox .gwt-RadioButton label {
+    vertical-align: bottom;
+}
+
+.gwt-DialogBox tr td:first-child {
+    vertical-align: top !important;
+}
+
 /* Custom Dialogs */
 
 .formWarning { /* used when a form is not valid and must be corrected before submission */
@@ -1646,3 +1664,10 @@
     max-width: 100%;
     float: right;
 }
+
+.parameters {
+}
+
+.parameters .xmlui-JidsListWidget {
+    height: auto;
+}
--- a/src/browser/sat_browser/menu.py	Tue Dec 15 13:04:20 2015 +0100
+++ b/src/browser/sat_browser/menu.py	Sat Dec 12 12:50:43 2015 +0100
@@ -149,8 +149,8 @@
                 return
             body = xmlui.create(self.host, xml_ui)
             _dialog = dialog.GenericDialog("Parameters", body, options=['NO_CLOSE'])
+            _dialog.addStyleName("parameters")
             body.setCloseCb(_dialog.close)
-            _dialog.setSize('80%', '80%')
             _dialog.show()
         self.host.bridge.getParamsUI(profile=C.PROF_KEY_NONE, callback=gotParams)