Update title style

This commit is contained in:
Edgar P. Burkhart 2023-04-20 16:06:29 +02:00
parent ea7d8faecd
commit d9e03df878
Signed by: edpibu
GPG Key ID: 9833D3C5A25BD227
11 changed files with 50 additions and 26 deletions

View File

@ -173,6 +173,30 @@ a.big-link {
font-weight: normal; font-weight: normal;
} }
h1,
h2,
h3 {
font-weight: 300;
}
h1 {
font-size: 3rem;
line-height: 1cap;
}
h2 {
font-size: 2rem;
}
h3 {
font-size: 1.5rem;
}
h4 {
font-size: 1.25rem;
}
h5 {
font-size: 1.125rem;
}
h6 {
font-size: 1rem;
}
main h1.new { main h1.new {
opacity: 0.8; opacity: 0.8;
} }

View File

@ -4,19 +4,19 @@
{% block title_new %} {% block title_new %}
{% translate "Create account" %} {% translate "Create account" %}
{% endblock %} {% endblock %}
{% block h1_new %} {% block h2_new %}
{% translate "New account" %} {% translate "New account" %}
{% endblock %} {% endblock %}
{% block h1 %}{{ form.instance.icon|remix }}{{ form.instance }}{% endblock %} {% block h2 %}{{ form.instance.icon|remix }}{{ form.instance }}{% endblock %}
{% block tables %} {% block tables %}
{% if not form.instance.adding %} {% if not form.instance.adding %}
<h2>{% translate "Statements" %}</h2> <h3>{% translate "Statements" %}</h3>
{% include "main/table/snapshot.html" %} {% include "main/table/snapshot.html" %}
{% endif %} {% endif %}
{% if transactions %} {% if transactions %}
<h2>{% translate "Transactions" %}</h2> <h3>{% translate "Transactions" %}</h3>
{% include "main/table/transaction.html" %} {% include "main/table/transaction.html" %}
<h2>{% translate "History" %}</h2> <h3>{% translate "History" %}</h3>
{% include "main/plot/history.html" %} {% include "main/plot/history.html" %}
{% endif %} {% endif %}
{% endblock %} {% endblock %}

View File

@ -25,13 +25,13 @@
{% block body %} {% block body %}
{% with instance=form.instance %} {% with instance=form.instance %}
{% if instance.adding %} {% if instance.adding %}
<h1 class="new"> <h2 class="new">
{% block h1_new %}{% endblock %} {% block h2_new %}{% endblock %}
</h1> </h2>
{% else %} {% else %}
<h1> <h2>
{% block h1 %}{{ instance }}{% endblock %} {% block h2 %}{{ instance }}{% endblock %}
</h1> </h2>
{% endif %} {% endif %}
{% block pre %}{% endblock %} {% block pre %}{% endblock %}
<form method="post"> <form method="post">

View File

@ -4,15 +4,15 @@
{% block title_new %} {% block title_new %}
{% translate "Create category" %} {% translate "Create category" %}
{% endblock %} {% endblock %}
{% block h1_new %} {% block h2_new %}
{% translate "New category" %} {% translate "New category" %}
{% endblock %} {% endblock %}
{% block h1 %}{{ form.instance.icon|remix }}{{ form.instance }}{% endblock %} {% block h2 %}{{ form.instance.icon|remix }}{{ form.instance }}{% endblock %}
{% block tables %} {% block tables %}
{% if form.instance.transactions %} {% if form.instance.transactions %}
<h2>{% translate "Transactions" %}</h2> <h3>{% translate "Transactions" %}</h3>
{% include "main/table/transaction.html" %} {% include "main/table/transaction.html" %}
<h2>{% translate "History" %}</h2> <h3>{% translate "History" %}</h3>
{% include "main/plot/history.html" %} {% include "main/plot/history.html" %}
{% endif %} {% endif %}
{% endblock %} {% endblock %}

View File

@ -3,6 +3,6 @@
{% block title_new %} {% block title_new %}
{% translate "Create invoice" %} {% translate "Create invoice" %}
{% endblock %} {% endblock %}
{% block h1_new %} {% block h2_new %}
{% translate "New invoice" %} {% translate "New invoice" %}
{% endblock %} {% endblock %}

View File

@ -4,10 +4,10 @@
{% block title_new %} {% block title_new %}
{% translate "Create snapshot" %} {% translate "Create snapshot" %}
{% endblock %} {% endblock %}
{% block h1_new %} {% block h2_new %}
{% translate "New snapshot" %} {% translate "New snapshot" %}
{% endblock %} {% endblock %}
{% block h1 %} {% block h2 %}
{{ form.instance.sum|check:form.instance.diff }} {{ form.instance.sum|check:form.instance.diff }}
{{ form.instance }} {{ form.instance }}
{% endblock %} {% endblock %}
@ -20,11 +20,11 @@
{% endblock %} {% endblock %}
{% block tables %} {% block tables %}
{% if categories %} {% if categories %}
<h2>{% translate "Categories" %}</h2> <h3>{% translate "Categories" %}</h3>
{% include "main/plot/category.html" %} {% include "main/plot/category.html" %}
{% endif %} {% endif %}
{% if not form.instance.adding %} {% if not form.instance.adding %}
<h2>{% translate "Transactions" %} ({{ form.instance.sum|pmvalue }} / {{ form.instance.diff|pmvalue }})</h2> <h3>{% translate "Transactions" %} ({{ form.instance.sum|pmvalue }} / {{ form.instance.diff|pmvalue }})</h3>
{% include "main/table/transaction.html" %} {% include "main/table/transaction.html" %}
{% endif %} {% endif %}
{% endblock %} {% endblock %}

View File

@ -3,7 +3,7 @@
{% block title_new %} {% block title_new %}
{% translate "Create transaction" %} {% translate "Create transaction" %}
{% endblock %} {% endblock %}
{% block h1_new %} {% block h2_new %}
{% translate "New transaction" %} {% translate "New transaction" %}
{% endblock %} {% endblock %}
{% block pre %} {% block pre %}
@ -15,7 +15,7 @@
{% endblock %} {% endblock %}
{% block tables %} {% block tables %}
{% if not form.instance.adding %} {% if not form.instance.adding %}
<h2>{% translate "Invoices" %}</h2> <h3>{% translate "Invoices" %}</h3>
{% include "main/table/invoice.html" %} {% include "main/table/invoice.html" %}
{% endif %} {% endif %}
{% endblock %} {% endblock %}

View File

@ -17,7 +17,7 @@
type="text/css" /> type="text/css" />
{% endblock %} {% endblock %}
{% block body %} {% block body %}
<h1>{% translate "Statements" %}</h1> <h2>{% translate "Statements" %}</h2>
{% if object %}<a href="{{ object.get_absolute_url }}">{{ object }}</a>{% endif %} {% if object %}<a href="{{ object.get_absolute_url }}">{{ object }}</a>{% endif %}
{% if snapshots %} {% if snapshots %}
{% include "main/list/pagination.html" %} {% include "main/list/pagination.html" %}

View File

@ -20,7 +20,7 @@
type="text/css" /> type="text/css" />
{% endblock %} {% endblock %}
{% block body %} {% block body %}
<h1>{% translate "Transactions" %}</h1> <h2>{% translate "Transactions" %}</h2>
{% if object %}<a href="{{ object.get_absolute_url }}">{{ object }}</a>{% endif %} {% if object %}<a href="{{ object.get_absolute_url }}">{{ object }}</a>{% endif %}
{% if search %} {% if search %}
<a href="{% url "search" %}">{% translate "Search" %}</a> <a href="{% url "search" %}">{% translate "Search" %}</a>

View File

@ -11,7 +11,7 @@
type="text/css" /> type="text/css" />
{% endblock %} {% endblock %}
{% block body %} {% block body %}
<h1>{% translate "Log In" %}</h1> <h2>{% translate "Log In" %}</h2>
<form action="{% url 'login' %}" method="post"> <form action="{% url 'login' %}" method="post">
{% csrf_token %} {% csrf_token %}
{% include "main/form/login.html" %} {% include "main/form/login.html" %}

View File

@ -15,7 +15,7 @@
type="text/css" /> type="text/css" />
{% endblock %} {% endblock %}
{% block body %} {% block body %}
<h1>{% translate "Search" %}</h1> <h2>{% translate "Search" %}</h2>
{% spaceless %} {% spaceless %}
<form id="search" method="post"> <form id="search" method="post">
{% csrf_token %} {% csrf_token %}