1
0
Fork 0

improve switcher style

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@933 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 11 years ago
parent a51249d238
commit aa51ba7c2e

@ -38,8 +38,12 @@ form {margin: 0; padding: 0}
.hitsgraph div div.barv.active { border-color: yellow; }
.switcher, h1 { text-align: center; display: block; }
.switcher * { color: blue; }
.switcher a.active { font-weight: bold; font-size: 130%; color: black; }
.switcher a { color: blue; padding: 0 8px 0 8px; border: 1px solid white; border-bottom-color: black; }
.switcher a:hover.active
, .switcher a:active.active
, .switcher a.active { color: black; text-decoration: none; background: #99C; border-color: #99C; border-left-color: black; border-right-color: black; }
.switcher a:hover { background: #f0f0f0; }
.switcher a:active { background: #e0e0e0; }
#help { display: block; float: right; }
.footnote { text-align: right; font-size: 12px; }
dl { overflow: hidden; }

@ -189,7 +189,7 @@ function switcher($name, $options)
foreach ($options as $k => $v) {
$html[] = sprintf('<a href="?%s=%s"%s>%s</a>', $name, $k, $k == $n ? ' class="active"' : '', $v);
}
return implode(' ', $html);
return implode('', $html);
}
if (!extension_loaded('XCache')) {

Loading…
Cancel
Save