From 3565d9c567ff83e593ddbafb8055a9400a0ab6d5 Mon Sep 17 00:00:00 2001 From: "Jonathan S. Katz" Date: Wed, 18 Apr 2018 15:56:59 -0400 Subject: [PATCH] Change styles for archives view to enable easier browsing. This changes makes various font and padding changes to allow more content to be viewed per page. --- .../mailarchives/templates/_message.html | 30 +++++++-------- .../mailarchives/templates/datelist.html | 2 +- .../mailarchives/templates/message_flat.html | 1 - .../mailarchives/templates/monthlist.html | 2 +- django/media/css/main.css | 38 +++++++++++++++++-- 5 files changed, 51 insertions(+), 22 deletions(-) diff --git a/django/archives/mailarchives/templates/_message.html b/django/archives/mailarchives/templates/_message.html index aa5afd4..03367e2 100644 --- a/django/archives/mailarchives/templates/_message.html +++ b/django/archives/mailarchives/templates/_message.html @@ -1,8 +1,8 @@ {%load pgfilters%} - +
- + @@ -30,9 +30,9 @@ {% if not show_all %} @@ -54,13 +54,13 @@ {% endif %}
From:From: {{msg.mailfrom|hidemail}}
Views: - Raw Message - Whole Thread - Download mbox + Raw Message | + Whole Thread | + Download mbox
{%if msg.hiddenstatus%} -
{{msg.hiddenreason}}
+
{{msg.hiddenreason}}
{%else%} -
{{msg.bodytxt|hideallemail|urlize}}
+
{{msg.bodytxt|hideallemail|urlize}}
{%if msg.has_attachment%} -
Attachments
- +

Attachments

+
@@ -89,17 +89,17 @@ {%endif%} {%if parent%} -

In response to

-
Attachment
+

Browse {{list}} by date

+
diff --git a/django/archives/mailarchives/templates/datelist.html b/django/archives/mailarchives/templates/datelist.html index f0cc42d..1b94055 100644 --- a/django/archives/mailarchives/templates/datelist.html +++ b/django/archives/mailarchives/templates/datelist.html @@ -18,7 +18,7 @@
 
{%endif%}

{{m.date.date}}

- +
diff --git a/django/archives/mailarchives/templates/message_flat.html b/django/archives/mailarchives/templates/message_flat.html index e55ebea..0d25201 100644 --- a/django/archives/mailarchives/templates/message_flat.html +++ b/django/archives/mailarchives/templates/message_flat.html @@ -19,6 +19,5 @@ window.onload = load; {%for m in allmsg %} {% include '_message.html' with msg=m show_all=True %} -
{%endfor%} {%endblock%} diff --git a/django/archives/mailarchives/templates/monthlist.html b/django/archives/mailarchives/templates/monthlist.html index 2af9621..3b96459 100644 --- a/django/archives/mailarchives/templates/monthlist.html +++ b/django/archives/mailarchives/templates/monthlist.html @@ -12,7 +12,7 @@

View Archives

{%regroup months by year as yearmonth %} -
Thread
+
{% for year in yearmonth %} diff --git a/django/media/css/main.css b/django/media/css/main.css index 4d8747e..e5a959d 100644 --- a/django/media/css/main.css +++ b/django/media/css/main.css @@ -36,10 +36,6 @@ dl, ol, ul { margin-bottom: 0.5rem; } -.table td, .table th { - padding: 0.5rem; -} - h1, h2, h3, h4, h5, h6 { font-family: 'Maven Pro', sans-serif; font-weight: 700; @@ -724,9 +720,43 @@ th.formfieldnamecontainer { height: 3.5em; } +/** Thread Lists */ +.thread-list { + font-size: 0.8em; +} + +/** Messages */ + +h3.messages { + text-transform: none; + font-size 1.2em; +} + +.message-header { + font-size: 0.7em; + line-height: 1.2em; +} + +.message-header select { + height: auto; + padding: 0; +} + +.message-content { + font-size: 0.8em; + line-height: 1.2em; + margin: 0 auto; +} + +.message-responses { + font-size: 1.2em; + font-size: 0.7em; +} + /* Message Subjects */ h1.subject { text-transform: none; + font-size: 1.2em; } /** ALL RESPONSIVE QUERIES HERE */ -- 2.39.5