From 6a8f6992d8af00fba9181677fb5cf07c6876a304 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Thu, 28 Jan 2021 22:28:10 -0500 Subject: [PATCH] reuse admin styling for pubic index and add page --- archivebox/themes/default/base.html | 286 +++--------------- .../themes/default/core/snapshot_list.html | 22 +- archivebox/themes/default/main_index_row.html | 22 +- archivebox/themes/default/static/add.css | 28 ++ 4 files changed, 104 insertions(+), 254 deletions(-) diff --git a/archivebox/themes/default/base.html b/archivebox/themes/default/base.html index a70430ea..48043a3f 100644 --- a/archivebox/themes/default/base.html +++ b/archivebox/themes/default/base.html @@ -1,3 +1,4 @@ +{% load admin_urls %} {% load static %} @@ -7,222 +8,8 @@ Archived Sites - + + {% block extra_head %} @@ -247,38 +34,49 @@ -
-
-
- {% block body %} - {% endblock %} -
- +
+ {% block body %} + {% endblock %} +
+ + diff --git a/archivebox/themes/default/core/snapshot_list.html b/archivebox/themes/default/core/snapshot_list.html index ce2b2faa..84abee7d 100644 --- a/archivebox/themes/default/core/snapshot_list.html +++ b/archivebox/themes/default/core/snapshot_list.html @@ -2,13 +2,21 @@ {% load static %} {% block body %} -
-
- - - -
+
+ +
diff --git a/archivebox/themes/default/main_index_row.html b/archivebox/themes/default/main_index_row.html index 5e21a8c1..7ca14479 100644 --- a/archivebox/themes/default/main_index_row.html +++ b/archivebox/themes/default/main_index_row.html @@ -10,13 +10,29 @@ {% endif %} {{link.title|default:'Loading...'}} - {% if link.tags_str != None %} {{link.tags_str|default:''}} {% else %} {{ link.tags|default:'' }} {% endif %} + + + + {% if link.tags_str != None %} + {{link.tags_str|default:''}} + {% else %} + {{ link.tags|default:'' }} + {% endif %} + + + - \ No newline at end of file + diff --git a/archivebox/themes/default/static/add.css b/archivebox/themes/default/static/add.css index b128bf4b..875c61bc 100644 --- a/archivebox/themes/default/static/add.css +++ b/archivebox/themes/default/static/add.css @@ -1,3 +1,13 @@ +header { + font-family: "Roboto","Lucida Grande","DejaVu Sans","Bitstream Vera Sans",Verdana,Arial,sans-serif; + font-size: 13px; + color: white; + height: 30px; +} +.header-top { + color: white; +} + .dashboard #content { width: 100%; margin-right: 0px; @@ -60,3 +70,21 @@ ul#id_depth { box-sizing: border-box; animation: spin 2s linear infinite; } + + +textarea, select { + border-radius: 4px; + border: 2px solid #004882; + box-shadow: 4px 4px 4px rgba(0,0,0,0.02); + width: 100%; +} + +select option:not(:checked) { + border: 1px dashed rgba(10,200,20,0.12); +} +select option:checked { + border: 1px solid green; + background-color: green; + color: green; +} +
📄 - {% if link.icons %} {{link.icons}} {% else %} {{ link.num_outputs}} {% endif %} + + {% if link.icons %} + {{link.icons}} + {% else %} + {{link.num_outputs}} + {% endif %} + {{link.url}}