Sass入ってるのに生CSSで書こうとしたやつがいるらしい

This commit is contained in:
shibafu
2019-03-09 17:07:00 +09:00
parent cd56e1bff3
commit 1a7d958a1e
3 changed files with 25 additions and 21 deletions

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;
}
}