improve selector layout
authorJoey Hess <joey@kitenet.net>
Sat, 8 May 2010 04:40:36 +0000 (00:40 -0400)
committerJoey Hess <joey@kitenet.net>
Sat, 8 May 2010 04:40:36 +0000 (00:40 -0400)
doc/style.css
underlays/openid-selector/ikiwiki/openid/openid-jquery.js

index 78756481e0c3ec787a70cc54117c1d61e801eb73..d8b48bcd0a978b2612a39c62618f3a54d672f05c 100644 (file)
@@ -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;
index 067d68f3fd8d8f0e616d38fc3b2f2289968a1387..4dfb7420b104acd1808330030ef5958014d991df 100644 (file)
@@ -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);