diff options
| author | Taras Madan <tarasmadan@google.com> | 2024-07-22 12:20:11 +0200 |
|---|---|---|
| committer | Taras Madan <tarasmadan@google.com> | 2024-07-22 10:38:04 +0000 |
| commit | f5da816ce8aae97a54e26442443c21b01eba9519 (patch) | |
| tree | 17c1a2b4e5cce58dfa2c264576335a57f2d65ff1 | |
| parent | f063dfd966f00f90fbae94d179f26cf36fea3f5b (diff) | |
pkg/cover/templates/heatmap.html: interleave colors
| -rw-r--r-- | pkg/cover/templates/heatmap.html | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/pkg/cover/templates/heatmap.html b/pkg/cover/templates/heatmap.html index 4eee5ce81..bea3563c6 100644 --- a/pkg/cover/templates/heatmap.html +++ b/pkg/cover/templates/heatmap.html @@ -74,6 +74,23 @@ .active { display: block; } + .data_row { + width: fit-content; + } + ul > li:nth-of-type(even) .data_row {background: #F4F4F4;} + ul > li:nth-of-type(odd) .data_row {background: #FFF;} + ul > li > ul > li:nth-of-type(even) .data_row {background: #F4F4F4;} + ul > li > ul > li:nth-of-type(odd) .data_row {background: #FFF;} + ul > li > ul > li > ul > li:nth-of-type(even) .data_row {background: #F4F4F4;} + ul > li > ul > li > ul > li:nth-of-type(odd) .data_row {background: #FFF;} + ul > li > ul > li > ul > li > ul > li:nth-of-type(even) .data_row {background: #F4F4F4;} + ul > li > ul > li > ul > li > ul > li:nth-of-type(odd) .data_row {background: #FFF;} + ul > li > ul > li > ul > li > ul > li > ul > li:nth-of-type(even) .data_row {background: #F4F4F4;} + ul > li > ul > li > ul > li > ul > li > ul > li:nth-of-type(odd) .data_row {background: #FFF;} + ul > li > ul > li > ul > li > ul > li > ul > li > ul > li:nth-of-type(even) .data_row {background: #F4F4F4;} + ul > li > ul > li > ul > li > ul > li > ul > li > ul > li:nth-of-type(odd) .data_row {background: #FFF;} + ul > li > ul > li > ul > li > ul > li > ul > li > ul > li > ul > li:nth-of-type(even) .data_row {background: #F4F4F4;} + ul > li > ul > li > ul > li > ul > li > ul > li > ul > li > ul > li:nth-of-type(odd) .data_row {background: #FFF;} {{ end }} {{ define "body" }} @@ -111,7 +128,7 @@ {{define "dir"}} {{range $child := .Items}} <li> - <div> + <div class="data_row"> <div class="first_column" style="display: inline-block"> <div class="tree_depth_{{ $child.Depth }}" style="display: inline-block"> </div> |
