Merge pull request #136 from shikorism/fix/87-meta-desc-line-break

メタデータのdescriptionに含まれる改行を表示に反映する
This commit is contained in:
shibafu 2019-03-10 15:36:08 +09:00 committed by GitHub
commit d9d6c10a34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 1 deletions

View File

@ -5,4 +5,7 @@
@import "~open-iconic/font/css/open-iconic-bootstrap";
// Legacy app styles
@import "tissue.css";
@import "tissue.css";
// Components
@import "components/link-card";

View File

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