1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 05:41:31 +00:00

feat: set preview image ratio to 1.91 : 1

This commit is contained in:
Cotes Chung
2022-12-15 03:18:27 +08:00
parent ab16fdc7fc
commit 4b6ccbcbcc
2 changed files with 7 additions and 17 deletions

View File

@@ -34,6 +34,8 @@
@include align-center;
@extend %preview-margin;
max-width: 100%;
&:not(.no-bg) {
img.lazyloaded {
background: var(--img-bg);
@@ -41,6 +43,10 @@
}
img {
aspect-ratio: 40 / 21;
-o-object-fit: cover;
object-fit: cover;
@extend %preview-margin;
@extend %img-rounded;
}