Skip to content

Commit

Permalink
MDL-62277 Theme boost: add badge criteria layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Bas Brands committed May 10, 2018
1 parent 51e53b9 commit f017341
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
3 changes: 2 additions & 1 deletion badges/criteria/award_criteria.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ public function config_options(&$mform, $param) {
$mform->addGroup($parameter, 'param_' . $prefix . $param['id'], '', array(' '), false);
} else {
$parameter[] =& $mform->createElement('advcheckbox', $prefix . $param['id'], '', $param['name'], null, array(0, $param['id']));
$parameter[] =& $mform->createElement('static', 'break_start_' . $param['id'], null, '<div style="margin-left: 3em;">');
$parameter[] =& $mform->createElement('static', 'break_start_' . $param['id'], null,
'<div class="ml-3 mt-1 w-100 align-items-center">');

if (in_array('grade', $this->optional_params)) {
$parameter[] =& $mform->createElement('static', 'mgrade_' . $param['id'], null, get_string('mingrade', 'badges'));
Expand Down
4 changes: 0 additions & 4 deletions theme/boost/scss/moodle/bs4alphacompat.scss
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,6 @@ $tag-font-weight: bold !default;
position: static;
}

.form-check .form-check-input {
position: absolute;
}

@mixin tag-variant($color) {
background-color: $color;

Expand Down
2 changes: 1 addition & 1 deletion theme/boost/scss/moodle/forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
max-width: 100%;
}
.form-group {
margin-right: 0.25rem;
margin: 0.1rem 0.25rem 0.1rem 0;
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{< core_form/element-template-inline }}
{{$element}}
<span class="fdate_selector">
<span class="fdate_selector d-flex align-items-center">
{{#element.elements}}
{{{separator}}}
{{{html}}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{< core_form/element-template }}
{{$element}}
<span class="fdate_selector">
<span class="fdate_selector d-flex">
{{#element.elements}}
{{{separator}}}
{{{html}}}
Expand Down

0 comments on commit f017341

Please sign in to comment.