Fix thumbnail height and make the image cover the container
| | |
| | | --blockquote-border-color: #dfe2e5; |
| | | --thumbnail-size: 150px; |
| | | --thumbnail-position: 1; /* -1 left, 1 right */ |
| | | --thumbnail-height: 300px; |
| | | scroll-padding-top: 100px; |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | /* Alternative Thumbnail */ |
| | | .post-text { |
| | | width: 100%; |
| | | } |
| | | |
| | | .post-thumbnail { |
| | | width: 100%; |
| | | padding-bottom: 1em; |
| | | height: auto; |
| | | height: var(--thumbnail-height); |
| | | } |
| | | |
| | | .post-thumbnail img { |
| | | width: 100%; |
| | | height: 100%; |
| | | object-fit: cover; |
| | | } |
| | | |
| | | .pagination { |
| | |
| | | .preview .thumbnail { |
| | | order: var(--thumbnail-position); |
| | | } |
| | | |
| | | :root { |
| | | --thumbnail-height: 200px; |
| | | } |
| | | } |
| | | |
| | | /* Medium zoom */ |