a0d2c2497b
Fix the icon button directionality in right-to-left languages. Previously, the button was hardcoded to support left-to-right only. - Replace the skin.vector.icons' `.mw-ui-icon-wikimedia-{name}:before` `selector` in skin.json with a placeholder, `{name}`. I don't think this selector should be needed but it seems to be erroneous not have one. I believe this issue of wanting a null selector was encountered in Minerva or MobileFrontend but am unable to locate the past discourse. - Add check and unchecked menu button selectors to skin.json that set the appropriate background image. This shards some of the styles out of Less and into ResourceLoader-land but it's worthwhile. - Revise the name of horizontal collapse icon to describe its form not function, "collapseHorizontal" to "chevronHorizontal". This has been an established convention that was missed a couple patches back. - Add a flipped chevronHorizontal for RTL. I used Inkscape to do the flip and tried to match the style of the original by hand. Feel free to edit further. - Drop the now unnecessary icon flipping JavaScript and initial Mustache class. This enables a real CSS-only solution for the icons. Bug: T246419 Change-Id: I60f65b3c595bf18d309b667d9a0b066691b90c97 |
||
---|---|---|
.phan | ||
.storybook | ||
dev-scripts | ||
i18n | ||
includes | ||
resources | ||
screenshots | ||
skinStyles | ||
stories | ||
tests/phpunit | ||
.eslintignore | ||
.eslintrc.json | ||
.gitignore | ||
.gitreview | ||
.phpcs.xml | ||
.stylelintignore | ||
.stylelintrc.json | ||
.svgo.yml | ||
CODE_OF_CONDUCT.md | ||
composer.json | ||
COPYING | ||
Doxyfile | ||
hooks.txt | ||
jsdoc.json | ||
package-lock.json | ||
package.json | ||
README.md | ||
skin.json | ||
tsconfig.json | ||
variables.less |
Vector Skin
Installation
See https://www.mediawiki.org/wiki/Skin:Vector.
Configuration options
See skin.json.
Development
Coding conventions
We strive for compliance with MediaWiki conventions:
https://www.mediawiki.org/wiki/Manual:Coding_conventions
Additions and deviations from those conventions that are more tailored to this project are noted at:
https://www.mediawiki.org/wiki/Reading/Web/Coding_conventions
URL query parameters
useskinversion
: Likeuseskin
but for overriding the Vector skin version user preference and configuration. E.g., http://localhost:8181?useskin=vector&useskinversion=2.
Skin preferences
Vector defines skin-specific user preferences. These are exposed on
Special:Preferences when the VectorShowSkinPreferences
configuration is
enabled. The user's preference state for skin preferences is used for skin
previews and any other operation unless specified otherwise.
Version
Vector defines a "version" preference to enable users who prefer the December
2019 version of Vector to continue to do so without any visible changes. This
version is called "Legacy Vector." The related preference defaults are
configurable via the configurations prefixed with VectorDefaultSkinVersion
.
Version preference and configuration may be overridden by the useskinversion
URL query parameter.
Hooks
See hooks.txt.