| 1 |
@import '../../minerva.less/minerva.variables.less'; |
| 2 |
@import '../../minerva.less/minerva.mixins.less'; |
| 3 |
|
| 4 |
// Only applies to mobile Minerva. For this reason these rules should likely be moved to |
| 5 |
// `mobile.init.styles` either as a skin style or default style. |
| 6 |
.lazy-image-placeholder { |
| 7 |
background-color: @background-color-interactive; |
| 8 |
|
| 9 |
// If the placeholder itself is inside an inline element do not use block |
| 10 |
// See https://phabricator.wikimedia.org/T143558 |
| 11 |
// and https://phabricator.wikimedia.org/T144567 |
| 12 |
li &, |
| 13 |
span & { |
| 14 |
display: inline-block; |
| 15 |
} |
| 16 |
|
| 17 |
// The image placeholder for shouldn't show for no-js devices |
| 18 |
.client-nojs & { |
| 19 |
display: none; |
| 20 |
} |
| 21 |
|
| 22 |
// In order to avoid reflows placeholder needs to be inline-block |
| 23 |
// Otherwise display block will always take up the full line |
| 24 |
// instead of allowing text before and after |
| 25 |
// see T146298 |
| 26 |
display: inline-block; |
| 27 |
// See T199351#6370886 |
| 28 |
vertical-align: middle; |
| 29 |
} |
| 30 |
|
| 31 |
.content { |
| 32 |
a > .lazy-image-placeholder { |
| 33 |
// make sure that images in articles don't cause a horizontal scrollbar |
| 34 |
// on small screens |
| 35 |
max-width: 100% !important; |
| 36 |
} |
| 37 |
} |
| 38 |
|
| 39 |
@media print { |
| 40 |
.lazy-image-placeholder { |
| 41 |
page-break-inside: avoid; |
| 42 |
} |
| 43 |
} |