feat: space card containers

This commit is contained in:
moanos [he/him] 2025-01-04 11:24:57 +01:00
parent 13b67c1248
commit 867319fe9a
2 changed files with 69 additions and 65 deletions

View File

@ -130,7 +130,8 @@ textarea {
width: 100%;
}
.container-cards h1 {
.container-cards h1,
.container-cards h2 {
width: 100%; /* Make sure heading fills complete line */
}
@ -152,8 +153,8 @@ textarea {
}
}
.spaced {
margin-bottom: 30px;
.spaced > * {
margin: 10px;
}
/*******************************/

View File

@ -6,8 +6,10 @@
{% block content %}
<h1>{{ user.get_full_name }}</h1>
<div class="spaced">
<div class="container-cards">
<h2>{% trans 'Daten' %}</h2>
<div class="card">
<p><strong>{% translate "Username" %}:</strong> {{ user.username }}</p>
<p><strong>{% translate "E-Mail" %}:</strong> {{ user.email }}</p>
@ -15,8 +17,8 @@
</div>
<h2>{% trans 'Profil verwalten' %}</h2>
<div class="container-cards">
<h2>{% trans 'Profil verwalten' %}</h2>
<div class="container-comment-form">
<p>
<a class="btn2" href="{% url 'password_change' %}">{% translate "Change password" %}</a>
@ -77,4 +79,5 @@
{% include "fellchensammlung/lists/list-adoption-notices.html" %}
{% endif %}
</div>
{% endblock %}