Custom Vector theme/skin for GolemWiki, our instance of MediaWiki
Go to file
Bartosz Dziewoński e951a09913 Fix reversed nav elements when viewing cached HTML
Follow-up to 5d0a07bf9d.
See T48947#3641618 for a detailed explanation of the
problem this is fixing. Essentially, our CSS has to be
compatible with both new and old HTML to avoid problems
with cached pages on Wikimedia wikis. To do this, we
add a CSS class to the body and make the new CSS only
apply on pages that have this class. This patch should
be reverted when the caches expire.

Bug: T48947
Change-Id: Icf26e6690b59f470765b2634534d18d2df25ee2a
2017-09-28 04:23:01 +02:00
components Fix reversed nav elements when viewing cached HTML 2017-09-28 04:23:01 +02:00
i18n Localisation updates from https://translatewiki.net. 2017-09-27 21:59:33 +02:00
images Use tabs instead of spaces for indenting 2017-03-25 14:56:54 +01:00
screenshots Add skin screenshot for the installer 2017-08-11 15:37:34 -04:00
skinStyles Replace colors on Special:Preferences view with WikimediaUI ones 2017-08-18 15:42:33 -07:00
.eslintrc.json build: Replace jshint and jscs with eslint 2016-11-29 08:39:55 -08:00
.gitignore collapsibleTabs: Clean up and simplify code 2016-11-29 02:25:00 +00:00
.gitreview Use track=1 instead of defaultbranch=master in .gitreview 2016-10-24 17:30:32 -07:00
.stylelintrc.json Use json extension for .stylelintrc 2017-08-19 06:46:03 +00:00
CODE_OF_CONDUCT.md Add CODE_OF_CONDUCT.md 2017-06-07 13:51:49 +04:30
COPYING Use the plain-text GPL and fix 'license-name' to match SPDX conventions 2015-01-29 17:04:29 +01:00
Gruntfile.js Use json extension for .stylelintrc 2017-08-19 06:46:03 +00:00
Hooks.php Vector should operate in responsive mode when the mobile skin 2017-07-03 15:57:49 -07:00
README.md Add print logo 2017-08-01 10:55:53 -04:00
ResourceLoaderLessModule.php build: Updating mediawiki/mediawiki-codesniffer to 13.0.0 2017-09-24 05:37:56 +00:00
SkinVector.php Fix reversed nav elements when viewing cached HTML 2017-09-28 04:23:01 +02:00
Vector.php Run phplint and phpcs through "composer test" entry point 2015-06-09 16:37:14 +03:00
VectorTemplate.php Vector: Flip horizontal nav elements with CSS 2017-09-26 10:30:11 -05:00
collapsibleTabs.js build: Update eslint-config-wikimedia 0.4->0.5, eslint 19->20 2017-08-25 16:21:21 +01:00
composer.json build: Updating mediawiki/mediawiki-codesniffer to 13.0.0 2017-09-24 05:37:56 +00:00
hooks.txt Move hooks.txt docs from mediawiki/core 2014-08-09 17:09:24 +02:00
jsduck.json collapsibleTabs: Clean up and simplify code 2016-11-29 02:25:00 +00:00
package.json build: Update eslint-config-wikimedia 0.4->0.5, eslint 19->20 2017-08-25 16:21:21 +01:00
phpcs.xml Improve some parameter docs 2017-09-09 13:52:04 +00:00
print.less Print styles: fix breaking of table of contents 2017-09-21 16:06:51 -04:00
responsive.less Use global variable for tablet media query in responsive.less 2016-12-13 15:27:38 -08:00
screen-hd.less Remove `position: absolute` from #p-logo element 2017-07-13 16:28:08 +08:00
screen.less build: Introduce stylelint and make pass 2016-11-29 08:40:03 -08:00
skin.json Add print logo 2017-08-01 10:55:53 -04:00
variables.less chmod -x variables.less 2017-08-23 22:37:00 -07:00
vector.js build: Update eslint-config-wikimedia 0.4->0.5, eslint 19->20 2017-08-25 16:21:21 +01:00

README.md

Vector Skin

Configuration options

Logo used in print styles. Keys are url, width, and height (in pixels). Note that this solution only works correctly if the image pointed to by url is an SVG that does not specify width and height attributes, or its width and height match the corresponding variables below. Alternatively, a PNG or other type of image can be used, but its dimensions also need to match the corresponding variable below. That in turn may result in blurry images, though.

Example configuration:

$wgVectorPrintLogo = [
	'url' => 'https://en.wikipedia.org/static/images/mobile/copyright/wikipedia-wordmark-en.svg',
	'width' => 174,
	'height' => 27
];
  • Type: Array
  • Default: false