From f7f3ac695f29966c45ff71802b1663f8ba44264a Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Thu, 24 Oct 2019 19:16:41 +1300 Subject: [PATCH] better name for css class progress-fade --- app/assets/stylesheets/overrides.scss | 6 +++--- app/views/plantings/_timeline.html.haml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/assets/stylesheets/overrides.scss b/app/assets/stylesheets/overrides.scss index fdeb45f43..087dcd4d5 100755 --- a/app/assets/stylesheets/overrides.scss +++ b/app/assets/stylesheets/overrides.scss @@ -344,13 +344,13 @@ ul.thumbnail-buttons { } } -.tint { +.progress-fade { cursor: pointer; float: left; position: relative; } -.tint::before { +.progress-fade::before { background: $beige; bottom: 0; content: ''; @@ -363,7 +363,7 @@ ul.thumbnail-buttons { transition: background .3s linear; } -.tint:hover::before { +.progress-fade:hover::before { background: none; } diff --git a/app/views/plantings/_timeline.html.haml b/app/views/plantings/_timeline.html.haml index 129d3a719..2ea0bdabf 100644 --- a/app/views/plantings/_timeline.html.haml +++ b/app/views/plantings/_timeline.html.haml @@ -15,7 +15,7 @@ .progress-bar{"aria-valuemax" => "100", "aria-valuemin" => "0", "aria-valuenow" => @planting.percentage_grown, role: "progressbar", style: "width: #{@planting.percentage_grown}%"} %ul.list-unstyled.d-flex.justify-content-between - (@planting.expected_lifespan / 7).times do |week_number| - %li{class: @planting.planted_at + week_number.weeks > Time.zone.today ? 'text-muted tint' : '', 'data-toggle': "tooltip", 'data-placement': "top", title: I18n.l(@planting.planted_at + week_number.weeks)} + %li{class: @planting.planted_at + week_number.weeks > Time.zone.today ? 'text-muted progress-fade' : '', 'data-toggle': "tooltip", 'data-placement': "top", title: I18n.l(@planting.planted_at + week_number.weeks)} = render 'timeline_icon', planting: @planting, week_number: week_number, date_this_week: @planting.planted_at + week_number.weeks (One emojii = 1 week)