Jack Phoenix has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/358497 )
Change subject: Version 1.5: add CSS ...................................................................... Version 1.5: add CSS This CSS was originally bundled with some Wikia/ArmchairGM skins, such as Nimbus and Monaco. Change-Id: I9c0f1375b5f15b83fe3bc4859841735bfbe0a0df --- M RandomFeaturedUser.class.php A RandomFeaturedUser.css M extension.json 3 files changed, 45 insertions(+), 4 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/RandomFeaturedUser refs/changes/97/358497/1 diff --git a/RandomFeaturedUser.class.php b/RandomFeaturedUser.class.php index 7e13023..8629915 100644 --- a/RandomFeaturedUser.class.php +++ b/RandomFeaturedUser.class.php @@ -43,6 +43,9 @@ return ''; } + // Add CSS + $parser->getOutput()->addModuleStyles( 'ext.RandomFeaturedUser.css' ); + $user_list = array(); $count = 20; $realCount = 10; diff --git a/RandomFeaturedUser.css b/RandomFeaturedUser.css new file mode 100644 index 0000000..190a865 --- /dev/null +++ b/RandomFeaturedUser.css @@ -0,0 +1,30 @@ +.random-featured-user { + font-size: 11px; + color: #333; + line-height: 14px; + margin: 10px 0px 0px 0px; +} + +.random-featured-user img { + float: left; + border: 1px solid #dcdcdc; + padding: 3px; + background-color: #fff; + display: block; + text-align: justify; + margin: 0px 10px 0px 0px; +} + +.random-featured-user-title { + margin: 0px 0px 6px 0px; +} + +.random-featured-user-title a { + text-decoration: none; + font-size: 14px; + font-weight: bold; +} + +.random-featured-user-about-title { + font-weight: bold; +} \ No newline at end of file diff --git a/extension.json b/extension.json index bd057ae..56db04e 100644 --- a/extension.json +++ b/extension.json @@ -1,6 +1,6 @@ { "name": "RandomFeaturedUser", - "version": "1.4", + "version": "1.5", "author": [ "David Pean", "Jack Phoenix" @@ -25,9 +25,17 @@ "RandomFeaturedUser": "RandomFeaturedUser.class.php" }, "Hooks": { - "ParserFirstCallInit": [ - "RandomFeaturedUser::onParserFirstCallInit" - ] + "ParserFirstCallInit": "RandomFeaturedUser::onParserFirstCallInit" + }, + "ResourceModules": { + "ext.RandomFeaturedUser.css": { + "styles": "RandomFeaturedUser.css", + "position": "top" + } + }, + "ResourceFileModulePaths": { + "localBasePath": "", + "remoteExtPath": "RandomFeaturedUser" }, "manifest_version": 1 } -- To view, visit https://gerrit.wikimedia.org/r/358497 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I9c0f1375b5f15b83fe3bc4859841735bfbe0a0df Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/RandomFeaturedUser Gerrit-Branch: master Gerrit-Owner: Jack Phoenix <j...@countervandalism.net> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits