Added proper spacing and faster load
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
			
		||||
# Spoiler▓Alert
 | 
			
		||||
 | 
			
		||||
This MediaWiki extension allows users to create spoiler tags that reveal content on click.
 | 
			
		||||
<spoiler> I am a spoiler </spoiler>
 | 
			
		||||
<spoiler> I am a spoiler </spoiler>
 | 
			
		||||
 
 | 
			
		||||
@@ -20,8 +20,6 @@
 | 
			
		||||
    },
 | 
			
		||||
    "ResourceModules": {
 | 
			
		||||
        "ext.spoileralert": {
 | 
			
		||||
            "scripts": [
 | 
			
		||||
            ],
 | 
			
		||||
            "styles": [
 | 
			
		||||
                "/modules/ext.spoileralert.css"
 | 
			
		||||
            ],
 | 
			
		||||
 
 | 
			
		||||
@@ -11,7 +11,7 @@ class SpoilerAlertHooks {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public static function onBeforePageDisplay( OutputPage &$out, Skin &$skin ) {
 | 
			
		||||
        $out->addModules( ['ext.spoileralert'] );
 | 
			
		||||
        $out->addModuleStyles( ['ext.spoileralert'] );
 | 
			
		||||
        return true;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -8,3 +8,11 @@
 | 
			
		||||
.spoiler.revealed {
 | 
			
		||||
    color: white;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.spoiler:after {
 | 
			
		||||
    content: " "
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.spoiler:before {
 | 
			
		||||
    content: " "
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user