2019-08-08 20:01:03 +00:00
|
|
|
@import '../../minerva.less/minerva.variables.less';
|
|
|
|
@import '../../minerva.less/minerva.mixins.less';
|
2017-07-12 15:12:40 +00:00
|
|
|
|
|
|
|
@placeholderBackgroundColor: @grayLightest;
|
|
|
|
|
|
|
|
.lazy-image-placeholder {
|
2018-12-12 23:20:10 +00:00
|
|
|
background-color: @placeholderBackgroundColor;
|
|
|
|
|
2017-07-12 15:12:40 +00:00
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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;
|
|
|
|
}
|