mirror of
https://github.com/moodle/moodle.git
synced 2025-01-29 11:46:19 +01:00
MDL-62277 Theme boost: add badge criteria layout
This commit is contained in:
parent
51e53b9f40
commit
f01734122a
@ -210,7 +210,8 @@ abstract class award_criteria {
|
||||
$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'));
|
||||
|
@ -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;
|
||||
|
||||
|
@ -28,7 +28,7 @@
|
||||
max-width: 100%;
|
||||
}
|
||||
.form-group {
|
||||
margin-right: 0.25rem;
|
||||
margin: 0.1rem 0.25rem 0.1rem 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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}}}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{{< core_form/element-template }}
|
||||
{{$element}}
|
||||
<span class="fdate_selector">
|
||||
<span class="fdate_selector d-flex">
|
||||
{{#element.elements}}
|
||||
{{{separator}}}
|
||||
{{{html}}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user