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

feat: add shimmer background when image loads

This commit is contained in:
Cotes Chung
2022-12-13 21:41:32 +08:00
parent bffaf6374f
commit ab16fdc7fc
10 changed files with 207 additions and 115 deletions

View File

@@ -26,12 +26,23 @@
color: var(--text-color);
}
img.preview-img {
%preview-margin {
margin: 0;
border-radius: 6px;
}
.preview-img {
@include align-center;
@extend %preview-margin;
&:not(.no-bg) {
background: var(--preview-img-bg);
img.lazyloaded {
background: var(--img-bg);
}
}
img {
@extend %preview-margin;
@extend %img-rounded;
}
}