mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateStyles
synced 2024-11-13 18:26:59 +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
9 lines
250 B
XML
9 lines
250 B
XML
<?xml version="1.0"?>
|
|
<ruleset>
|
|
<rule ref="vendor/mediawiki/mediawiki-codesniffer/MediaWiki"/>
|
|
<file>.</file>
|
|
<arg name="extensions" value="php,php5,inc"/>
|
|
<arg name="encoding" value="utf8"/>
|
|
<exclude-pattern>vendor</exclude-pattern>
|
|
</ruleset>
|