mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateStyles
synced 2024-11-24 16:26:05 +00:00
31743445bd
This extension adds a <templatestyles> tag that, when placed on a template, allows specifying CSS for pages where that template is transcluded. Unlike inline styles, the per-template CSS supports rules with proper selectors, and @media blocks. THIS VERSION DOES NOT CURRENTLY FILTER DECLARATIONS and is therefore unsuitable for wikis where unprivileged users should not be allowed to influcence the pagewide CSS in unrestricted ways! Bug: T483 Change-Id: Ibc1cae3079d164f7ac7bcc7c4ded3f02bb048614
25 lines
306 B
Plaintext
25 lines
306 B
Plaintext
{
|
|
// Enforcing
|
|
"bitwise": true,
|
|
"eqeqeq": true,
|
|
"freeze": true,
|
|
"latedef": true,
|
|
"noarg": true,
|
|
"nonew": true,
|
|
"undef": true,
|
|
"unused": true,
|
|
"strict": false,
|
|
|
|
// Relaxing
|
|
"es5": false,
|
|
|
|
// Environment
|
|
"browser": true,
|
|
"jquery": true,
|
|
|
|
"globals": {
|
|
"mediaWiki": false,
|
|
"OO": false
|
|
}
|
|
}
|