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
|
|
|
|
2020-08-14 07:15:12 +00:00
|
|
|
// Only applies to mobile Minerva. For this reason these rules should likely be moved to
|
|
|
|
// `mobile.init.styles` either as a skin style or default style.
|
2017-07-12 15:12:40 +00:00
|
|
|
.lazy-image-placeholder {
|
2023-04-09 13:49:29 +00:00
|
|
|
background-color: @background-color-light;
|
2018-12-12 23:20:10 +00:00
|
|
|
|
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;
|
2020-08-14 07:15:12 +00:00
|
|
|
// See T199351#6370886
|
|
|
|
vertical-align: middle;
|
2017-07-12 15:12:40 +00:00
|
|
|
}
|
2020-08-14 07:03:46 +00:00
|
|
|
|
|
|
|
.content {
|
|
|
|
a > .lazy-image-placeholder {
|
|
|
|
// make sure that images in articles don't cause a horizontal scrollbar
|
|
|
|
// on small screens
|
|
|
|
max-width: 100% !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media print {
|
|
|
|
.lazy-image-placeholder {
|
|
|
|
page-break-inside: avoid;
|
|
|
|
}
|
|
|
|
}
|