From 8e85d0cfd1cf18c3264ef7493644719eca54dda8 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 6 Jun 2019 17:47:54 +0100 Subject: [PATCH] Make hidden diary entries and comments more visible --- app/assets/stylesheets/common.scss | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 71df217b3..d3488fe73 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -1664,10 +1664,18 @@ tr.turn:hover { .diary_post { position: relative; - margin-top: $lineheight/2; padding-top: $lineheight; + padding-bottom: $lineheight/2; border-top: 1px solid #ccc; + &:first-of-type { + margin-top: $lineheight/2; + } + + &.deemphasize { + background-color: #fee; + } + .post_heading { margin-bottom: $lineheight; @@ -1712,14 +1720,17 @@ tr.turn:hover { max-width: 740px; } .diary-comment { - margin-top: $lineheight/2; border-top: 1px dashed #ccc; padding-top: $lineheight/2; + padding-bottom: $lineheight/2; &:first-child { - margin-top: $lineheight; + margin-top: $lineheight/2; padding-top: $lineheight; border-top: 1px solid #ccc; } + &.deemphasize { + background-color: #fee; + } p { margin-bottom: $lineheight/2; } -- 2.43.2