diff options
author | Yihui Xie <xie@yihui.name> | 2017-07-12 05:36:24 +0300 |
---|---|---|
committer | Yihui Xie <xie@yihui.name> | 2017-07-12 05:38:01 +0300 |
commit | b1e24ab1bac48f12c01c6d37b12a17b00f1d23ca (patch) | |
tree | 6a61e20e0898f11ca0a2161f9f48acd4cda44d26 | |
parent | c93fafdea2614f502c0122b8f6de409f32bcf2ae (diff) |
fit img to the .thumbnail div
-rw-r--r-- | static/css/style.css | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/static/css/style.css b/static/css/style.css index 248b2b6..f63fc31 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -136,9 +136,11 @@ tr:nth-child(even) { background: #eee } overflow: hidden; margin: 5px 8px 5px 0; box-shadow: 0 0 8px #666; - display: flex; - justify-content: center; - align-items: center; +} +.thumbnail img { + width: 100%; + height: 100%; + object-fit: cover; } #TableOfContents, #TOC, .comments { border: 1px solid #eee; |