2018-05-19 18:17:31 +00:00
|
|
|
@import '../../minerva.less/minerva.variables';
|
|
|
|
@import '../../minerva.less/minerva.mixins';
|
2017-07-12 15:12:40 +00:00
|
|
|
|
|
|
|
@placeholderBackgroundColor: @grayLightest;
|
|
|
|
|
|
|
|
.lazy-image-placeholder {
|
|
|
|
// If the placeholder itself is inside an inline element do not use block
|
|
|
|
// See https://phabricator.wikimedia.org/T143558
|
|
|
|
// and https://phabricator.wikimedia.org/T144567
|
|
|
|
li &,
|
|
|
|
span & {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
// The image placeholder for shouldn't show for no-js devices
|
|
|
|
.client-nojs & {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
background-color: @placeholderBackgroundColor;
|
|
|
|
|
|
|
|
// In order to avoid reflows placeholder needs to be inline-block
|
|
|
|
// Otherwise display block will always take up the full line
|
|
|
|
// instead of allowing text before and after
|
|
|
|
// see T146298
|
|
|
|
display: inline-block;
|
|
|
|
}
|