From e0e6f3392db508784be95a88b428d3bf7ad048cd Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Mon, 11 Jun 2018 23:11:15 +0100 Subject: [PATCH] Improve comment CSS --- app/scss/comments.scss | 38 +++++++++++++++++++++++++++++++ app/scss/main.scss | 1 + app/templates/macros/threads.html | 12 ++++++---- 3 files changed, 46 insertions(+), 5 deletions(-) create mode 100644 app/scss/comments.scss diff --git a/app/scss/comments.scss b/app/scss/comments.scss new file mode 100644 index 0000000..d8525cd --- /dev/null +++ b/app/scss/comments.scss @@ -0,0 +1,38 @@ +.comments, .comments li { + list-style: none; + padding: 0; + margin: 0; + border: 1px solid #444; +} + +.comments { + border-radius: 5px; + margin: 15px 0; + background: #333; + + .author, .msg { + display: block; + margin: 0; + } + + .author { + font-weight: bold; + border-bottom: 1px solid #444; + padding: 0.2em 1em; + } + + .msg { + padding: 1em; + background: #222; + } +} + +.comment_form { + margin: 1em 0; +} + +.comment_form textarea { + min-width: 60%; + max-width: 100%; + margin: 0 0 1em 0; +} diff --git a/app/scss/main.scss b/app/scss/main.scss index d853758..5cb4ef2 100644 --- a/app/scss/main.scss +++ b/app/scss/main.scss @@ -3,3 +3,4 @@ @import "nav.scss"; @import "packages.scss"; @import "packagegrid.scss"; +@import "comments.scss"; diff --git a/app/templates/macros/threads.html b/app/templates/macros/threads.html index 96e1107..bd6fa44 100644 --- a/app/templates/macros/threads.html +++ b/app/templates/macros/threads.html @@ -1,15 +1,18 @@ {% macro render_thread(thread, current_user) -%} - - {% endmacro %}