From 1ad33c02d7aeacae601c43647559915492a336b7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michaela=20Br=C3=BCckner?= <brueckner@data-quest.de>
Date: Fri, 12 Aug 2022 11:23:50 +0200
Subject: [PATCH] fix for #1365

---
 app/views/oer/market/details.php           |  4 ++--
 app/views/oer/mymaterial/edit.php          |  4 ++--
 resources/assets/stylesheets/scss/oer.scss | 18 +++++++++++++++++-
 3 files changed, 21 insertions(+), 5 deletions(-)

diff --git a/app/views/oer/market/details.php b/app/views/oer/market/details.php
index 02c53fc42aa..7d54dc6cc9b 100644
--- a/app/views/oer/market/details.php
+++ b/app/views/oer/market/details.php
@@ -98,8 +98,8 @@
 
         <? if ($material['difficulty_start'] != 1 || $material['difficulty_end'] != 12) : ?>
             <h2><?= _('Niveau') ?></h2>
-            <div>
-                <div style="display: flex; justify-content: space-between; font-size: 0.8em; color: grey;">
+            <div class="level_filter">
+                <div class="level_labels">
                     <div><?= _('Leicht') ?></div>
                     <div><?= _('Schwer') ?></div>
                 </div>
diff --git a/app/views/oer/mymaterial/edit.php b/app/views/oer/mymaterial/edit.php
index dc6cc145d83..da8b2712a85 100644
--- a/app/views/oer/mymaterial/edit.php
+++ b/app/views/oer/mymaterial/edit.php
@@ -213,7 +213,7 @@
                 </a>
             </div>
 
-            <div style="margin-top: 13px; max-width: 682px;">
+            <div class="level_filter" style="margin-top: 13px; max-width: 682px;">
                 <?= _('Niveau') ?>
 
                 <input type="hidden" id="difficulty_start" name="data[difficulty_start]"
@@ -221,7 +221,7 @@
                 <input type="hidden" id="difficulty_end" name="data[difficulty_end]"
                        value="<?= htmlReady($material['difficulty_end']) ?>">
 
-                <div style="display: flex; justify-content: space-between; font-size: 0.8em; color: grey;">
+                <div class="level_labels">
                     <div><?= _('Leicht') ?></div>
                     <div><?= _('Schwer') ?></div>
                 </div>
diff --git a/resources/assets/stylesheets/scss/oer.scss b/resources/assets/stylesheets/scss/oer.scss
index 6af5b26b1b1..2b16762a037 100644
--- a/resources/assets/stylesheets/scss/oer.scss
+++ b/resources/assets/stylesheets/scss/oer.scss
@@ -164,6 +164,14 @@ ul.reviews, ol.reviews {
         margin-top: 10px;
     }
 
+    .level_labels {
+        display: flex;
+        justify-content: space-between;
+        font-size: 0.8em;
+        color: $black;
+        margin-top: 20px;
+    }
+
 }
 
 .oercampus_editmaterial, .oer_material_overview {
@@ -338,7 +346,7 @@ ul.reviews, ol.reviews {
                 display: flex;
                 justify-content: space-between;
                 font-size: 0.8em;
-                color: grey;
+                color: $black;
                 margin-top: 20px;
             }
             .level_numbers {
@@ -438,6 +446,14 @@ ul.reviews, ol.reviews {
     > div {
         padding-left: 20px;
     }
+
+    .level_labels {
+        display: flex;
+        justify-content: space-between;
+        font-size: 0.8em;
+        color: $black;
+        margin-top: 20px;
+    }
 }
 
 @keyframes oer-filter-panel-appears {
-- 
GitLab