From 55e4169b58533d515775d4ca635e00f22296bb9f Mon Sep 17 00:00:00 2001 From: Bart Mesuere Date: Tue, 14 Nov 2023 11:35:49 +0100 Subject: [PATCH 1/2] also blur class progress --- app/assets/stylesheets/components.css.scss | 6 +++--- app/views/activities/_series_activities_table.html.erb | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/assets/stylesheets/components.css.scss b/app/assets/stylesheets/components.css.scss index 2f5413f04f..ccca96120d 100644 --- a/app/assets/stylesheets/components.css.scss +++ b/app/assets/stylesheets/components.css.scss @@ -127,10 +127,10 @@ blockquote { color: var(--d-on-surface-muted); } -.blur { +.blur:not(:hover) { filter: blur(5px); - &:hover { - filter: none; + .progress-chart line { + stroke: var(--d-divider); } } diff --git a/app/views/activities/_series_activities_table.html.erb b/app/views/activities/_series_activities_table.html.erb index d17d3e0d8c..b23b4f4150 100644 --- a/app/views/activities/_series_activities_table.html.erb +++ b/app/views/activities/_series_activities_table.html.erb @@ -69,7 +69,7 @@ <% if @course.blank? || policy(local_assigns[:series]).show_progress? %> - + <% if activity.exercise? %> <% if @course %> <%= render partial: 'application/progress_chart', From a9648b25c385a9108c1d1856e7f0782f23c975c9 Mon Sep 17 00:00:00 2001 From: Bart Mesuere Date: Tue, 14 Nov 2023 11:42:43 +0100 Subject: [PATCH 2/2] also blur progress if hidden for students --- app/views/activities/_series_activities_table.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/activities/_series_activities_table.html.erb b/app/views/activities/_series_activities_table.html.erb index b23b4f4150..e3fdefba89 100644 --- a/app/views/activities/_series_activities_table.html.erb +++ b/app/views/activities/_series_activities_table.html.erb @@ -69,7 +69,7 @@ <% if @course.blank? || policy(local_assigns[:series]).show_progress? %> - + <% if activity.exercise? %> <% if @course %> <%= render partial: 'application/progress_chart',