d5cb58b3f0
* `mw-content-container` now wraps the footer (as well as the content) because we want the footer to match the content width at all times and to expand with the content when the sidebar is closed (at small viewport widths or when on history/special pages) * `mw-footer-container` margins were replaced with padding to avoid issues with margin collapsing. * Applied a white background to sidebar to handle the case of the sidebar overflowing the `mw-page-container`. When that happens, we at least want the text in the sidebar to be legible. * Closely related, `mw-page-container`'s `overflow: hidden` style was removed to prevent `mw-page-container` from cutting off the sidebar. The purpose of this style was make it appear as if the sidebar was being hidden by `mw-page-container`, but tweaking the sidebar's translation animation to achieves this effect as well. Bug: T257518 Change-Id: I89edf89b2ac4abe2053f0c9b366f143133ff420f |
||
---|---|---|
.phan | ||
.storybook | ||
dev-scripts | ||
i18n | ||
includes | ||
resources | ||
screenshots | ||
skinStyles | ||
stories | ||
tests | ||
.eslintignore | ||
.eslintrc.json | ||
.gitignore | ||
.gitreview | ||
.phpcs.xml | ||
.stylelintignore | ||
.stylelintrc.json | ||
.svgo.yml | ||
bundlesize.config.json | ||
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.