Hovering using CSS only

This commit is contained in:
Michal Čihař
2011-02-08 19:51:52 +01:00
parent a7d777a5e4
commit 8149d70915

View File

@@ -192,15 +192,17 @@ button.mult_submit {
} }
/* odd items 1,3,5,7,... */ /* odd items 1,3,5,7,... */
tr.odd th,
tr.odd { tr.odd {
background: <?php echo $GLOBALS['cfg']['BgOne']; ?>; background: <?php echo $GLOBALS['cfg']['BgOne']; ?>;
} }
/* even items 2,4,6,8,... */ /* even items 2,4,6,8,... */
tr.even th,
tr.even { tr.even {
background: <?php echo $GLOBALS['cfg']['BgTwo']; ?>; background: <?php echo $GLOBALS['cfg']['BgTwo']; ?>;
} }
fieldset th { tr.even th, tr.odd th, fieldset th {
color: <?php echo $GLOBALS['cfg']['MainColor']; ?>; color: <?php echo $GLOBALS['cfg']['MainColor']; ?>;
} }
@@ -212,6 +214,7 @@ tr.even {
<?php if ($GLOBALS['cfg']['BrowseMarkerEnable']) { ?> <?php if ($GLOBALS['cfg']['BrowseMarkerEnable']) { ?>
/* marked table rows */ /* marked table rows */
tr.marked th,
tr.marked { tr.marked {
background: <?php echo $GLOBALS['cfg']['BrowseMarkerBackground']; ?>; background: <?php echo $GLOBALS['cfg']['BrowseMarkerBackground']; ?>;
color: <?php echo $GLOBALS['cfg']['BrowseMarkerColor']; ?>; color: <?php echo $GLOBALS['cfg']['BrowseMarkerColor']; ?>;
@@ -226,6 +229,7 @@ tr.marked {
} }
/* hovered table rows */ /* hovered table rows */
tr:hover th,
tr:hover { tr:hover {
background: <?php echo $GLOBALS['cfg']['BrowsePointerBackground']; ?>; background: <?php echo $GLOBALS['cfg']['BrowsePointerBackground']; ?>;
color: <?php echo $GLOBALS['cfg']['BrowsePointerColor']; ?>; color: <?php echo $GLOBALS['cfg']['BrowsePointerColor']; ?>;