mirror of
https://github.com/octfx/mediawiki-extensions-TemplateStylesExtender.git
synced 2025-01-06 03:56:38 +00:00
dist: Release v1.0.1
This commit is contained in:
parent
4fe8910a35
commit
fcbffe51d6
24
README.md
24
README.md
|
@ -27,3 +27,27 @@ Enables or disables `@media (prefers-color-scheme)` queries.
|
||||||
`$wgTemplateStylesExtenderEnableCssVars`
|
`$wgTemplateStylesExtenderEnableCssVars`
|
||||||
Default: `true`
|
Default: `true`
|
||||||
Enables or disables css variable support.
|
Enables or disables css variable support.
|
||||||
|
|
||||||
|
## Notes on CSS vars
|
||||||
|
Currently using `:root` selectors won't work due to template styles prepending `.mw-parser-output`.
|
||||||
|
|
||||||
|
One possible fix is to wrap the entire content into a `div` element and adding the declarations to this, e.g.
|
||||||
|
```css
|
||||||
|
div#content-wrap {
|
||||||
|
--padding: 10px
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
padding: var( --padding )
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Wikitext
|
||||||
|
```html
|
||||||
|
<div id="content-wrap">
|
||||||
|
<div class=".content">
|
||||||
|
The WikiText...
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
```
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "mediawiki/template-styles-extender",
|
"name": "mediawiki/template-styles-extender",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"type": "mediawiki-extension",
|
"type": "mediawiki-extension",
|
||||||
"description": "Extends TemplateStyles with new CSS properties",
|
"description": "Extends TemplateStyles with new CSS properties",
|
||||||
"homepage": "http://www.mediawiki.org/wiki/Extension:TemplateStylesExtender",
|
"homepage": "http://www.mediawiki.org/wiki/Extension:TemplateStylesExtender",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "TemplateStylesExtender",
|
"name": "TemplateStylesExtender",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"author": [
|
"author": [
|
||||||
"Octfx"
|
"Octfx"
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue