From e006221a7558838a564e3699e9db39c604820ee2 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Wed, 28 Jul 2021 20:52:23 +0200 Subject: [PATCH] feat: make configurable the height of the previews --- src/scss/components/_previews.scss | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/scss/components/_previews.scss b/src/scss/components/_previews.scss index 0424053..8745c32 100644 --- a/src/scss/components/_previews.scss +++ b/src/scss/components/_previews.scss @@ -4,6 +4,9 @@ * */ $preview-height: 8*$lineheight; +$preview-content-height:165px; +$comment-peek-height:0px; +$comment-height:30px; .previews-section { display: grid; @@ -107,7 +110,7 @@ $preview-height: 8*$lineheight; .metadata-pills { opacity: .9; transition: opacity .5s, height .5s; - height:135px; + height:$preview-content-height - $comment-height; } } } @@ -153,12 +156,12 @@ $preview-height: 8*$lineheight; .preview-metadata { color: $color-font-light; - height:165px; + height:$preview-content-height; overflow: hidden; @include border-radius($card-radius); .metadata-pills { - height:165px; + height:$preview-content-height - $comment-peek-height; opacity: 0; transition: opacity .3s, height .3s; display:flex;