Merge pull request #136 from shikorism/fix/87-meta-desc-line-break
メタデータのdescriptionに含まれる改行を表示に反映する
This commit is contained in:
commit
d9d6c10a34
3
resources/assets/sass/app.scss
vendored
3
resources/assets/sass/app.scss
vendored
@ -6,3 +6,6 @@
|
|||||||
|
|
||||||
// Legacy app styles
|
// Legacy app styles
|
||||||
@import "tissue.css";
|
@import "tissue.css";
|
||||||
|
|
||||||
|
// Components
|
||||||
|
@import "components/link-card";
|
21
resources/assets/sass/components/_link-card.scss
vendored
Normal file
21
resources/assets/sass/components/_link-card.scss
vendored
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user