summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-05-08 00:40:36 -0400
committerJoey Hess <joey@kitenet.net>2010-05-08 00:40:36 -0400
commitac8a91fe06808191b4eded829cf118d70be2c585 (patch)
tree6c55213e07c0ae2bb67586ef7e27833a6c42e909
parentf05043ed80e9cae38168e8824852835bc950e962 (diff)
improve selector layout
-rw-r--r--doc/style.css2
-rw-r--r--underlays/openid-selector/ikiwiki/openid/openid-jquery.js18
2 files changed, 10 insertions, 10 deletions
diff --git a/doc/style.css b/doc/style.css
index 78756481e..d8b48bcd0 100644
--- a/doc/style.css
+++ b/doc/style.css
@@ -441,7 +441,7 @@ li.L8 { list-style: upper-alpha; }
float: left;
}
.openid_large_btn {
- padding: 1em 1em;
+ padding: 1em 1.5em;
border: 1px solid #DDD;
margin: 3px;
float: left;
diff --git a/underlays/openid-selector/ikiwiki/openid/openid-jquery.js b/underlays/openid-selector/ikiwiki/openid/openid-jquery.js
index 067d68f3f..4dfb7420b 100644
--- a/underlays/openid-selector/ikiwiki/openid/openid-jquery.js
+++ b/underlays/openid-selector/ikiwiki/openid/openid-jquery.js
@@ -97,24 +97,24 @@ var openid = {
openid_btns.append(this.getBoxHTML(providers_large[id], 'large'));
}
+ if (providers_small) {
+ openid_btns.append('<br/>');
+
+ for (id in providers_small) {
+
+ openid_btns.append(this.getBoxHTML(providers_small[id], 'small'));
+ }
+ }
if (localloginurl != "") {
openid_btns.append(
'<a href="' + localloginurl + '"' +
' style="background: #FFF" ' +
- 'class="openid_large_btn">' +
+ 'class="openid_small_btn">' +
'<img alt="" width="16" height="16" src="favicon.ico" />' +
' Local Account' +
'</a>'
);
}
- if (providers_small) {
- openid_btns.append('<br/>');
-
- for (id in providers_small) {
-
- openid_btns.append(this.getBoxHTML(providers_small[id], 'small'));
- }
- }
$('#openid_form').submit(this.submit);