From dbc159c896a799190487df0e47fcd1cacbf50044 Mon Sep 17 00:00:00 2001 From: Moritz Strohm <strohm@data-quest.de> Date: Tue, 23 Apr 2024 10:15:09 +0200 Subject: [PATCH] changed coloured box design --- app/views/my_courses/groups.php | 4 ++-- .../assets/stylesheets/scss/my_courses.scss | 20 +++++-------------- 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a/app/views/my_courses/groups.php b/app/views/my_courses/groups.php index 1d16a78aed2..7ca29a0e0ee 100644 --- a/app/views/my_courses/groups.php +++ b/app/views/my_courses/groups.php @@ -25,7 +25,7 @@ <thead> <tr> <th><?= _('Veranstaltung') ?></th> - <th colspan="100%"><?= _('Gruppen/Farbe') ?></th> + <th colspan="100%"><?= _('Gruppe/Farbe') ?></th> </tr> </thead> <? foreach ($groups as $group_id => $group_members): ?> @@ -64,7 +64,7 @@ <label for="course-group-<?= htmlReady($member['seminar_id']) ?>-<?= $i ?>"> <span class="group-number"><?= $i + 1 ?></span> <span class="checked-icon"> - <?= Icon::create('accept', in_array($i, [3,4,5,7]) ? Icon::ROLE_INFO : Icon::ROLE_INFO_ALT)->asImg(20) ?> + <?= Icon::create('accept', Icon::ROLE_INFO)->asImg(20) ?> </span> </label> </td> diff --git a/resources/assets/stylesheets/scss/my_courses.scss b/resources/assets/stylesheets/scss/my_courses.scss index 814fe438a93..7e037d3b2f0 100644 --- a/resources/assets/stylesheets/scss/my_courses.scss +++ b/resources/assets/stylesheets/scss/my_courses.scss @@ -40,22 +40,16 @@ form.default .mycourses-group-selector { label { /*@include hide-text();*/ - text-indent: 0; text-align: center; font-size: large; font-weight: bold; - margin-top: 0.5ex; + cursor: pointer; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; + background-color: $white; + margin-bottom: 0; + text-indent: 0; - background-position: center; - background-repeat: no-repeat; - - cursor: pointer; + height: 1.2em; .group-number { display: inline; @@ -65,7 +59,3 @@ form.default .mycourses-group-selector { } } } - -.mycourses-group-selector:not(.gruppe3, .gruppe4, .gruppe5, .gruppe7) { - color: $white; -} -- GitLab