diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2023-03-22 13:12:16 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2023-03-22 13:58:58 -0400 |
commit | 63f3e495b184ebd9aa4c9d757fb78ed148580d29 (patch) | |
tree | af4c68f94d50fafe94d56fce46cf92739cd8bd3f /coverage/htmlfiles | |
parent | a5dc01131b1a38bb7c7908ad968488d87e3664ed (diff) | |
download | python-coveragepy-git-63f3e495b184ebd9aa4c9d757fb78ed148580d29.tar.gz |
style: clean up #1587
Diffstat (limited to 'coverage/htmlfiles')
-rw-r--r-- | coverage/htmlfiles/coverage_html.js | 3 | ||||
-rw-r--r-- | coverage/htmlfiles/pyfile.html | 6 | ||||
-rw-r--r-- | coverage/htmlfiles/style.css | 2 | ||||
-rw-r--r-- | coverage/htmlfiles/style.scss | 4 |
4 files changed, 3 insertions, 12 deletions
diff --git a/coverage/htmlfiles/coverage_html.js b/coverage/htmlfiles/coverage_html.js index 8b7fb96f..1cd2b5d4 100644 --- a/coverage/htmlfiles/coverage_html.js +++ b/coverage/htmlfiles/coverage_html.js @@ -604,8 +604,7 @@ coverage.showContexts = function (e) { span = e.target.nextElementSibling.nextElementSibling; span_text = span.textContent; - if (/^[0-9,]+$/.test(span_text)) - { + if (/^[0-9,]+$/.test(span_text)) { span.textContent = ""; span_text.split(",").forEach(function(s) { ctx = contexts[s]; diff --git a/coverage/htmlfiles/pyfile.html b/coverage/htmlfiles/pyfile.html index 1921e1c2..bc8fa697 100644 --- a/coverage/htmlfiles/pyfile.html +++ b/coverage/htmlfiles/pyfile.html @@ -14,7 +14,7 @@ {% if contexts_json %} <script type="text/javascript"> - contexts = {{ contexts_json }} + contexts = {{ contexts_json }} </script> {% endif %} @@ -125,9 +125,7 @@ </span> {# Things that should appear below the line. #} {% if line.context_str %} - <span class="ctxs"> - {{ line.context_str }} - </span> + <span class="ctxs">{{ line.context_str }}</span> {% endif %} </p> {% endjoined %} diff --git a/coverage/htmlfiles/style.css b/coverage/htmlfiles/style.css index ace48c2c..11b24c4e 100644 --- a/coverage/htmlfiles/style.css +++ b/coverage/htmlfiles/style.css @@ -262,8 +262,6 @@ kbd { border: 1px solid black; border-color: #888 #333 #333 #888; padding: .1em @media (prefers-color-scheme: dark) { #source p .ctxs { background: #056; } } -#source p .ctxs span { display: block; text-align: right; } - #index { font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.875em; } #index table.index { margin-left: -.5em; } diff --git a/coverage/htmlfiles/style.scss b/coverage/htmlfiles/style.scss index fe388487..b1465154 100644 --- a/coverage/htmlfiles/style.scss +++ b/coverage/htmlfiles/style.scss @@ -623,10 +623,6 @@ $border-indicator-width: .2em; border-radius: .25em; margin-right: 1.75em; text-align: right; - span { - display: block; - text-align: right; - } } } } |