From 4c858fbaf7820fcbbf12d7e69d16e8689f78debf Mon Sep 17 00:00:00 2001 From: Einar Egilsson Date: Sat, 7 Jan 2012 22:51:28 +0100 Subject: Fix config screen --- chrome/css/redirector.css | 5 +++++ chrome/help.html | 2 +- chrome/js/redirector-ui.js | 6 ++++++ chrome/redirector.html | 14 +++++++++----- 4 files changed, 21 insertions(+), 6 deletions(-) diff --git a/chrome/css/redirector.css b/chrome/css/redirector.css index 7903171..47b2028 100644 --- a/chrome/css/redirector.css +++ b/chrome/css/redirector.css @@ -33,8 +33,10 @@ li:first-child { border-top:none;} display:none; position:fixed; margin:auto; + width:300px; } +h2 { text-align:center; margin-top:0px; } button { border:solid 1px grey; border-radius:4px; background:-moz-linear-gradient(top, #ccc, #fff); cursor:pointer;} h5 { text-align:center; margin:0px; padding-left:130px; } .pattern, .redirectTo { color:blue; font-style:italic;} @@ -46,6 +48,9 @@ h5 { text-align:center; margin:0px; padding-left:130px; } #redirect-form div label{ text-align:right; padding:6px;} #redirect-form div input[type='text']{ margin-top:7px; width:300px; display:inline-block; } + +#config label{ display:inline; } +#config input { margin-top:10px; } .button-row { text-align:center; display:block !important;} .dialog { diff --git a/chrome/help.html b/chrome/help.html index 4534d96..a6a589b 100644 --- a/chrome/help.html +++ b/chrome/help.html @@ -3,7 +3,7 @@ Redirector Help diff --git a/chrome/js/redirector-ui.js b/chrome/js/redirector-ui.js index 30af176..53b8892 100644 --- a/chrome/js/redirector-ui.js +++ b/chrome/js/redirector-ui.js @@ -238,6 +238,12 @@ $(document).ready(function() { $('#configure').click(configure); $('#save').click(saveRedirect); $('#test-pattern').click(testPattern); + $('#close').click(function() { + $('#config').hide(); + }); + $('#help').click(function() { + window.location.href = "chrome://redirector/content/help.html"; + }); bindConfig(); prefs.addListener({ changedPrefs:bindConfig}); diff --git a/chrome/redirector.html b/chrome/redirector.html index 8af747e..6dcb39d 100644 --- a/chrome/redirector.html +++ b/chrome/redirector.html @@ -14,6 +14,7 @@ +

Configuration

- - - - -
+
+
+
+
+
+ +
+
-- cgit v1.2.3-70-g09d2