diff options
author | Timo Tijhof <krinklemail@gmail.com> | 2018-05-20 20:32:57 +0200 |
---|---|---|
committer | VolkerE <volker.e@wikimedia.org> | 2020-09-15 10:05:53 +0000 |
commit | 0c01d8cc529f0e3ed65c04f71e298f0a01ec4950 (patch) | |
tree | 65c0563a6dde73e2c3da7c7d93af0a01465ef202 /tests/phpunit/data/less/testvariables | |
parent | 4d8cb4dc164971b978eb0173fe08886e733a2662 (diff) | |
download | mediawikicore-0c01d8cc529f0e3ed65c04f71e298f0a01ec4950.tar.gz mediawikicore-0c01d8cc529f0e3ed65c04f71e298f0a01ec4950.zip |
resourceloader: Add skin-based 'mediawiki.skin.variables.less' import
Add the SkinLessImportPaths attribute for skin-specific LESS import
paths, which skins can use to override the mediawiki.skin.variables.less
file.
As a starting point, add the following 5 variables:
* device widths (3x)
To help phase out 'mediawiki.ui/variables'. These are
commonly used by MobileFrontend.
* @font-family-sans
Recommended by Volker. Used by multiple skins.
* @border-radius-base
Recommended by Volker as example of something that we currently
hardcode in MediaWiki core for Vector and OOUI/WikimediaUI
in 'mediawiki.widgets.datetime' but should instead be allowed
to vary by skin and OOUI theme.
Remove the hardcoded value for '@border-radius-base' in
various places in favour of importing from mediawiki.skin.
The default is a bare default of 0 (as border-radius is off
by default in the browser).
The value for Vector is restored there by I47da304667811.
The value for MonoBook is improved by I000f319ab31b.
Bug: T112747
Change-Id: Icf86c930a3b5524254bb549624737d3b9dccb032
Diffstat (limited to 'tests/phpunit/data/less/testvariables')
-rw-r--r-- | tests/phpunit/data/less/testvariables/mediawiki.skin.variables.less | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/phpunit/data/less/testvariables/mediawiki.skin.variables.less b/tests/phpunit/data/less/testvariables/mediawiki.skin.variables.less new file mode 100644 index 000000000000..490f723ada84 --- /dev/null +++ b/tests/phpunit/data/less/testvariables/mediawiki.skin.variables.less @@ -0,0 +1,3 @@ +@import 'mediawiki.skin.defaults.less'; + +@border-radius-base: 42px; |