Browse Source

improve switcher style

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@933 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 10 years ago
parent
commit
aa51ba7c2e
  1. 8
      admin/xcache.css
  2. 2
      admin/xcache.php

8
admin/xcache.css

@ -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; }

2
admin/xcache.php

@ -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