From 952fdf45ef83230983deb6e36accf319f3ebebcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20B=C3=B6sch?= Date: Tue, 7 Oct 2025 23:39:24 +0200 Subject: [PATCH] MDL-86844 qbank: style question bank table as in Moodle 4.5. --- public/question/classes/local/bank/view.php | 2 +- public/theme/boost/scss/moodle/question.scss | 2 +- public/theme/boost/style/moodle.css | 2 +- public/theme/classic/style/moodle.css | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/question/classes/local/bank/view.php b/public/question/classes/local/bank/view.php index afec3a755d2..c87441c2631 100644 --- a/public/question/classes/local/bank/view.php +++ b/public/question/classes/local/bank/view.php @@ -1284,7 +1284,7 @@ class view { // Start of the table. echo \html_writer::start_tag('table', [ 'id' => 'categoryquestions', - 'class' => 'question-bank-table table generaltable', + 'class' => 'question-bank-table table table-hover table-striped generaltable', 'data-defaultsort' => json_encode($this->sort), ]); diff --git a/public/theme/boost/scss/moodle/question.scss b/public/theme/boost/scss/moodle/question.scss index b57be57defe..fffaf2c441e 100644 --- a/public/theme/boost/scss/moodle/question.scss +++ b/public/theme/boost/scss/moodle/question.scss @@ -161,7 +161,7 @@ table.question-bank-table { } & > tbody > tr.r1 { - background-color: $table-accent-bg; + background-color: $table-striped-bg; } diff --git a/public/theme/boost/style/moodle.css b/public/theme/boost/style/moodle.css index bbb31e348bd..d16aea80180 100644 --- a/public/theme/boost/style/moodle.css +++ b/public/theme/boost/style/moodle.css @@ -34098,7 +34098,7 @@ table.question-bank-table th { text-align: left; } table.question-bank-table > tbody > tr.r1 { - background-color: transparent; + background-color: rgba(var(--bs-emphasis-color-rgb), 0.03); } table.question-bank-table.generaltable > tbody > tr.highlight.firstrow td { border-top: 3px solid #008196; diff --git a/public/theme/classic/style/moodle.css b/public/theme/classic/style/moodle.css index 0deeb89a847..d4dcd8e5e02 100644 --- a/public/theme/classic/style/moodle.css +++ b/public/theme/classic/style/moodle.css @@ -34098,7 +34098,7 @@ table.question-bank-table th { text-align: left; } table.question-bank-table > tbody > tr.r1 { - background-color: transparent; + background-color: rgba(var(--bs-emphasis-color-rgb), 0.03); } table.question-bank-table.generaltable > tbody > tr.highlight.firstrow td { border-top: 3px solid #008196;