From e631b6f026f34ad8785dd0e91521ac580f89c990 Mon Sep 17 00:00:00 2001 From: fatchan Date: Thu, 28 Mar 2019 23:09:48 -0400 Subject: [PATCH] post form style fixed --- static/css/style.css | 10 +++++++++- views/mixins/post.pug | 25 ++++++++++++++----------- 2 files changed, 23 insertions(+), 12 deletions(-) diff --git a/static/css/style.css b/static/css/style.css index 6a0102b0..60740494 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -46,8 +46,16 @@ input textares { margin-left: 0; } +.post-info { + +} + .post-image { - display: block; + +} + +.post-content { + } .navbar { diff --git a/views/mixins/post.pug b/views/mixins/post.pug index ab43e8b0..6336e077 100644 --- a/views/mixins/post.pug +++ b/views/mixins/post.pug @@ -1,14 +1,17 @@ mixin post(board, post) div(class='post-container '+(post.thread ? '' : 'op')) - span #{post.subject} - span , #{post.author} - span , #{post.date.toLocaleString()} - span , Post - if post.thread == null - a(href=`/${board._id}/thread/${post._id}`) ##{post._id} - else - a(href=`/${board._id}/thread/${post.thread}#${post._id}`) ##{post._id} + .post-info + span #{post.subject} + span #{post.author} + span #{post.date.toLocaleString()} + span Post + if post.thread == null + a(href=`/${board._id}/thread/${post._id}`) ##{post._id} + else + a(href=`/${board._id}/thread/${post.thread}#${post._id}`) ##{post._id} if post.file - a(href='/img/'+post.file) - img.post-image(src='/img/thumb-'+post.file) - p(style='white-space: pre-wrap;') #{post.content} + .post-image + a(href='/img/'+post.file) + img(src='/img/thumb-'+post.file) + .post-content + p(style='white-space: pre-wrap;') #{post.content}