Skip to content

Commit

Permalink
MDL-80303 theme_boost: Remove unused/unneded course SCSS
Browse files Browse the repository at this point in the history
- Remove unused/unneeded styles in course.scss
- The .activity-wrapper class and its related SCSS styles are not
needed anymore after MDL-77863 was integrated.
  • Loading branch information
roland04 committed Nov 6, 2024
1 parent fce4996 commit d771a01
Show file tree
Hide file tree
Showing 7 changed files with 551 additions and 1,476 deletions.
13 changes: 8 additions & 5 deletions course/format/templates/local/content.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
"id": 35,
"header": {
"name": "Section title",
"url": "#"
"url": "#",
"headinglevel": 3
},
"cmlist": {
"cms": [
Expand Down Expand Up @@ -83,7 +84,8 @@
"id": 36,
"header": {
"name": "Section 2 title",
"url": "#"
"url": "#",
"headinglevel": 3
},
"cmlist": {
"cms": [
Expand Down Expand Up @@ -139,7 +141,8 @@
"id": 37,
"header": {
"name": "Single Section Example",
"url": "#"
"url": "#",
"headinglevel": 3
},
"cmlist": {
"cms": [
Expand Down Expand Up @@ -169,7 +172,7 @@
<div id="course-format-{{uniqid}}">
<h2 class="accesshide">{{{title}}}</h2>
{{{completionhelp}}}
<ul class="{{format}}" data-for="course_sectionlist">
<ul class="{{format}} section-list" data-for="course_sectionlist">
{{#initialsection}}
{{$ core_courseformat/local/content/section }}
{{> core_courseformat/local/content/section }}
Expand All @@ -188,7 +191,7 @@
{{> core_courseformat/local/content/sectionnavigation }}
{{/ core_courseformat/local/content/sectionnavigation }}
{{/sectionnavigation}}
<ul class="{{format}}">
<ul class="{{format}} section-list">
{{#singlesection}}
{{$ core_courseformat/local/content/section }}
{{> core_courseformat/local/content/section }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
</div>
{{/showsettings}}
<div class="sitetopic">
<ul class="topics frontpage" data-for="course_sectionlist">
<ul class="topics section-list frontpage" data-for="course_sectionlist">
{{#sections}}
{{> core_courseformat/local/content/section }}
{{/sections}}
Expand Down
3 changes: 2 additions & 1 deletion course/format/templates/local/content/section.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"name": "Section title",
"title": "<a href=\"http://moodle/course/view.php?id=5#section-0\">Section title</a>",
"url": "#",
"ishidden": true
"ishidden": true,
"headinglevel": 3
},
"cmlist": {
"cms": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
}
}}
<li
class="activity activity-wrapper {{module}} modtype_{{module}} {{extraclasses}} {{#hasinfo}}hasinfo{{/hasinfo}} {{#indent}}indented{{/indent}}"
class="activity {{module}} modtype_{{module}} {{extraclasses}} {{#hasinfo}}hasinfo{{/hasinfo}} {{#indent}}indented{{/indent}}"
id="{{anchor}}"
data-for="cmitem"
data-id="{{id}}"
Expand Down
Loading

0 comments on commit d771a01

Please sign in to comment.