サムネイルを含むカードを高さ400pxに固定、サムネイルはトリミング表示されるようにした

This commit is contained in:
shibafu
2019-04-14 23:16:05 +09:00
parent 3cba46bff0
commit 2ff07cc68d
2 changed files with 12 additions and 2 deletions

View File

@@ -1,8 +1,18 @@
.link-card {
.row > div:last-child {
.row > div {
max-height: 400px;
overflow: hidden;
}
.row > div:first-child {
display: flex;
&:not([display=none]) {
height: 400px;
}
}
.row > div:last-child {
// 省略を表す影を付けるやつ
&::before {
position: absolute;