]> sipb.mit.edu Git - ikiwiki.git/commitdiff
avoid scaling favicons
authorJoey Hess <joey@kitenet.net>
Sat, 8 May 2010 01:54:58 +0000 (21:54 -0400)
committerJoey Hess <joey@kitenet.net>
Sat, 8 May 2010 01:54:58 +0000 (21:54 -0400)
chromium's rather impressive jaggy-free scaling spoiled me, but in
iceweasel, scaled favicons look crap

doc/style.css
underlays/openid-selector/ikiwiki/openid/openid-jquery.js

index 5f1a8e63a5e3f27a6bbb92c605ebd37858c54574..78756481e0c3ec787a70cc54117c1d61e801eb73 100644 (file)
@@ -447,6 +447,7 @@ li.L8 { list-style: upper-alpha; }
        float: left;
 }
 .openid_small_btn {
+       padding: 4px 4px;
        border: 1px solid #DDD;
        margin: 3px;
        float: left;
index 43d2ef66835b03049ab9ff9e4171308fb10f03f3..8137f232f008d1af45be28c976646c9a4367ae99 100644 (file)
@@ -114,7 +114,7 @@ var openid = {
                        '<a href="' + localloginurl + '"' +
                        ' style="background: #FFF" ' +
                        'class="openid_large_btn">' +
-                       '<img alt="" width="24" height="24" src="favicon.ico" />' +
+                       '<img alt="" width="16" height="16" src="favicon.ico" />' +
                        ' Local Account' +
                        '</a>'
                );
@@ -148,7 +148,7 @@ var openid = {
         return '<a' + title +' href="javascript: openid.signin(\''+ box_id +'\');"' +
                        ' style="background: #FFF" ' + 
                        'class="' + box_id + ' openid_' + box_size + '_btn">' +
-                       '<img alt="" width="24" height="24" src="' + provider["icon"] + '" />' +
+                       '<img alt="" width="16" height="16" src="' + provider["icon"] + '" />' +
                        label +
                        '</a>';