Thanks for the reply :] Im adding an external stylesheet. The idea of what I want is simple: I have a custom SpecialPage on which I have added HTML buttons and I want to change the way these buttons look like. So I want to load a custom .css file only when the user lands on my SpecialPage. Unfortunately I have not uploaded my code to the web yet, so I can't give you a link, but my basic code for the hook looks like this:
public function onBeforePageDisplay(OutputPage &$out, Skin &$ski ){
$page_title = $out->getPageTitle();
if($page_title === 'My SpecialPage Title Name'){
$out->addModules("ext.myModule");
}
return true;
}
ext.myModule then retrieves a small .css file with the changes I want for my buttons:
#button{
width: 30em;
height: 1.5em;
cursor: pointer;
}
#letter_button{
cursor: pointer;
}