Code

share/style.css: Fix the ":hover" pseudo-classes.
authorFlorian Forster <ff@octo.it>
Wed, 30 Jun 2010 13:15:23 +0000 (15:15 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Wed, 30 Jun 2010 13:15:23 +0000 (15:15 +0200)
At least FireFox doesn't honor the ":hover" pseudo-class if the selector
doesn't contain a tag name.

share/style.css

index ad835779fc60da7bbeda47ada35797f2fa3db02e..3f2cf592852fd1b9141267495c8ba8ef6a8d27cb 100644 (file)
@@ -168,6 +168,16 @@ a:hover
        clear: both;
 }
 
+div.graph-img div.graph-buttons
+{
+       display: none;
+}
+
+div.graph-img:hover div.graph-buttons
+{
+       display: block;
+}
+
 .graph-img .graph-buttons.navigation
 {
        position: absolute;
@@ -193,7 +203,7 @@ a:hover
        cursor: pointer;
 }
 
-.graph-buttons .graph-button:hover
+.graph-buttons div.graph-button:hover
 {
        border: 1px solid black;
        background-color: white;