diff --git a/src/fellchensammlung/static/fellchensammlung/css/styles.css b/src/fellchensammlung/static/fellchensammlung/css/styles.css index a0698c9..aebb343 100644 --- a/src/fellchensammlung/static/fellchensammlung/css/styles.css +++ b/src/fellchensammlung/static/fellchensammlung/css/styles.css @@ -37,10 +37,6 @@ a { color: inherit; } -.col-sm-2 { - padding-left: 0px; -} - table { border: none; border-collapse: collapse; @@ -290,46 +286,14 @@ h1 { background: #F8ECD7; } -.container-list-rules { + + +.container-cards { 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; -} - -.container-list-moderation-actions { - display: flex; - flex-wrap: wrap; -} - - -.card-moderation-action { - 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%; - } -} - .photos { display: flex; flex-wrap: wrap; @@ -345,16 +309,10 @@ h1 { border-radius: 10%; } -.adoption-notices { - display: flex; - flex-wrap: wrap; - list-style-type: none; -} - .card { flex: 1 16%; margin: 10px; - border-radius: 3%; + border-radius: 8px; padding: 5px; background: var(--background-three); color: var(--text-two); @@ -381,12 +339,6 @@ h1 { margin-top: 10px; } -.animals { - display: flex; - flex-wrap: wrap; - list-style-type: none; -} - @media (max-width: 920px) { .card { diff --git a/src/fellchensammlung/templates/fellchensammlung/details/detail_adoption_notice.html b/src/fellchensammlung/templates/fellchensammlung/details/detail_adoption_notice.html index d38934d..ce60fa9 100644 --- a/src/fellchensammlung/templates/fellchensammlung/details/detail_adoption_notice.html +++ b/src/fellchensammlung/templates/fellchensammlung/details/detail_adoption_notice.html @@ -30,7 +30,7 @@ {% endif %}

-
+
{% for animal in adoption_notice.animals %} {% include "fellchensammlung/partials/partial-animal-card.html" %} {% endfor %} diff --git a/src/fellchensammlung/templates/fellchensammlung/lists/list-adoption-notices.html b/src/fellchensammlung/templates/fellchensammlung/lists/list-adoption-notices.html index 4a123cb..2612de4 100644 --- a/src/fellchensammlung/templates/fellchensammlung/lists/list-adoption-notices.html +++ b/src/fellchensammlung/templates/fellchensammlung/lists/list-adoption-notices.html @@ -1,4 +1,4 @@ -
+
{% for adoption_notice in adoption_notices %} {% include "fellchensammlung/partials/partial-adoption-notice.html" %} {% endfor %} diff --git a/src/fellchensammlung/templates/fellchensammlung/lists/list-moderation-action.html b/src/fellchensammlung/templates/fellchensammlung/lists/list-moderation-action.html index e7b29d6..771fd04 100644 --- a/src/fellchensammlung/templates/fellchensammlung/lists/list-moderation-action.html +++ b/src/fellchensammlung/templates/fellchensammlung/lists/list-moderation-action.html @@ -1,4 +1,4 @@ -
+
{% for moderation_action in moderation_actions %} {% include "fellchensammlung/partials/partial-moderation-action.html" %} {% endfor %} diff --git a/src/fellchensammlung/templates/fellchensammlung/lists/list-rules.html b/src/fellchensammlung/templates/fellchensammlung/lists/list-rules.html index 005951c..323d273 100644 --- a/src/fellchensammlung/templates/fellchensammlung/lists/list-rules.html +++ b/src/fellchensammlung/templates/fellchensammlung/lists/list-rules.html @@ -1,4 +1,4 @@ -
+
{% for rule in rules %} {% include "fellchensammlung/partials/partial-rule.html" %} {% endfor %} diff --git a/src/fellchensammlung/templates/fellchensammlung/partials/partial-rule.html b/src/fellchensammlung/templates/fellchensammlung/partials/partial-rule.html index f78d488..15f8c9a 100644 --- a/src/fellchensammlung/templates/fellchensammlung/partials/partial-rule.html +++ b/src/fellchensammlung/templates/fellchensammlung/partials/partial-rule.html @@ -1,5 +1,5 @@ {% load custom_tags %} -
+

{{ rule.title }}

{{ rule.rule_text | render_markdown }}

\ No newline at end of file