Added proper spacing and faster load
This commit is contained in:
		@@ -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>
 | 
					<spoiler> I am a spoiler </spoiler>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -20,8 +20,6 @@
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    "ResourceModules": {
 | 
					    "ResourceModules": {
 | 
				
			||||||
        "ext.spoileralert": {
 | 
					        "ext.spoileralert": {
 | 
				
			||||||
            "scripts": [
 | 
					 | 
				
			||||||
            ],
 | 
					 | 
				
			||||||
            "styles": [
 | 
					            "styles": [
 | 
				
			||||||
                "/modules/ext.spoileralert.css"
 | 
					                "/modules/ext.spoileralert.css"
 | 
				
			||||||
            ],
 | 
					            ],
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -8,3 +8,11 @@
 | 
				
			|||||||
.spoiler.revealed {
 | 
					.spoiler.revealed {
 | 
				
			||||||
    color: white;
 | 
					    color: white;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.spoiler:after {
 | 
				
			||||||
 | 
					    content: " "
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.spoiler:before {
 | 
				
			||||||
 | 
					    content: " "
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user