summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-01-30 02:35:34 +0100
committeremkael <emkael@tlen.pl>2018-01-30 02:35:34 +0100
commit55ab3dc2fb6b59d9d07c5166f58b313321741490 (patch)
treea9131b5f4f75d9d6fb7096bd2ecae7def9892cbe
parent98f99725d698fe72090087442a72a5bd17c29fa8 (diff)
Adding CSS that decreases tables opacity by default
-rw-r--r--css/tdd.css7
-rw-r--r--tdd-bootstrap.php3
2 files changed, 10 insertions, 0 deletions
diff --git a/css/tdd.css b/css/tdd.css
new file mode 100644
index 0000000..94ee73b
--- /dev/null
+++ b/css/tdd.css
@@ -0,0 +1,7 @@
+body > table > tbody > tr {
+ opacity: 0.2
+}
+body > table > tbody > tr.hovered,
+body > table > tbody > tr.specified {
+ opacity: 1.0;
+}
diff --git a/tdd-bootstrap.php b/tdd-bootstrap.php
index 2ed216b..342ecd0 100644
--- a/tdd-bootstrap.php
+++ b/tdd-bootstrap.php
@@ -65,6 +65,9 @@ class Protocol {
$dom->find('/html/body/table/tr', 0)->outertext = '';
}
+ $head = $dom->find('/html/head', 0);
+ $head->innertext .= '<link rel="stylesheet" type="text/css" href="css/tdd.css" />';
+
// replacing meta http-equiv refresh with a javascript refresh to preserve hash in the result page
$meta = $head->find('meta');
foreach ($meta as $metaTag) {