From 8e75c00a8e6e51200e8e59438d97073b3dd1a681 Mon Sep 17 00:00:00 2001 From: Aaron Fischer Date: Sun, 23 Apr 2017 22:46:37 +0200 Subject: [PATCH] Better alignment of detail page attributes --- resources/public/css/screen.css | 4 ++ resources/scss/screen.scss | 5 ++ resources/templates/detail.html | 108 ++++++++++++++++---------------- 3 files changed, 64 insertions(+), 53 deletions(-) diff --git a/resources/public/css/screen.css b/resources/public/css/screen.css index 8ddc6bd..749ffb1 100644 --- a/resources/public/css/screen.css +++ b/resources/public/css/screen.css @@ -16,3 +16,7 @@ .detail-image a { display: block; text-align: center; } + +#detail-attributes { + max-width: 1024px; + margin: auto; } diff --git a/resources/scss/screen.scss b/resources/scss/screen.scss index 5c54cb0..1e5f477 100644 --- a/resources/scss/screen.scss +++ b/resources/scss/screen.scss @@ -21,3 +21,8 @@ text-align: center; } } + +#detail-attributes { + max-width: 1024px; + margin: auto; +} diff --git a/resources/templates/detail.html b/resources/templates/detail.html index a0d492e..2cf8f57 100644 --- a/resources/templates/detail.html +++ b/resources/templates/detail.html @@ -43,62 +43,64 @@ {{ image.title }} -{% ifequal identity ":creator" %} -
- - - Bearbeiten - - - - Löschen - -
-{% endifequal %} -

{{ image.created_at|parse-date|date:"dd.MM.yyyy, HH:mm" }} Uhr

-{% if image.description|length > 0 %} -
-

{{ image.description|markdown-to-html|safe }}

-
-{% endif %} +
+ {% ifequal identity ":creator" %} + + {% endifequal %} - - - {% csrf-field %} - -
- - -
- -
- - -
- - - +
+ + +
+ + +
{% endblock %}