diff options
author | Stephan Richter <stephan.richter@gmail.com> | 2019-01-24 08:09:07 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2019-06-10 17:15:32 -0400 |
commit | 47d6f8a064ee7da6c2a2dd288c197b58b942a75e (patch) | |
tree | f70e0899c91856c91fee9b940203258c3c81ae3d | |
parent | 0f5c9347aa8c72d853f49761d5580a770c4fd39f (diff) | |
download | python-coveragepy-git-47d6f8a064ee7da6c2a2dd288c197b58b942a75e.tar.gz |
Fix styling and tests. (The tests are slightly insane with no obvious way to update the expected output.)
-rw-r--r-- | coverage/htmlfiles/pyfile.html | 2 | ||||
-rw-r--r-- | coverage/htmlfiles/style.css | 10 | ||||
-rw-r--r-- | tests/gold/html/styled/style.css | 43 |
3 files changed, 47 insertions, 8 deletions
diff --git a/coverage/htmlfiles/pyfile.html b/coverage/htmlfiles/pyfile.html index 025ae797..460c12b5 100644 --- a/coverage/htmlfiles/pyfile.html +++ b/coverage/htmlfiles/pyfile.html @@ -104,7 +104,7 @@ </p>{#-#} {% endfor %} </td> - {% endif -%} + {% endif %} </tr> </table> </div> diff --git a/coverage/htmlfiles/style.css b/coverage/htmlfiles/style.css index c663ed33..27f0e47a 100644 --- a/coverage/htmlfiles/style.css +++ b/coverage/htmlfiles/style.css @@ -297,6 +297,7 @@ td.text { color: #000080; } +/* Line contexts */ td.contexts p { margin: 0; padding: 0 .5em; @@ -305,15 +306,12 @@ td.contexts p { white-space: nowrap; position: relative; } - td.contexts p:hover { background: #eee; } - td.contexts p span.context-list { display: none; } - td.contexts p:hover span.context-list { display: block; min-width: 30em; @@ -332,11 +330,9 @@ td.contexts p:hover span.context-list { border-radius: .2em; box-shadow: #cccccc .2em .2em .2em; } - span.context-list span.context-line { - display: block; -} - + display: block; + } td.contexts p span.context-button { display: inline-block; cursor: pointer; diff --git a/tests/gold/html/styled/style.css b/tests/gold/html/styled/style.css index 41bcf2be..27f0e47a 100644 --- a/tests/gold/html/styled/style.css +++ b/tests/gold/html/styled/style.css @@ -297,6 +297,49 @@ td.text { color: #000080; } +/* Line contexts */ +td.contexts p { + margin: 0; + padding: 0 .5em; + color: #999999; + font-family: verdana, sans-serif; + white-space: nowrap; + position: relative; + } +td.contexts p:hover { + background: #eee; + } +td.contexts p span.context-list { + display: none; + } +td.contexts p:hover span.context-list { + display: block; + min-width: 30em; + //max-width: 50%; + white-space: normal; + float: right; + position: absolute; + top: 1.75em; + right: 1em; + height: auto; + color: #333; + background: #ffffcc; + border: 1px solid #888; + padding: .25em .5em; + z-index: 999; + border-radius: .2em; + box-shadow: #cccccc .2em .2em .2em; + } +span.context-list span.context-line { + display: block; + } +td.contexts p span.context-button { + display: inline-block; + cursor: pointer; + font-size: .8333em; /* 10/12 */ + line-height: 1em; + } + /* index styles */ #index td, #index th { text-align: right; |