From b77b6595f47724ec9913aac25c4b0a24c6222760 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 53273f4..eddfdf6 100644 --- a/scss/styles.scss +++ b/scss/styles.scss @@ -356,9 +356,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 9429724..7a90c91 100644 --- a/styles.css +++ b/styles.css @@ -387,8 +387,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; }