Merge "Fix RelatedPages placement in Monobook"

This commit is contained in:
jenkins-bot 2016-02-23 22:13:17 +00:00 committed by Gerrit Code Review
commit 74d871bce4
5 changed files with 36 additions and 25 deletions

View file

@ -142,6 +142,14 @@ class FooterHooks {
"styles" => array(
"resources/ext.relatedArticles.readMore/readMore.less"
),
"skinStyles" => array(
"default" => "resources/ext.relatedArticles.readMore/readMore.default.less",
"monobook" => array(
"resources/ext.relatedArticles.readMore/readMore.default.less",
"resources/ext.relatedArticles.readMore/readMore.monobook.less"
),
"minerva" => "resources/ext.relatedArticles.readMore/readMore.minerva.less"
),
"messages" => array(
"relatedarticles-read-more-heading"
),

View file

@ -0,0 +1,15 @@
// Hide RelatedArticles when VE is activated (https://phabricator.wikimedia.org/T120443)
.ve-activated {
.ra-read-more {
display: none;
}
}
.ra-read-more {
margin: 0 0 0 10em;
padding: 1em;
.ext-cards-card-list {
margin-left: 0;
}
}

View file

@ -1,16 +1,6 @@
@import "mediawiki.ui/variables";
// Hide RelatedArticles when VE is activated (https://phabricator.wikimedia.org/T120443)
.ve-activated {
.ra-read-more {
display: none;
}
}
.ra-read-more {
margin-top: 35px;
margin-bottom: 70px;
h2 {
border-bottom: none;
font-size: .8em;
@ -20,19 +10,4 @@
text-transform: uppercase;
letter-spacing: 1px;
}
.page-list {
border-top: 1px solid @colorGray14;
}
}
body.skin-vector {
.ra-read-more {
margin: 0 0 0 10em;
padding: 1em;
.ext-cards-card-list {
margin-left: 0;
}
}
}

View file

@ -0,0 +1,7 @@
@import "mediawiki.ui/variables";
.ra-read-more {
margin-top: 35px;
margin-bottom: 70px;
}

View file

@ -0,0 +1,6 @@
// inherits from vector styles
.ra-read-more {
margin: 0 0 0 12.2em;
padding: 1em 0;
}