https://bugzilla.wikimedia.org/show_bug.cgi?id=60368
Web browser: ---
Bug ID: 60368
Summary: Order of LESS file import is confusing
Product: MediaWiki
Version: 1.23-git
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: Skin and page rendering
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
If the .less files of a custom skin mimic the file structure of Vector
(styles.less containing @import statements for files in the
skins/mystyle/components directory or called "variables"), they won't be
loaded. Instead, the files from the skins/vector directory will be loaded.
This is because of the path precedence in $wgResourceLoaderLESSImportPaths.
First, the LESS compiler is initialized with the import directories from
wgResourceLoaderLESSImportPaths and only in the course of compiling the file
from the custom skin, the path of the custom skin is added to the importDirs
variable of the LESS compiler.
This behavior breaks the reasonable expectation of a skin developer that the
included .less files are read from the skin directory.
Proposed workaround (if no code solution is possible): Put a comment in
styles.less of the Vector skin, with a warning to choose a different file names
than those of Vector in your own templates.
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l