mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RelatedArticles
synced 2024-12-25 14:23:44 +00:00
8f6fce655b
Replacing 'mediawiki.ui/variables.less' `@import` with new skin-aware 'mediawiki.skin.variables.less' standard. Also - replacing several static values with skin variables featuring new Codex design tokens for following properties: - background-color - color - border-width, border-style, border-color and border shorthand Bump required MediaWiki core version to >= v1.41.0. Bug: T319381 Bug: T332541 Depends-On: I04f9e48a1cf9dee915cf51e1e12b17ff0a595a06 Change-Id: I32c2996dedc9b3a54e1f916623dbe1c4da910083
20 lines
580 B
Plaintext
20 lines
580 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: @width-breakpoint-desktop ) {
|
|
min-height: 124px;
|
|
}
|
|
}
|
|
}
|