diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2016-02-03 06:50:09 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2016-02-03 06:50:09 -0500 |
commit | 41bff023af65451c4479e7a661fb571c028fd516 (patch) | |
tree | d2aa8152d6f15aa496242d4a4182caa742757970 /coverage/htmlfiles/style.css | |
parent | 51b6d237bbaf7fe19c073d80277b6b34187cca3e (diff) | |
download | python-coveragepy-git-41bff023af65451c4479e7a661fb571c028fd516.tar.gz |
A way to show much longer explanations about lines in the HTML report.
Diffstat (limited to 'coverage/htmlfiles/style.css')
-rw-r--r-- | coverage/htmlfiles/style.css | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/coverage/htmlfiles/style.css b/coverage/htmlfiles/style.css index 4f43b591..ea261e93 100644 --- a/coverage/htmlfiles/style.css +++ b/coverage/htmlfiles/style.css @@ -160,7 +160,7 @@ h2.stats { .help_panel { position: absolute; - background: #ffc; + background: #ffffcc; padding: .5em; border: 1px solid #883; display: none; @@ -227,6 +227,7 @@ td.text { padding: 0 0 0 .5em; border-left: 2px solid #ffffff; white-space: pre; + position: relative; } .text p.mis { @@ -259,6 +260,25 @@ td.text { .text p.hide_par span.annotate { display: none; } +.text span.annotate.long { + display: none; + } +.text p:hover span.annotate.long { + display: block; + max-width: 50%; + white-space: normal; + float: right; + position: absolute; + top: 1.5em; + right: 0; + width: 30em; + height: auto; + background: #ffffcc; + border: 1px solid #888; + padding: .25em .5em; + z-index: 999; + + } /* Syntax coloring */ .text .com { |