From 16e46467e4039b589a4be555404b1b149478941a Mon Sep 17 00:00:00 2001 From: Gareth Barnard <1058419+gjb2048@users.noreply.github.com> Date: Thu, 29 Aug 2024 09:12:00 +0100 Subject: [PATCH] Fix opacity for student when activity is restricted #10. --- scss/styles.scss | 8 +++++--- styles.css | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/scss/styles.scss b/scss/styles.scss index 2940aa0..8e9a330 100644 --- a/scss/styles.scss +++ b/scss/styles.scss @@ -353,9 +353,11 @@ width: 90px; } -.format-vsf .activity .conditionalhidden.vsfactivity .vsf-icon img.modpic.original, -.format-vsf .activity .conditionalhidden.vsfactivity .vsf-icon img.modpic.custom { - opacity: 0.5; +.format-vsf .activity .vsfavmod.vsfactivity .vsf-icon img.modpic { + &.original, + &.custom { + opacity: 0.5; + } } .format-vsf .vsf-activity-wrapper { diff --git a/styles.css b/styles.css index 44daa77..7deddc8 100644 --- a/styles.css +++ b/styles.css @@ -384,8 +384,8 @@ width: 90px; } -.format-vsf .activity .conditionalhidden.vsfactivity .vsf-icon img.modpic.original, -.format-vsf .activity .conditionalhidden.vsfactivity .vsf-icon img.modpic.custom { +.format-vsf .activity .vsfavmod.vsfactivity .vsf-icon img.modpic.original, +.format-vsf .activity .vsfavmod.vsfactivity .vsf-icon img.modpic.custom { opacity: 0.5; }