From b28f3b766605067b568535db8df1fd79504d7a75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikel=20Mart=C3=ADn?= Date: Tue, 19 Dec 2023 13:14:45 +0100 Subject: [PATCH] MDL-80397 theme: Refactor card-deck class dropped in BS5 - Refactor recentlyaccessedcourses, starredcourses and myovervew blocks removing card-deck helper class occurrences - Refactor card-deck helper class occurrences with utility classes --- .../themeselector/theme_card.mustache | 4 +- .../themeselector/theme_selector.mustache | 6 +- .../site/layouts/shortcodes/moodleicons.html | 4 +- .../placeholder-course-list-item.mustache | 2 +- .../templates/placeholders.mustache | 13 +- .../myoverview/templates/view-cards.mustache | 4 +- .../myoverview/templates/view-list.mustache | 2 +- .../templates/view-summary.mustache | 2 +- .../behat/block_myoverview_dashboard.feature | 24 +-- .../behat/block_myoverview_favourite.feature | 20 +-- .../behat/block_myoverview_hidden.feature | 54 +++--- .../recentlyaccessedcourses-view.mustache | 17 +- .../templates/placeholder-item.mustache | 2 +- .../recentlyaccesseditems-view.mustache | 12 +- .../templates/view-cards.mustache | 4 +- blocks/starredcourses/templates/view.mustache | 8 +- course/templates/coursecard.mustache | 4 +- course/templates/coursecards.mustache | 6 +- course/templates/placeholder-course.mustache | 2 +- course/templates/view-cards.mustache | 4 +- grade/templates/category_settings.mustache | 2 +- .../imagegallery/listtemplateheader.html | 2 +- theme/boost/scss/moodle/blocks.scss | 159 ++++++++--------- theme/boost/style/moodle.css | 114 +++++------- theme/boost/upgrade.txt | 2 + theme/classic/scss/classic/post.scss | 68 +------- theme/classic/style/moodle.css | 164 +++++------------- 27 files changed, 267 insertions(+), 438 deletions(-) diff --git a/admin/templates/themeselector/theme_card.mustache b/admin/templates/themeselector/theme_card.mustache index 6d7fc0b409c..82d9cc52657 100644 --- a/admin/templates/themeselector/theme_card.mustache +++ b/admin/templates/themeselector/theme_card.mustache @@ -31,8 +31,8 @@ "reporturl": "http://moodlesite/report/themeusage/index.php?themechoice=boost" } }} -
-
+
+
diff --git a/admin/templates/themeselector/theme_selector.mustache b/admin/templates/themeselector/theme_selector.mustache index 6970b829008..84696b226a2 100644 --- a/admin/templates/themeselector/theme_selector.mustache +++ b/admin/templates/themeselector/theme_selector.mustache @@ -62,9 +62,11 @@ {{>core/single_button}}
{{/resetbutton}} -
+
{{#themes}} - {{>core_admin/themeselector/theme_card}} +
+ {{>core_admin/themeselector/theme_card}} +
{{/themes}}
diff --git a/admin/tool/componentlibrary/hugo/site/layouts/shortcodes/moodleicons.html b/admin/tool/componentlibrary/hugo/site/layouts/shortcodes/moodleicons.html index 93558185429..6f89fb4dbbc 100644 --- a/admin/tool/componentlibrary/hugo/site/layouts/shortcodes/moodleicons.html +++ b/admin/tool/componentlibrary/hugo/site/layouts/shortcodes/moodleicons.html @@ -2,9 +2,9 @@ Usage: `moodleicons` */ -}} -
+
{{ range $.Site.Data.fontawesomeicons }} -
+
{{ .name }}
diff --git a/blocks/myoverview/templates/placeholder-course-list-item.mustache b/blocks/myoverview/templates/placeholder-course-list-item.mustache index 4454498833a..409955e9106 100644 --- a/blocks/myoverview/templates/placeholder-course-list-item.mustache +++ b/blocks/myoverview/templates/placeholder-course-list-item.mustache @@ -25,7 +25,7 @@
  • -
    +
    diff --git a/blocks/myoverview/templates/placeholders.mustache b/blocks/myoverview/templates/placeholders.mustache index 7d7df694ac1..45ceda55f24 100644 --- a/blocks/myoverview/templates/placeholders.mustache +++ b/blocks/myoverview/templates/placeholders.mustache @@ -23,14 +23,13 @@ {} }}