More spacing above category tags

This commit is contained in:
relikd
2020-10-01 12:18:53 +02:00
parent 4afe166e64
commit aed0801b13
2 changed files with 4 additions and 2 deletions

View File

@@ -129,6 +129,8 @@ footer .links {
.pagination a.active { border: 1pt solid black; border-radius: .2em; }
#categories h3 { margin-top: 2em; }
/* domain index */
#dom-top10 { text-align: right; }
#dom-top10>div { margin: .4em; }

View File

@@ -12,14 +12,14 @@ def write_overview_page(base_dir, category_tuples, title):
cluster[i].append(x)
except KeyError:
cluster[i] = [x]
src = '<h2>{}</h2>'.format(title)
src = '<h2>{}</h2><div id="categories">'.format(title)
for i, arr in sorted(cluster.items()):
mylib.sort_by_name(arr, 1)
kind = 'Apps' if i == 6 else 'Games' if i == 7 else 'Other'
src += '<h3 class="center">{}</h3>'.format(kind)
src += '<div class="tags large center">'
src += ''.join([HTML.a_category(*x) for x in arr]) + '</div>'
HTML.write(base_dir, src, title)
HTML.write(base_dir, src + '</div>', title)
def process(affected=None, per_page=60):