diff --git a/nummi/main/static/main/css/main.css b/nummi/main/static/main/css/main.css index 6952422..6bd5292 100644 --- a/nummi/main/static/main/css/main.css +++ b/nummi/main/static/main/css/main.css @@ -94,9 +94,27 @@ main { grid-column: 2; grid-row: 1; overflow-x: hidden; + + display: grid; + grid-template-columns: max-content 1fr; + grid-gap: var(--gap); + h2.new { opacity: 0.8; } + + & > * { + grid-column: 1 / -1; + } + + & > section { + &.accounts { + grid-column: 1; + } + &.categories { + grid-column: 2; + } + } } nav { grid-column: 1; @@ -139,7 +157,7 @@ nav { } } :is(nav, main) > :first-child, -main > section:first-child > :first-child { +main > section > :first-child { margin-top: 0; } footer { @@ -211,7 +229,7 @@ h1, h2, h3 { font-weight: 300; - margin-top: 1em; + margin-top: var(--gap); margin-bottom: 0.5em; line-height: 1cap; } diff --git a/nummi/main/templates/main/index.html b/nummi/main/templates/main/index.html index d3f1add..53a6632 100644 --- a/nummi/main/templates/main/index.html +++ b/nummi/main/templates/main/index.html @@ -8,7 +8,7 @@ {% css "main/css/plot.css" %} {% endblock %} {% block body %} -
+

{% translate "Accounts" %}

@@ -41,14 +41,8 @@
- {% if transactions %} -
-

{% translate "Transactions" %}

- {% include "transaction/transaction_table.html" %} -
- {% endif %} {% if categories %} -
+

{% translate "Categories" %}

{% spaceless %}

@@ -61,12 +55,6 @@ {% endspaceless %}

{% endif %} - {% if statements %} -
-

{% translate "Statements" %}

- {% include "statement/statement_table.html" %} -
- {% endif %} {% if history %}

{% translate "History" %}