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