From a7e229967f83cac6011ae6997cff18cb58f0e118 Mon Sep 17 00:00:00 2001 From: Christian Boos Date: Mon, 13 Apr 2020 22:22:12 +0200 Subject: [PATCH 1/2] Lighten up missed branch background color. The syntax highlighting can sometimes misrepresent code as comment, and when that's the case, the light gray can't be read against a dark tan background. --- assets/stylesheets/screen.css.sass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/stylesheets/screen.css.sass b/assets/stylesheets/screen.css.sass index 4023b21..a7dc097 100644 --- a/assets/stylesheets/screen.css.sass +++ b/assets/stylesheets/screen.css.sass @@ -237,6 +237,6 @@ thead background-color: #FBFfCf .missed-branch &:nth-child(odd) - background-color: #cc8e8e + background-color: #ffddbb &:nth-child(even) - background-color: #cc6e6e + background-color: #ffccaa From 98cfaa7860efc58fea9b53e56bc0dc21468834b0 Mon Sep 17 00:00:00 2001 From: Christian Boos Date: Mon, 13 Apr 2020 22:23:39 +0200 Subject: [PATCH 2/2] Restore even/odd nuance for line status highlighting --- views/source_file.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/source_file.erb b/views/source_file.erb index 92d7958..aee7927 100644 --- a/views/source_file.erb +++ b/views/source_file.erb @@ -32,8 +32,8 @@
     
    <% source_file.lines.each do |line| %> -
    -
  1. +
    +
  2. <% if line.covered? %><%= line.coverage %><% end %> <% if line.skipped? %>skipped<% end %>