mirror of
https://github.com/octfx/mediawiki-extensions-TemplateStylesExtender.git
synced 2024-12-11 16:16:20 +00:00
864 B
864 B
TemplateStylesExtender
Extends Extension:TemplateStyles by the following new matchers:
- CSS Variables:
- Example:
color: var( --example-var )
- Example:
image-rendering
ruby-position
ruby-align
scroll-margin-*
,scroll-padding-*
pointer-events
Installation
Download the zip file from the latest release page.
Extract the folder to extensions/TemplateStylesExtender
.
Add the following to LocalSettings.php
:
wfLoadExtension( 'TemplateStyles' )
wfLoadExtension('TemplateStylesExtender')
Configuration
$wgTemplateStylesExtenderEnablePrefersColorScheme
Default: true
Enables or disables @media (prefers-color-scheme)
queries.
$wgTemplateStylesExtenderEnableCssVars
Default: true
Enables or disables css variable support.