mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RelatedArticles
synced 2024-12-03 20:36:50 +00:00
7c23636954
If the page has related articles, is in mainspace, isn't the main page, and the output is being rendered with the MinervaBeta skin then a "Related Articles" section is added to the page just before the footer. Separate loading the information necessary to render the pages, choosing the renderer, and rendering the data so that multiple skins - currently Minerva and Vector per the mocks - not just multiple resolutions can all be handled the same way: * The bootstrap script (ext.relatedArticles.readMore.bootstrap/index.js) for fetches the page image and Wikidata description; loading the renderer module; and, finally, notifying the renderer module that it should render the data, which it does by emitting "ext.relatedArticles.readMore.init" event using mw#track * The Minerva renderer subscribes to the event and, when it's fired, renders the data by passing it to the WatchstarPageList view Bug: T113635 Change-Id: I651342bdf9796938fa7051828dd13bc6fe774783
26 lines
429 B
Plaintext
26 lines
429 B
Plaintext
@import "mediawiki.ui/variables";
|
|
|
|
.ra-read-more {
|
|
margin-top: 35px;
|
|
margin-bottom: 70px;
|
|
}
|
|
|
|
.ra-read-more h2 {
|
|
font-size: 1em;
|
|
font-weight: bold;
|
|
color: @colorGray6;
|
|
|
|
padding-left: 0.5em;
|
|
padding-bottom: 0.5em;
|
|
}
|
|
|
|
.ra-read-more .page-list {
|
|
border-top: 1px solid @colorGray14;
|
|
}
|
|
|
|
// See MobileFrontend/resources/mobile.pagelist.styles/pagelist.less for
|
|
// example HTML.
|
|
.ra-read-more .page-summary h3 {
|
|
color: black;
|
|
}
|