From d7d37fe8fa5dd0bf5c14fc45e0017af571e6d2ff Mon Sep 17 00:00:00 2001 From: Kathrin Osswald <kathrin.osswald@uni-ulm.de> Date: Mon, 11 Nov 2019 13:12:18 +0100 Subject: [PATCH] Added special CSS styles for plugin mod_attendance. --- CHANGES.md | 1 + lib.php | 3 ++- scss/post.scss | 15 ++++++++++++++- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 0c251cb..a9c350c 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -6,6 +6,7 @@ Changes ### Unreleased +* 2019-11-08 - Added special CSS styles for plugin mod_attendance. * 2019-10-28 - Changed the link in the README.md to get to the correct Font Awesome version. * 2019-10-28 - Adjusted login.mustache template due to upstream changes in theme Boost. * 2019-10-28 - Adjusted columns2.mustache template due to upstream changes in theme Boost. diff --git a/lib.php b/lib.php index 22c3031..0e1b1a8 100644 --- a/lib.php +++ b/lib.php @@ -103,7 +103,8 @@ function theme_boost_campus_get_pre_scss($theme) { 'helptextmodal' => ['helptextmodal'], 'breakpoint' => ['breakpoint'], 'blockcolumnwidth' => ['blockcolumnwidth'], - 'blockcolumnwidthdashboard' => ['blockcolumnwidthdashboard'] + 'blockcolumnwidthdashboard' => ['blockcolumnwidthdashboard'], + 'addablockposition' => ['addablockposition'] // MODIFICATION END. ]; diff --git a/scss/post.scss b/scss/post.scss index 6b769cd..9e7b14e 100644 --- a/scss/post.scss +++ b/scss/post.scss @@ -1173,7 +1173,7 @@ a[href^="mailto"]::before { /*------------------------------------ - Special: Local Plugins + Special: Additional Plugins -------------------------------------*/ /* Special styles for plugin local_boostnavigation. */ @@ -1185,3 +1185,16 @@ a[href^="mailto"]::before { border-top: none; } } +/* Special styles for plugin mod_attendance to fix problems with positioning of the table headers in editing mode when + the add a block widget is placed in the blocks column. */ +@if variable-exists(addablockposition) { + @if $addablockposition == 'positionblockregion' { + #page-mod-attendance-report .attendancereporttable .headcol { + left: 20px; + } + #page-mod-attendance-report.has-region-side-pre:not(.empty-region-side-pre) .attendancereporttable .headcol { + left: 20px; + width: 300px; + } + } +} -- GitLab