Rename css class to wrtooltiproot and include css in extension.
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Fri, 27 Dec 2019 22:28:35 +0000 (22:28 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Fri, 27 Dec 2019 22:28:35 +0000 (22:28 +0000)
git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/mediawiki_extensions/wrreport/trunk@2897 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wrreport.css
wrreport_body.php

index 8dba04c914adfae8c35351f24d0aadcf6293b5b1..b896deceb8d6b06aa7f3750d0a56431ec7772f94 100644 (file)
@@ -3,3 +3,16 @@
        font-size: smaller;
        font-style:italic;
 }
+.wrtooltiproot {
+    position: relative;
+}
+.wrtooltiproot:hover::after {
+    content: attr(data-wrtooltip);
+    position:absolute;
+    z-index: 1;
+    min-width: 12em;
+    background-color: black;
+    color: white;
+    border-radius: 0.5em;
+    padding: 0.5em;
+}
index 34ac40d38736956bb18528f189659727e4f3bb77..8d02a9b03932f080ea98a937a7edb16c353faf7b 100644 (file)
@@ -832,7 +832,7 @@ class WrReport {
                                        if ($date_last_check->diff($now)->days <= $wgWrReportIntermapsValidDays) {
                                                if (in_array($row->status, ['open', 'closed'])) {
                                                        $msg = wfMessage("wrreport-icon-intermaps-" . $row->status, $row->last_update)->text();
-                                                       $span = $td->appendElement('span', ['class' => 'tooltiproot', 'data-tooltip' => $msg]);
+                                                       $span = $td->appendElement('span', ['class' => 'wrtooltiproot', 'data-wrtooltip' => $msg]);
                                                        $span->appendElement('img', array('src' => '/vorlagen/s_' . $row->status . '.png', 'alt' => $msg));
                                                }
                                        }