Update index

This commit is contained in:
Edgar P. Burkhart 2022-05-22 09:27:48 +02:00
parent 15a317dc0f
commit 4b784a553b
Signed by: edpibu
GPG Key ID: 9833D3C5A25BD227
4 changed files with 46 additions and 46 deletions

View File

@ -6,51 +6,6 @@ h1 {
margin: 0;
}
.table {
display: grid;
margin: 2em 0;
border-radius: 1em 0 1em 0;
overflow: hidden;
border-bottom: .5em solid var(--bg-inv);
}
.table.col2 {grid-template-columns: repeat(2, auto)}
.table.col3 {grid-template-columns: repeat(3, auto)}
.table.col4 {grid-template-columns: repeat(4, auto)}
.table.col5 {grid-template-columns: repeat(5, auto)}
.table.col6 {grid-template-columns: repeat(6, auto)}
.table > div {
display: contents;
}
.table > div > * {
padding: 1em;
white-space: nowrap;
}
.table > div.g> * {
background: var(--bg-01);
}
.table > div.header > * {
background: var(--bg-inv);
color: var(--text-inv);
}
.table > div > .center {
text-align: center;
}
.table > div > .right {
text-align: right;
}
.table > div > .num {
font-feature-settings: "tnum", "ss01";
}
.table > div > span.text {
overflow: hidden;
text-overflow: ellipsis;
}
#categories > a {
margin-right: var(--gap);
}

View File

@ -0,0 +1,44 @@
.table {
display: grid;
margin: 2em 0;
border-radius: 1em 0 1em 0;
overflow: hidden;
border-bottom: .5em solid var(--bg-inv);
}
.table.col2 {grid-template-columns: repeat(2, auto)}
.table.col3 {grid-template-columns: repeat(3, auto)}
.table.col4 {grid-template-columns: repeat(4, auto)}
.table.col5 {grid-template-columns: repeat(5, auto)}
.table.col6 {grid-template-columns: repeat(6, auto)}
.table > div {
display: contents;
}
.table > div > * {
padding: 1em;
white-space: nowrap;
}
.table > div.g> * {
background: var(--bg-01);
}
.table > div.header > * {
background: var(--bg-inv);
color: var(--text-inv);
}
.table > div > .center {
text-align: center;
}
.table > div > .right {
text-align: right;
}
.table > div > .num {
font-feature-settings: "tnum", "ss01";
}
.table > div > span.text {
overflow: hidden;
text-overflow: ellipsis;
}

View File

@ -5,6 +5,7 @@
{% block link %}
{{ block.super }}
<link rel="stylesheet" href="{% static 'main/css/index.css' %}" type="text/css" />
<link rel="stylesheet" href="{% static 'main/css/table.css' %}" type="text/css" />
{% endblock %}
{% block body %}

View File

@ -16,7 +16,7 @@ from .models import (
@login_required
def index(request):
_transactions = Transaction.objects.all()[:5]
_transactions = Transaction.objects.all()[:10]
_categories = Category.objects.all()
_snapshots = Snapshot.objects.all()[:5]