mediawiki-extensions-Relate.../resources/ext.relatedArticles.styles.less
Volker E 7c099fd4a1 styles: Use new forward-facing breakpoint variable
Replacing legacy desktop breakpoint variable with new Codex design
system `@min-width-breakpoint-desktop` token.

Bug: T331403
Change-Id: I09fa502a3caaf430f78a25188bcc3cd4f50b3a85
2023-10-22 23:34:36 -07:00

20 lines
584 B
Plaintext

@import 'mediawiki.skin.variables.less';
// Reserve space for the related articles cards.
// https://phabricator.wikimedia.org/T223844
// Note this is optimized for 3 related articles which is the majority of cases.
// There will be a jump when:
// - a page has no related articles,
// - a page has more than 3 related articles
// and there will be visible whitespace on mobile for a page with less than 3.
.client-js {
.read-more-container {
// Assumes 3 cards at 78px.
min-height: 274px;
@media ( min-width: @min-width-breakpoint-desktop ) {
min-height: 124px;
}
}
}