Harej has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/339813 )
Change subject: Adding hub section main bodies to their own container and setting padding ...................................................................... Adding hub section main bodies to their own container and setting padding I think having the buttons become in-line with the H2 headers broke padding. This fixes that by having everything after the top being in a container div, with padding-top set to 0.25 em. Change-Id: Id4fc1f85a23993d1ad1955c655dcef9e25195365 --- M includes/content/CollaborationHubContent.php M modules/ext.CollaborationKit.hub.styles.less 2 files changed, 5 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CollaborationKit refs/changes/13/339813/1 diff --git a/includes/content/CollaborationHubContent.php b/includes/content/CollaborationHubContent.php index dfb0d33..dbad498 100644 --- a/includes/content/CollaborationHubContent.php +++ b/includes/content/CollaborationHubContent.php @@ -568,7 +568,7 @@ $text = $contentOutput->getRawText(); } - $html .= $text; + $html .= Html::rawElement( 'div', [ 'class' => 'mw-ck-hub-section-main' ], $text ); // register as template for stuff $output->addTemplate( $spTitle, $spTitle->getArticleId(), $spRev->getId() ); diff --git a/modules/ext.CollaborationKit.hub.styles.less b/modules/ext.CollaborationKit.hub.styles.less index b5bcb8b..c664627 100644 --- a/modules/ext.CollaborationKit.hub.styles.less +++ b/modules/ext.CollaborationKit.hub.styles.less @@ -62,12 +62,15 @@ h2 { display: inline; margin: 0; - padding: 0 0 .25em; border-bottom-style: none; border-top-style: none; border-left-style: none; border-right-style: none; } + + .mw-ck-hub-section-main { + padding-top: .25em; + } } .mw-ck-hub-section-buttons { display: inline; -- To view, visit https://gerrit.wikimedia.org/r/339813 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Id4fc1f85a23993d1ad1955c655dcef9e25195365 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/CollaborationKit Gerrit-Branch: master Gerrit-Owner: Harej <jamesmh...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits