getCss() protected method

Paints the CSS. Add additional styles here.
protected getCss ( ) : string
return string CSS code as text.
    protected function getCss()
    {
        return parent::getCss() . '
			.pass {color:green;}
			.subtle {color:#7B0000;}
			h1 {display:none;}
			h2,h3,h4{font-family:Verdana,Sans-serif;}
			table {margin-bottom:0.5em;width:100%;}
			tr {vertical-align:top;}
			td.first {width:3em;}
		';
    }
Beispiel #2
0
 protected function getCss()
 {
     $r = file_get_contents(dirname(__FILE__) . '/../../../resources/css/private.css');
     return parent::getCss() . " .pass { color: green; }\n" . $r;
 }
Beispiel #3
0
 function getCss()
 {
     return parent::getCss() . ' .pass {color:green;}';
 }
 protected function getCss()
 {
     return parent::getCss() . ' .pass { color: darkgreen; }';
 }
Beispiel #5
0
 public function getCss()
 {
     echo 'body { font:14px Consolas; }
           a.tooltip {text-decoration:none;}' . parent::getCss() . ' .pass { color: green; }
            .fail { font-weight: bold; }';
 }