# HG changeset patch # User souliane # Date 1380188035 -7200 # Node ID f3a5a094c8d6e5f70ecfb71b80fbe485d0002dd2 # Parent 624a873774123482b0fcf118f3f4cfad7d30f460 browser_side: center the buttons of GenericConfirmDialog diff -r 624a87377412 -r f3a5a094c8d6 browser_side/dialog.py --- 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)) diff -r 624a87377412 -r f3a5a094c8d6 public/libervia.css --- 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 {