Reshape home page

This commit is contained in:
Edgar P. Burkhart 2024-01-03 14:51:40 +01:00
parent d48818e455
commit 05b7418162
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
2 changed files with 22 additions and 16 deletions

View file

@ -94,9 +94,27 @@ main {
grid-column: 2; grid-column: 2;
grid-row: 1; grid-row: 1;
overflow-x: hidden; overflow-x: hidden;
display: grid;
grid-template-columns: max-content 1fr;
grid-gap: var(--gap);
h2.new { h2.new {
opacity: 0.8; opacity: 0.8;
} }
& > * {
grid-column: 1 / -1;
}
& > section {
&.accounts {
grid-column: 1;
}
&.categories {
grid-column: 2;
}
}
} }
nav { nav {
grid-column: 1; grid-column: 1;
@ -139,7 +157,7 @@ nav {
} }
} }
:is(nav, main) > :first-child, :is(nav, main) > :first-child,
main > section:first-child > :first-child { main > section > :first-child {
margin-top: 0; margin-top: 0;
} }
footer { footer {
@ -211,7 +229,7 @@ h1,
h2, h2,
h3 { h3 {
font-weight: 300; font-weight: 300;
margin-top: 1em; margin-top: var(--gap);
margin-bottom: 0.5em; margin-bottom: 0.5em;
line-height: 1cap; line-height: 1cap;
} }

View file

@ -8,7 +8,7 @@
{% css "main/css/plot.css" %} {% css "main/css/plot.css" %}
{% endblock %} {% endblock %}
{% block body %} {% block body %}
<section> <section class="accounts">
<h2>{% translate "Accounts" %}</h2> <h2>{% translate "Accounts" %}</h2>
<table> <table>
<thead> <thead>
@ -41,14 +41,8 @@
</tfoot> </tfoot>
</table> </table>
</section> </section>
{% if transactions %}
<section>
<h2>{% translate "Transactions" %}</h2>
{% include "transaction/transaction_table.html" %}
</section>
{% endif %}
{% if categories %} {% if categories %}
<section> <section class="categories">
<h2>{% translate "Categories" %}</h2> <h2>{% translate "Categories" %}</h2>
{% spaceless %} {% spaceless %}
<p> <p>
@ -61,12 +55,6 @@
{% endspaceless %} {% endspaceless %}
</section> </section>
{% endif %} {% endif %}
{% if statements %}
<section>
<h2>{% translate "Statements" %}</h2>
{% include "statement/statement_table.html" %}
</section>
{% endif %}
{% if history %} {% if history %}
<section> <section>
<h2>{% translate "History" %}</h2> <h2>{% translate "History" %}</h2>