Skip to content

Commit

Permalink
MDL-80303 theme_boost: Clean and reorder course SCSS
Browse files Browse the repository at this point in the history
- Reorder SCSS blocks to improve readability
- Clean comment style to improve readability
- Refactor some SCSS blocks
- Move some styles from core.scss to course.scss
  • Loading branch information
roland04 committed Nov 8, 2024
1 parent 4035bac commit d7cfef8
Show file tree
Hide file tree
Showing 7 changed files with 704 additions and 761 deletions.
2 changes: 1 addition & 1 deletion course/format/social/format.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
echo $OUTPUT->box($introcontent, 'generalbox', 'intro');
}

echo html_writer::div(forum_get_subscribe_link($forum, $modcontext), 'subscribelink');
echo html_writer::div(forum_get_subscribe_link($forum, $modcontext), 'subscribelink text-end');

$numdiscussions = course_get_format($course)->get_course()->numdiscussions;
if ($numdiscussions < 1) {
Expand Down
2 changes: 1 addition & 1 deletion course/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1627,7 +1627,7 @@ protected function frontpage_news($forum) {
$subtext = get_string('subscribe', 'forum');
}
$suburl = new moodle_url('/mod/forum/subscribe.php', array('id' => $forum->id, 'sesskey' => sesskey()));
$output .= html_writer::tag('div', html_writer::link($suburl, $subtext), array('class' => 'subscribelink'));
$output .= html_writer::tag('div', html_writer::link($suburl, $subtext), ['class' => 'subscribelink text-end']);
}

$coursemodule = get_coursemodule_from_instance('forum', $forum->id);
Expand Down
50 changes: 0 additions & 50 deletions theme/boost/scss/moodle/core.scss
Original file line number Diff line number Diff line change
Expand Up @@ -221,18 +221,6 @@ button.btn-close,
padding: 0;
}

.section li.movehere a {
display: block;
width: 100%;
height: 2rem;
border: 2px dashed $gray-800;
}

.editing .course-content .hidden.sectionname {
visibility: hidden;
display: initial;
}

.inline,
.inline-list li {
display: inline;
Expand Down Expand Up @@ -1024,40 +1012,6 @@ tr.flagged-tag a {
left: 50%;
}

.mod-indent-outer {
display: table;
}

.mod-indent {
display: table-cell;
}

.label .mod-indent {
float: left;
padding-top: 20px;
}

.activity.label.modtype_label .mod-indent {
float: none;
}

@include media-breakpoint-up(sm) {
$mod-indent-size: 30px;
/* Creates a series of .mod-indent-# rule declarations based on indent size and number of indent levels. */

@for $i from 1 through 16 {
$width: ($i * $mod-indent-size);

.mod-indent-#{$i} {
width: $width;
}
}

.mod-indent-huge {
width: (16 * $mod-indent-size);
}
}

/* Audio player size in 'block' mode (can only change width, height is hardcoded in JS) */
.resourcecontent .mediaplugin_mp3 object {
height: 25px;
Expand Down Expand Up @@ -2098,10 +2052,6 @@ dd:after {
}
}

h3.sectionname .inplaceeditable.inplaceeditingon .editinstructions {
margin-top: -20px;
}

/** Chart area. */
.chart-area {
@include media-breakpoint-up(lg) {
Expand Down
Loading

0 comments on commit d7cfef8

Please sign in to comment.