feat: Style rules

This commit is contained in:
moanos [he/him] 2024-03-20 11:18:31 +01:00
parent 4964f11903
commit 68e6d3e299
3 changed files with 28 additions and 3 deletions

View File

@ -298,4 +298,27 @@ h1 {
.inline {
display: inline;
}
.container-list-rules {
display: flex;
flex-wrap: wrap;
}
.card-rule {
width: 25%;
margin: 10px;
margin-bottom: 20px;
border: 1px solid #ccc;
border-radius: 5px;
padding: 2%;
box-sizing: border-box;
}
@media (max-width: 920px) {
.card-rule {
width: 100%;
}
}

View File

@ -1,4 +1,4 @@
<div class="list-rules">
<div class="container-list-rules">
{% for rule in rules %}
{% include "fellchensammlung/partial-rule.html" %}
{% endfor %}

View File

@ -1,3 +1,5 @@
{% load custom_tags %}
<h2>{{ rule.title }}</h2>
<p>{{ rule.rule_text | render_markdown }}</p>
<div class="card-rule">
<h2>{{ rule.title }}</h2>
<p>{{ rule.rule_text | render_markdown }}</p>
</div>