メタデータのdescriptionに含まれる改行を表示に反映する

refs #87
This commit is contained in:
shibafu 2019-03-09 01:34:58 +09:00
parent 5db60a4524
commit cd56e1bff3

View File

@ -96,4 +96,24 @@
width: 100%;
border-top-right-radius: calc(.25rem - 1px);
border-bottom-right-radius: calc(.25rem - 1px);
}
.link-card .row > div:last-child {
max-height: 400px;
overflow: hidden;
}
/* 省略を表す影を付けるやつ */
.link-card .row > div:last-child::before {
content: '';
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
background: linear-gradient(transparent 320px, white);
}
.link-card .card-text {
white-space: pre-line;
}