Fix the width and height of cover images (#23)

This commit is contained in:
Alex Ling 2020-04-01 04:51:57 +00:00
parent 4968cb8e18
commit a5daded453
1 changed files with 11 additions and 2 deletions

View File

@ -5,8 +5,17 @@
padding: 20px;
}
.uk-card-media-top {
max-height: 350px;
overflow: hidden;
height: 250px;
}
@media (min-width: 600px) {
.uk-card-media-top {
height: 300px;
}
}
.uk-card-media-top > img {
height: 100%;
width: 100%;
object-fit: cover;
}
.uk-card-title {
height: 3em;