From 96ca72001b14324d2c44c1dc8d6bb3f7905701cf Mon Sep 17 00:00:00 2001 From: Florian Hartmann Date: Tue, 18 Feb 2020 20:45:29 +0100 Subject: [PATCH] style data with tables and improve headings --- .../static/financeplanner/style.css | 36 +++++++++- .../templates/financeplanner/index.html | 72 ++++++++++++++----- 2 files changed, 89 insertions(+), 19 deletions(-) diff --git a/financeplanner/static/financeplanner/style.css b/financeplanner/static/financeplanner/style.css index 78ea7e5..24b84f0 100644 --- a/financeplanner/static/financeplanner/style.css +++ b/financeplanner/static/financeplanner/style.css @@ -21,7 +21,15 @@ body { h1 { margin-top: 18px; margin-bottom: 6px; - font-size: 24px; + font-size: 1.4em; + font-weight: normal; + color: #FFCC99; +} + +h2 { + margin-top: 6px; + margin-bottom: 12px; + font-size: 1.1em; font-weight: normal; color: #FFCC99; } @@ -36,8 +44,31 @@ a:hover, a:focus { color: #CC6622; } +table { + margin: 6px; + border-collapse: collapse; +} + +td { + padding: 3px 12px 3px 6px; + border: 1px solid #3F3D3B; +} + +thead { + font-variant: small-caps; +} + +tr { + background-color: rgba(255, 255, 255, 0); + transition: background-color 100ms; +} + +tr:hover { + background-color: rgba(255, 255, 255, 0.1); +} + .mini-link { - font-size: 14px; + font-size: 0.9em; } .flex-col-centering { @@ -210,3 +241,4 @@ a:hover, a:focus { .tooltip:hover .tooltiptext { visibility: visible; } + diff --git a/financeplanner/templates/financeplanner/index.html b/financeplanner/templates/financeplanner/index.html index 3d59eab..8d04fb6 100644 --- a/financeplanner/templates/financeplanner/index.html +++ b/financeplanner/templates/financeplanner/index.html @@ -19,7 +19,7 @@
{% if graph_data %} -

Data from {{ range_start }} til {{ range_end }}:

+

Data from {{ range_start }} til {{ range_end }}

{% for date, stat in graph_data.items %} {% if stat.div_percentage is None %} @@ -35,47 +35,85 @@ {% endfor %}
{% else %} -

No data available from {{ range_start }} til {{ range_end }}.

+

No enough data from {{ range_start }} til {{ range_end }} to show a graph.

{% endif %}
-

relevant balances:

- +

Relevant Balances

{% if balance_list %} -
-

relevant stored transactions:

- +

Relevant Stored Transactions

{% if transaction_list %} -
-

calculated actual transactions:

- +

Calculated Actual Transactions

{% if actual_transactions %} -