feat: Style rules
This commit is contained in:
parent
4964f11903
commit
68e6d3e299
@ -299,3 +299,26 @@ h1 {
|
|||||||
.inline {
|
.inline {
|
||||||
display: 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%;
|
||||||
|
}
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
<div class="list-rules">
|
<div class="container-list-rules">
|
||||||
{% for rule in rules %}
|
{% for rule in rules %}
|
||||||
{% include "fellchensammlung/partial-rule.html" %}
|
{% include "fellchensammlung/partial-rule.html" %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
{% load custom_tags %}
|
{% load custom_tags %}
|
||||||
<h2>{{ rule.title }}</h2>
|
<div class="card-rule">
|
||||||
<p>{{ rule.rule_text | render_markdown }}</p>
|
<h2>{{ rule.title }}</h2>
|
||||||
|
<p>{{ rule.rule_text | render_markdown }}</p>
|
||||||
|
</div>
|
Loading…
Reference in New Issue
Block a user