From 0efe99927692917cc958017962ba7c63f06986db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikel=20Mart=C3=ADn?= Date: Mon, 15 Jan 2024 17:23:08 +0100 Subject: [PATCH] MDL-80219 core_courseformat: Add course section and activity new styling - Add border to sections (not in single section page) - Remove border to activity cards and add single line separators - Refactor activity and sections styles to fit this new layout - Remove styles that are not necessary with this new layout --- .../local/content/addsection.mustache | 2 +- .../templates/local/content/cm.mustache | 3 + .../local/content/section/header.mustache | 10 +- .../templates/activitychooserbutton.mustache | 2 +- theme/boost/scss/moodle/course.scss | 137 ++++++++---------- theme/boost/style/moodle.css | 109 ++++++-------- theme/classic/style/moodle.css | 109 ++++++-------- 7 files changed, 152 insertions(+), 220 deletions(-) diff --git a/course/format/templates/local/content/addsection.mustache b/course/format/templates/local/content/addsection.mustache index 5a762b9bc57..623911a88b9 100644 --- a/course/format/templates/local/content/addsection.mustache +++ b/course/format/templates/local/content/addsection.mustache @@ -39,7 +39,7 @@ } }} {{#showaddsection}} -
+ {{/editing}} + +
+
diff --git a/course/format/templates/local/content/section/header.mustache b/course/format/templates/local/content/section/header.mustache index d5afc551a38..495e0205469 100644 --- a/course/format/templates/local/content/section/header.mustache +++ b/course/format/templates/local/content/section/header.mustache @@ -36,19 +36,19 @@ {{/ core_courseformat/local/content/section/bulkselect }} {{/sectionbulk}} {{#headerdisplaymultipage}} -

+

{{{title}}}

{{/headerdisplaymultipage}} {{^headerdisplaymultipage}} {{#sitehome}} -

+

{{{title}}}

{{/sitehome}} {{^sitehome}} {{#displayonesection}} -

+

{{{title}}}

{{/displayonesection}} @@ -61,7 +61,7 @@ id="collapssesection{{num}}" aria-expanded="{{^contentcollapsed}}true{{/contentcollapsed}}{{#contentcollapsed}}false{{/contentcollapsed}}" aria-controls="coursecontentcollapse{{num}}" - class="btn btn-icon mr-1 icons-collapse-expand justify-content-center + class="btn btn-icon mr-3 icons-collapse-expand justify-content-center {{#contentcollapsed}} collapsed {{/contentcollapsed}}" aria-label="{{name}}"> @@ -72,7 +72,7 @@ {{#pix}} t/collapsedchevron_rtl, core {{/pix}}
-

{{{title}}}

diff --git a/course/templates/activitychooserbutton.mustache b/course/templates/activitychooserbutton.mustache index 9ebe9b7d0c2..fc15a37c873 100644 --- a/course/templates/activitychooserbutton.mustache +++ b/course/templates/activitychooserbutton.mustache @@ -29,7 +29,7 @@ "sectionreturn": 0 } }} -