From bc741469440cd2deacd56997b3e4f44fc2075679 Mon Sep 17 00:00:00 2001
From: Kathrin Osswald <kathrin.osswald@uni-ulm.de>
Date: Wed, 5 Aug 2020 08:32:35 +0200
Subject: [PATCH] Added rule to show description border for all users for
 restricted activities.

---
 CHANGES.md     |  1 +
 scss/post.scss | 13 +++++++++++++
 2 files changed, 14 insertions(+)

diff --git a/CHANGES.md b/CHANGES.md
index 90695b4..2f53531 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -6,6 +6,7 @@ Changes
 
 ### Unreleased
 
+* 2020-08-07 - Added rule to show description border for all users for restricted activities.
 * 2020-08-07 - Added check for empty string to regular expression for time controlled info banner settings.
 * 2020-08-05 - Added settings to be able to show a banner with information on selected pages.
                PLEASE NOTE: For all scenarios to pass, the Moodle version 3.8.4+ (Build: 2019111804) is needed.
diff --git a/scss/post.scss b/scss/post.scss
index 46491a2..b8d58f6 100644
--- a/scss/post.scss
+++ b/scss/post.scss
@@ -476,6 +476,19 @@ body.loginbackgroundimage #page {
             padding-left: 10px;
             font-size: .9rem;
         }
+        /* Add border to description text for restricted activities and show it also to students.
+           This is needed because the classes for teachers and students differ. */
+        .section .contentwithoutlink {
+            border-left: 2px solid $gray-light;
+            padding-left: 10px;
+            font-size: .9rem;
+            display: block;
+            margin-left: 30px;
+            margin-top: .5em;
+            p {
+                margin: .5em 0;
+            }
+        }
         /* Place meta information in a new line. */
         .resourcelinkdetails {
             display: block;
-- 
GitLab