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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user