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
  • Loading branch information
roland04 committed Nov 7, 2024
1 parent 630cfd5 commit 09406c3
Show file tree
Hide file tree
Showing 7 changed files with 524 additions and 585 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
16 changes: 0 additions & 16 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 @@ -2098,10 +2086,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 09406c3

Please sign in to comment.