mediawiki-skins-Citizen/resources/skins.citizen.styles.lazyload/lazyload.less

34 lines
536 B
Plaintext
Raw Normal View History

2020-06-12 18:02:23 +00:00
//
// Citizen - Lazyload styles
// https://starcitizen.tools
//
@import '../variables.less';
.mw-body-content {
a.image {
img {
filter: none;
transition: @transition-filter, @transition-transform-quick;
}
.lazy {
display: block;
background-color: @base-90;
filter: blur( 8px ); // Blur the image
2020-06-12 18:02:43 +00:00
transform: scale( 1.1 ); // Prevent white edges
2020-06-12 18:02:23 +00:00
overflow: hidden;
}
}
}
@media ( prefers-color-scheme: dark ) {
.mw-body-content {
a.image {
.lazy {
background-color: @dark-bg-10;
}
}
}
2020-06-12 18:02:43 +00:00
}