From 4fc75c5e44911dc2edac68022c92623b99f250bb Mon Sep 17 00:00:00 2001 From: igoradamenko Date: Sun, 4 Mar 2018 00:44:34 +0300 Subject: [PATCH] add styles for links, images and brs in comments --- .../comment/__text/comment__text.scss | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/web/app/components/comment/__text/comment__text.scss b/web/app/components/comment/__text/comment__text.scss index c0f50581..bc03e370 100644 --- a/web/app/components/comment/__text/comment__text.scss +++ b/web/app/components/comment/__text/comment__text.scss @@ -5,7 +5,28 @@ margin: 0; + p { - margin-top: 5px; + margin-top: 8px; + } + + // imported comments have br instead of p + br { + content: ''; + display: block; + margin-top: 8px; } } + + a { + color: #0aa; + + &:hover { + color: #06c5c5; + text-decoration: none; + } + } + + img { + max-width: 100%; + max-height: 300px; + } }