feat: make configurable the height of the previews
This commit is contained in:
parent
2f683aab82
commit
e006221a75
1 changed files with 6 additions and 3 deletions
|
@ -4,6 +4,9 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
$preview-height: 8*$lineheight;
|
$preview-height: 8*$lineheight;
|
||||||
|
$preview-content-height:165px;
|
||||||
|
$comment-peek-height:0px;
|
||||||
|
$comment-height:30px;
|
||||||
|
|
||||||
.previews-section {
|
.previews-section {
|
||||||
display: grid;
|
display: grid;
|
||||||
|
@ -107,7 +110,7 @@ $preview-height: 8*$lineheight;
|
||||||
.metadata-pills {
|
.metadata-pills {
|
||||||
opacity: .9;
|
opacity: .9;
|
||||||
transition: opacity .5s, height .5s;
|
transition: opacity .5s, height .5s;
|
||||||
height:135px;
|
height:$preview-content-height - $comment-height;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -153,12 +156,12 @@ $preview-height: 8*$lineheight;
|
||||||
|
|
||||||
.preview-metadata {
|
.preview-metadata {
|
||||||
color: $color-font-light;
|
color: $color-font-light;
|
||||||
height:165px;
|
height:$preview-content-height;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@include border-radius($card-radius);
|
@include border-radius($card-radius);
|
||||||
|
|
||||||
.metadata-pills {
|
.metadata-pills {
|
||||||
height:165px;
|
height:$preview-content-height - $comment-peek-height;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transition: opacity .3s, height .3s;
|
transition: opacity .3s, height .3s;
|
||||||
display:flex;
|
display:flex;
|
||||||
|
|
Loading…
Reference in a new issue