Added proper spacing and faster load

This commit is contained in:
webuser@infra.woelkchen.at 2024-03-20 12:53:44 +01:00
parent f3595b4918
commit 39b52dc2b2
4 changed files with 10 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# Spoiler▓Alert # Spoiler▓Alert
This MediaWiki extension allows users to create spoiler tags that reveal content on click. This MediaWiki extension allows users to create spoiler tags that reveal content on click.
<spoiler> I am a spoiler </spoiler> &lt;spoiler&gt; I am a spoiler &lt;/spoiler&gt;

View File

@ -20,8 +20,6 @@
}, },
"ResourceModules": { "ResourceModules": {
"ext.spoileralert": { "ext.spoileralert": {
"scripts": [
],
"styles": [ "styles": [
"/modules/ext.spoileralert.css" "/modules/ext.spoileralert.css"
], ],

View File

@ -11,7 +11,7 @@ class SpoilerAlertHooks {
} }
public static function onBeforePageDisplay( OutputPage &$out, Skin &$skin ) { public static function onBeforePageDisplay( OutputPage &$out, Skin &$skin ) {
$out->addModules( ['ext.spoileralert'] ); $out->addModuleStyles( ['ext.spoileralert'] );
return true; return true;
} }
} }

View File

@ -8,3 +8,11 @@
.spoiler.revealed { .spoiler.revealed {
color: white; color: white;
} }
.spoiler:after {
content: ""
}
.spoiler:before {
content: ""
}