From ce091d18211f4ba171071ea7e172c2842d539692 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Sun, 19 Dec 2010 16:49:24 -0800 Subject: [PATCH] fix spacing of github info lists on project pages --- assets/proj.css | 10 ++++++++++ assets/proj.js | 16 ++++++++++------ 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/assets/proj.css b/assets/proj.css index 9bb6109..eac37bb 100644 --- a/assets/proj.css +++ b/assets/proj.css @@ -26,6 +26,16 @@ h4 { margin: 0.5em 0 0.7em } #info > div:first-child { border-left: none } +#info ul { list-style-type: none + ; text-align: center + ; padding: 0 + ; margin: 0 + } + +#info li { padding: 0.2em 0 + ; margin: 0 + } + #info > br.clear { clear: both } @media only screen and (max-device-width:480px) { diff --git a/assets/proj.js b/assets/proj.js index 38f2912..d053a73 100644 --- a/assets/proj.js +++ b/assets/proj.js @@ -1,8 +1,8 @@ -(function() { +;(function() { if (typeof console === 'undefined') { console = {log:function(){}} } - + var global = this global.SJS = { proj: function(name) { @@ -50,22 +50,26 @@ }) } + function listify(things) { + return '' + } + function updateBranches(name, branches) { function branchLink(b) { return '' + b + '' } - html('branches', Object.keys(branches).map(branchLink).join('
')) + html('branches', listify(Object.keys(branches).map(branchLink))) } function updateContributors(contributors) { function userLink(u) { return '' + (u.name || u.login) + '' } - html('contributors', contributors.map(userLink).join('
')) + html('contributors', listify(contributors.map(userLink))) } function updateLangs(langs) { - html('langs', langsByUsage(langs).join('
')) + html('langs', listify(langsByUsage(langs))) } function updateN(name, things) { @@ -129,4 +133,4 @@ } } } -}()) +}());