diff --git a/resources/day8/re_frame/trace/main.css b/resources/day8/re_frame/trace/main.css index 1824e41..0bbd9d8 100644 --- a/resources/day8/re_frame/trace/main.css +++ b/resources/day8/re_frame/trace/main.css @@ -192,8 +192,7 @@ #--re-frame-trace-- tr th:first-child { text-align: right; } -#--re-frame-trace-- tr.trace--trace-even, -#--re-frame-trace-- tr.trace--trace-even + .trace--details { +#--re-frame-trace-- tr:nth-child(even) { background: #fafafa; } #--re-frame-trace-- tr.trace--sub-create .trace--op { diff --git a/resources/day8/re_frame/trace/main.less b/resources/day8/re_frame/trace/main.less index 2a5c593..571e513 100644 --- a/resources/day8/re_frame/trace/main.less +++ b/resources/day8/re_frame/trace/main.less @@ -258,8 +258,7 @@ &.trace--trace { } - &.trace--trace-even, - &.trace--trace-even + .trace--details { + &:nth-child(even) { background: @background-gray-hint; } diff --git a/src/day8/re_frame/trace.cljs b/src/day8/re_frame/trace.cljs index 3c7efa4..cb9ad0f 100644 --- a/src/day8/re_frame/trace.cljs +++ b/src/day8/re_frame/trace.cljs @@ -183,10 +183,7 @@ :event "trace--event" :render "trace--render" :re-frame.router/fsm-trigger "trace--fsm-trigger" - nil) - (if (even? index) - "trace--trace-even" - "trace--trace-odd")])} + nil)])} [:td.trace--toggle [:button (if show-row? "▼" "▶")]]