summaryrefslogtreecommitdiff
path: root/tests/gold/html/styled
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2019-07-04 17:15:38 -0400
committerNed Batchelder <ned@nedbatchelder.com>2019-07-06 10:04:31 -0400
commitcfdcacea473dede9fb779256c812ff6a098a0714 (patch)
tree89a05ea92b2048a6b0653b8f4aae8fb374e4a4ec /tests/gold/html/styled
parent25aff80d444a6b1fa87173ffd8026f69be7ae0d0 (diff)
downloadpython-coveragepy-git-cfdcacea473dede9fb779256c812ff6a098a0714.tar.gz
HTML: Mark things to show instead of to hide.
Also made some other changes along the way: * Scroll bar markers change as the selected categories change. * We don't use css class 'stm' for anything, get rid of it. * Better sass use all around.
Diffstat (limited to 'tests/gold/html/styled')
-rw-r--r--tests/gold/html/styled/a_py.html18
-rw-r--r--tests/gold/html/styled/style.css91
2 files changed, 48 insertions, 61 deletions
diff --git a/tests/gold/html/styled/a_py.html b/tests/gold/html/styled/a_py.html
index dd569b1b..f6f183b3 100644
--- a/tests/gold/html/styled/a_py.html
+++ b/tests/gold/html/styled/a_py.html
@@ -23,9 +23,9 @@
<img id="keyboard_icon" src="keybd_closed.png" alt="Show keyboard shortcuts" />
<h2 class="stats">
3 statements &nbsp;
- <span class="run hide_run shortkey_r button_toggle_run">2 run</span>
- <span class="mis shortkey_m button_toggle_mis">1 missing</span>
- <span class="exc shortkey_x button_toggle_exc">0 excluded</span>
+ <span class="run shortkey_r button_toggle_run">2 run</span>
+ <span class="mis show_mis shortkey_m button_toggle_mis">1 missing</span>
+ <span class="exc show_exc shortkey_x button_toggle_exc">0 excluded</span>
</h2>
</div>
</div>
@@ -55,18 +55,18 @@
<table>
<tr>
<td class="linenos">
-<p id="n1" class="stm run hide_run"><a href="#n1">1</a></p>
+<p id="n1" class="run"><a href="#n1">1</a></p>
<p id="n2" class="pln"><a href="#n2">2</a></p>
-<p id="n3" class="stm run hide_run"><a href="#n3">3</a></p>
+<p id="n3" class="run"><a href="#n3">3</a></p>
<p id="n4" class="pln"><a href="#n4">4</a></p>
-<p id="n5" class="stm mis"><a href="#n5">5</a></p>
+<p id="n5" class="mis show_mis"><a href="#n5">5</a></p>
</td>
<td class="text">
-<p id="t1" class="stm run hide_run"><span class="key">if</span> <span class="num">1</span> <span class="op">&lt;</span> <span class="num">2</span><span class="op">:</span><span class="strut">&nbsp;</span></p>
+<p id="t1" class="run"><span class="key">if</span> <span class="num">1</span> <span class="op">&lt;</span> <span class="num">2</span><span class="op">:</span><span class="strut">&nbsp;</span></p>
<p id="t2" class="pln"> <span class="com"># Needed a &lt; to look at HTML entities.</span><span class="strut">&nbsp;</span></p>
-<p id="t3" class="stm run hide_run"> <span class="nam">a</span> <span class="op">=</span> <span class="num">3</span><span class="strut">&nbsp;</span></p>
+<p id="t3" class="run"> <span class="nam">a</span> <span class="op">=</span> <span class="num">3</span><span class="strut">&nbsp;</span></p>
<p id="t4" class="pln"><span class="key">else</span><span class="op">:</span><span class="strut">&nbsp;</span></p>
-<p id="t5" class="stm mis"> <span class="nam">a</span> <span class="op">=</span> <span class="num">4</span><span class="strut">&nbsp;</span></p>
+<p id="t5" class="mis show_mis"> <span class="nam">a</span> <span class="op">=</span> <span class="num">4</span><span class="strut">&nbsp;</span></p>
</td>
</tr>
</table>
diff --git a/tests/gold/html/styled/style.css b/tests/gold/html/styled/style.css
index 83966952..e6e6dc42 100644
--- a/tests/gold/html/styled/style.css
+++ b/tests/gold/html/styled/style.css
@@ -43,27 +43,26 @@ h1 { font-size: 1.25em; display: inline-block; }
h2.stats { margin-top: .5em; font-size: 1em; }
-.stats span { border: 1px solid; padding: .1em .25em; margin: 0 .1em; cursor: pointer; border-color: #999 #ccc #ccc #999; }
-.stats span.hide_run, .stats span.hide_exc, .stats span.hide_mis, .stats span.hide_par, .stats span.par.hide_run.hide_par { border-color: #ccc #999 #999 #ccc; }
-.stats span.par.hide_run { border-color: #999 #ccc #ccc #999; }
-.stats span.run { background: #ddffdd; }
-.stats span.exc { background: #eeeeee; }
-.stats span.mis { background: #ffdddd; }
-.stats span.hide_run { background: #eeffee; }
-.stats span.hide_exc { background: #f5f5f5; }
-.stats span.hide_mis { background: #ffeeee; }
-.stats span.par { background: #ffffaa; }
-.stats span.hide_par { background: #ffffcc; }
+.stats span { border: 1px solid; border-radius: .1em; padding: .1em .5em; margin: 0 .1em; cursor: pointer; border-color: #ccc #999 #999 #ccc; }
+.stats span.run { background: #eeffee; }
+.stats span.run.show_run { border-color: #999 #ccc #ccc #999; background: #ddffdd; }
+.stats span.mis { background: #ffeeee; }
+.stats span.mis.show_mis { border-color: #999 #ccc #ccc #999; background: #ffdddd; }
+.stats span.exc { background: #f7f7f7; }
+.stats span.exc.show_exc { border-color: #999 #ccc #ccc #999; background: #eeeeee; }
+.stats span.par { background: #ffffd5; }
+.stats span.par.show_par { border-color: #999 #ccc #ccc #999; background: #ffffaa; }
-#keyboard_icon { float: right; margin: 5px; cursor: pointer; }
-
-.help_panel { position: absolute; background: #ffffcc; padding: .5em; border: 1px solid #883; display: none; }
+.text p.show_par span.annotate.long, td.contexts p span.context-list, .help_panel { display: none; position: absolute; z-index: 999; background: #ffffcc; border: 1px solid #888; border-radius: .2em; box-shadow: #cccccc .2em .2em .2em; color: #333; padding: .25em .5em; }
-.indexfile .help_panel { width: 20em; height: 4em; }
+.text p.show_par span.annotate.long, td.contexts p span.context-list { white-space: normal; float: right; top: 1.75em; right: 1em; height: auto; }
-.pyfile .help_panel { width: 16em; height: 8em; }
+#keyboard_icon { float: right; margin: 5px; cursor: pointer; }
+.help_panel { padding: .5em; border: 1px solid #883; }
.help_panel .legend { font-style: italic; margin-bottom: 1em; }
+.indexfile .help_panel { width: 20em; height: 4em; }
+.pyfile .help_panel { width: 16em; height: 8em; }
#panel_icon { float: right; cursor: pointer; }
@@ -79,59 +78,47 @@ td.text { width: 100%; }
.text p { margin: 0; padding: 0 0 0 .5em; border-left: 2px solid #ffffff; white-space: pre; position: relative; }
.text p:hover { background: #f2f2f2; }
-.text p.mis { background: #ffdddd; border-left: 2px solid #ff0000; }
-.text p.mis:hover { background: #f2d2d2; }
-.text p.run, .text p.run.hide_par { background: #ddffdd; border-left: 2px solid #00ff00; }
-.text p.run:hover, .text p.run.hide_par:hover { background: #d2f2d2; }
-.text p.exc { background: #eeeeee; border-left: 2px solid #808080; }
-.text p.exc:hover { background: #e2e2e2; }
-.text p.par, .text p.par.hide_run { background: #ffffaa; border-left: 2px solid #eeee99; }
-.text p.par:hover, .text p.par.hide_run:hover { background: #f2f2a2; }
-.text p.hide_run, .text p.hide_exc, .text p.hide_mis, .text p.hide_par, .text p.hide_run.hide_par { background: inherit; }
-.text p.hide_run:hover, .text p.hide_exc:hover, .text p.hide_mis:hover, .text p.hide_par:hover, .text p.hide_run.hide_par:hover { background: #f2f2f2; }
-
-.text span.annotate { font-family: georgia; color: #666; float: right; padding-right: .5em; }
-.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.75em; right: 1em; width: 30em; 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; }
-
+.text p.run { border-left: 2px solid #00ff00; }
+.text p.run.show_run { background: #ddffdd; }
+.text p.run.show_run:hover { background: #d2f2d2; }
+.text p.mis { border-left: 2px solid #ff0000; }
+.text p.mis.show_mis { background: #ffdddd; }
+.text p.mis.show_mis:hover { background: #f2d2d2; }
+.text p.exc { border-left: 2px solid #808080; }
+.text p.exc.show_exc { background: #eeeeee; }
+.text p.exc.show_exc:hover { background: #e2e2e2; }
+.text p.par { border-left: 2px solid #eeee99; }
+.text p.par.show_par { background: #ffffaa; }
+.text p.par.show_par:hover { background: #f2f2a2; }
+
+.text span.annotate { font-family: georgia; color: #666; float: right; padding-right: .5em; display: none; }
+.text p.show_par span.annotate { display: inline; }
+.text p.show_par span.annotate.long { max-width: 50%; width: 30em; }
+.text p.show_par:hover span.annotate.long { display: block; }
.text .com { color: green; font-style: italic; line-height: 1px; }
.text .key { font-weight: bold; line-height: 1px; }
.text .str { color: #000080; }
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; 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; }
+td.contexts p span.context-list { min-width: 30em; }
+td.contexts p span.context-list span.context-line { display: block; }
+td.contexts p:hover span.context-list { display: block; }
td.contexts p span.context-button { display: inline-block; cursor: pointer; font-size: .8333em; line-height: 1em; }
-span.context-list span.context-line { display: block; }
-
#index td, #index th { text-align: right; width: 5em; padding: .25em .5em; border-bottom: 1px solid #eee; }
-
-#index th { font-style: italic; color: #333; border-bottom: 1px solid #ccc; cursor: pointer; }
-
-#index th:hover { background: #eee; border-bottom: 1px solid #999; }
-
#index td.left, #index th.left { padding-left: 0; }
-
#index td.right, #index th.right { padding-right: 0; }
-
+#index td.name, #index th.name { text-align: left; width: auto; }
+#index th { font-style: italic; color: #333; border-bottom: 1px solid #ccc; cursor: pointer; }
+#index th:hover { background: #eee; border-bottom: 1px solid #999; }
#index th.headerSortDown, #index th.headerSortUp { border-bottom: 1px solid #000; white-space: nowrap; background: #eee; }
-
#index th.headerSortDown:after { content: " ↓"; }
-
#index th.headerSortUp:after { content: " ↑"; }
-
-#index td.name, #index th.name { text-align: left; width: auto; }
-
#index td.name a { text-decoration: none; color: #000; }
-
#index tr.total td, #index tr.total_dynamic td { font-weight: bold; border-top: 1px solid #ccc; border-bottom: none; }
-
#index tr.file:hover { background: #eeeeee; }
-
#index tr.file:hover td.name { text-decoration: underline; color: #000; }
#scroll_marker { position: fixed; right: 0; top: 0; width: 16px; height: 100%; background: white; border-left: 1px solid #eee; will-change: transform; }
-#scroll_marker .marker { background: #eedddd; position: absolute; min-height: 3px; width: 100%; }
+#scroll_marker .marker { background: #ddd; position: absolute; min-height: 3px; width: 100%; }