From 7d8fe66d439f9f6a05b665ce98ab6a34092ea306 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Thu, 28 Jan 2021 22:35:21 -0500 Subject: [PATCH] consistent tags styling --- archivebox/themes/default/main_index.html | 8 ++++++ archivebox/themes/default/main_index_row.html | 25 +++++++++---------- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/archivebox/themes/default/main_index.html b/archivebox/themes/default/main_index.html index 95af1963..85753b31 100644 --- a/archivebox/themes/default/main_index.html +++ b/archivebox/themes/default/main_index.html @@ -185,6 +185,14 @@ .title-col a { color: black; } + .tags { + float: right; + border-radius: 5px; + background-color: #bfdfff; + padding: 2px 5px; + margin-left: 4px; + margin-top: 1px; + } diff --git a/archivebox/themes/default/main_index_row.html b/archivebox/themes/default/main_index_row.html index 7ca14479..cfbcbfe8 100644 --- a/archivebox/themes/default/main_index_row.html +++ b/archivebox/themes/default/main_index_row.html @@ -8,20 +8,19 @@ {% else %} {% endif %} - - {{link.title|default:'Loading...'}} - - - - {% if link.tags_str != None %} - {{link.tags_str|default:''}} - {% else %} - {{ link.tags|default:'' }} - {% endif %} - - + + + {{link.title|default:'Loading...'}} + {% if link.tags_str %} + + {% if link.tags_str != None %} + {{link.tags_str|default:''}} + {% else %} + {{ link.tags|default:'' }} + {% endif %} - + {% endif %} + 📄