From bcf40d1078590defcda9f2d6e7f303355541fea6 Mon Sep 17 00:00:00 2001 From: Zankaria Date: Sat, 17 Aug 2024 09:54:31 +0200 Subject: [PATCH] style.css: adjust controls --- stylesheets/style.css | 14 +++++++---- templates/post/post_controls.html | 4 +-- templates/post_reply.html | 42 +++++++++++++++++-------------- templates/post_thread.html | 2 +- 4 files changed, 35 insertions(+), 27 deletions(-) diff --git a/stylesheets/style.css b/stylesheets/style.css index 62745cca..fc4bb3ea 100644 --- a/stylesheets/style.css +++ b/stylesheets/style.css @@ -203,7 +203,7 @@ img.banner,img.board_image { } div.post .post-image { - padding: 5px; + padding: 0.2em; margin: 0 20px 0 0; } @@ -266,13 +266,17 @@ div.post { } div.post p { - margin: 0; + margin: 0.1em; line-height: 1.16em; font-size: 13px; min-height: 1.16em; } +div.post div.head { + margin: 0.1em 0.4em; +} + div.post div.body { margin-top: 0.8em; padding-right: 3em; @@ -325,19 +329,19 @@ br.clear { display: block; } -span.controls { +div.controls { float: right; margin: 0; padding: 0; font-size: 80%; } -span.controls.op { +div.controls.op { float: none; margin-left: 10px; } -span.controls a { +div.controls a { margin: 0; } diff --git a/templates/post/post_controls.html b/templates/post/post_controls.html index 60dc6fc4..9c549362 100644 --- a/templates/post/post_controls.html +++ b/templates/post/post_controls.html @@ -1,6 +1,6 @@ {% if mod %} - +
{% if mod|hasPermission(config.mod.delete, board.uri) %} {{ secure_link_confirm(config.mod.link_delete, 'Delete'|trans, 'Are you sure you want to delete this?'|trans, board.dir ~ 'delete/' ~ post.id) }}  {% endif %} @@ -58,6 +58,6 @@ {% if mod|hasPermission(config.mod.editpost, board.uri) %} {{ config.mod.link_editpost }}  {% endif %} - +
{% endif %} diff --git a/templates/post_reply.html b/templates/post_reply.html index 658c853b..e8ad04cb 100644 --- a/templates/post_reply.html +++ b/templates/post_reply.html @@ -1,24 +1,28 @@ {% apply spaceless %} {# tabs and new lines will be ignored #} -
-

- - {% apply spaceless %} - {% include 'post/poster_id.html' %} - {% include 'post/time.html' %} - No. - {{ post.id }} -

- {% endapply %} - {% include 'post/post_controls.html' %} - {% include 'post/fileinfo.html' %} +
+
+

+ + {% apply spaceless %} + {% include 'post/poster_id.html' %} + +

+ {% endapply %} + {% include 'post/post_controls.html' %} + {% include 'post/fileinfo.html' %} +
1 %}style="clear:both"{% endif %}> {% endapply %}{% if index %}{{ post.body|truncate_body(post.link) }}{% else %}{{ post.body }}{% endif %}{% apply spaceless %} {% if post.modifiers['ban message'] %} diff --git a/templates/post_thread.html b/templates/post_thread.html index 6477a268..605ef964 100644 --- a/templates/post_thread.html +++ b/templates/post_thread.html @@ -56,8 +56,8 @@ {% set lastcount = config.noko50_count %} [{% trans %}Last 1 Post{% plural lastcount %}Last {{ count }} Posts{% endtrans %}] {% endif %} - {% include 'post/post_controls.html' %}

+ {% include 'post/post_controls.html' %}
{% endapply %}{% if index %}{{ post.body|truncate_body(post.link) }}{% else %}{{ post.body }}{% endif %}{% apply spaceless %} {% if post.modifiers['ban message'] %}