Skip to content

Commit 2c6c421

Browse files
committed
More HTML tweaks
- Let the left and right cells have padding so the hover bar looks good. - Adjust the table left margin so the contents still line up with the header. - Fix the up/down arrows to be correct for the sorting order they indicate.
1 parent 87a4e67 commit 2c6c421

File tree

3 files changed

+11
-16
lines changed

3 files changed

+11
-16
lines changed

coverage/htmlfiles/style.css

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,19 +146,18 @@ h2.stats { margin-top: .5em; font-size: 1em; }
146146
#source p .ctxs span { display: block; text-align: right; }
147147

148148
#index { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 0.875em; }
149+
#index table.index { margin-left: -.5em; }
149150
#index td, #index th { text-align: right; width: 5em; padding: .25em .5em; border-bottom: 1px solid #eee; }
150151
@media (prefers-color-scheme: dark) { #index td, #index th { border-color: #333; } }
151-
#index td.left, #index th.left { padding-left: 0; }
152-
#index td.right, #index th.right { padding-right: 0; }
153152
#index td.name, #index th.name { text-align: left; width: auto; }
154153
#index th { font-style: italic; color: #333; cursor: pointer; }
155154
@media (prefers-color-scheme: dark) { #index th { color: #ddd; } }
156155
#index th:hover { background: #eee; }
157156
@media (prefers-color-scheme: dark) { #index th:hover { background: #333; } }
158157
#index th.headerSortDown, #index th.headerSortUp { white-space: nowrap; background: #eee; }
159158
@media (prefers-color-scheme: dark) { #index th.headerSortDown, #index th.headerSortUp { background: #333; } }
160-
#index th.headerSortDown:after { content: " "; }
161-
#index th.headerSortUp:after { content: " "; }
159+
#index th.headerSortDown:after { content: " "; }
160+
#index th.headerSortUp:after { content: " "; }
162161
#index td.name a { text-decoration: none; color: inherit; }
163162
#index tr.total td, #index tr.total_dynamic td { font-weight: bold; border-top: 1px solid #ccc; border-bottom: none; }
164163
#index tr.file:hover { background: #eee; }

coverage/htmlfiles/style.scss

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -576,18 +576,15 @@ $context-panel-color: #aaeeff;
576576
font-family: $font-normal;
577577
font-size: 0.875em;
578578

579+
table.index {
580+
margin-left: -.5em;
581+
}
579582
td, th {
580583
text-align: right;
581584
width: 5em;
582585
padding: .25em .5em;
583586
border-bottom: 1px solid $light-gray2;
584587
@include border-color-dark($dark-gray2);
585-
&.left {
586-
padding-left: 0;
587-
}
588-
&.right {
589-
padding-right: 0;
590-
}
591588
&.name {
592589
text-align: left;
593590
width: auto;
@@ -608,10 +605,10 @@ $context-panel-color: #aaeeff;
608605
@include background-dark($dark-gray2);
609606
}
610607
&.headerSortDown:after {
611-
content: " ";
608+
content: " ";
612609
}
613610
&.headerSortUp:after {
614-
content: " ";
611+
content: " ";
615612
}
616613
}
617614
td.name a {

tests/gold/html/styled/style.css

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,19 +146,18 @@ h2.stats { margin-top: .5em; font-size: 1em; }
146146
#source p .ctxs span { display: block; text-align: right; }
147147

148148
#index { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 0.875em; }
149+
#index table.index { margin-left: -.5em; }
149150
#index td, #index th { text-align: right; width: 5em; padding: .25em .5em; border-bottom: 1px solid #eee; }
150151
@media (prefers-color-scheme: dark) { #index td, #index th { border-color: #333; } }
151-
#index td.left, #index th.left { padding-left: 0; }
152-
#index td.right, #index th.right { padding-right: 0; }
153152
#index td.name, #index th.name { text-align: left; width: auto; }
154153
#index th { font-style: italic; color: #333; cursor: pointer; }
155154
@media (prefers-color-scheme: dark) { #index th { color: #ddd; } }
156155
#index th:hover { background: #eee; }
157156
@media (prefers-color-scheme: dark) { #index th:hover { background: #333; } }
158157
#index th.headerSortDown, #index th.headerSortUp { white-space: nowrap; background: #eee; }
159158
@media (prefers-color-scheme: dark) { #index th.headerSortDown, #index th.headerSortUp { background: #333; } }
160-
#index th.headerSortDown:after { content: " "; }
161-
#index th.headerSortUp:after { content: " "; }
159+
#index th.headerSortDown:after { content: " "; }
160+
#index th.headerSortUp:after { content: " "; }
162161
#index td.name a { text-decoration: none; color: inherit; }
163162
#index tr.total td, #index tr.total_dynamic td { font-weight: bold; border-top: 1px solid #ccc; border-bottom: none; }
164163
#index tr.file:hover { background: #eee; }

0 commit comments

Comments
 (0)