Skip to content

Commit

Permalink
Removing margin-right in favour of Bootstrap classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaboesch committed Sep 28, 2024
1 parent 3a1b659 commit 66918c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion classes/question/bank/question_bank_filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ public function __construct($name, $label, $advanced, $field, $disableelements,
*/
public function setup_form_in_group(&$mform, &$group) {
$disableelements = implode(',', $this->disableelements);
$linktoggle = \html_writer::tag('a', $this->_label, ['href' => '#', 'class' => 'link-toggle mb-1',
$linktoggle = \html_writer::tag('a', $this->_label, ['href' => '#', 'class' => 'link-toggle mr-1 mb-1',
'title' => $this->helptext, 'for' => 'id_' . $this->_name, 'data-disableelements' => $disableelements,
'role' => 'button']);
$element = $mform->createElement('checkbox', $this->_name, null, $linktoggle, ['class' => 'toggle']);
Expand Down
4 changes: 2 additions & 2 deletions renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1258,7 +1258,7 @@ public function render_control_buttons($catcontext, $hasquestionincategory, $add
'returnurl' => $this->page->url]);
if ($hasquestionincategory) {
$params = [
'class' => 'btn btn-primary form-submit',
'class' => 'btn btn-primary form-submit mr-1 mb-1',
'type' => 'submit',
'name' => 'startquiz',
'formmethod' => 'get',
Expand Down Expand Up @@ -1293,7 +1293,7 @@ public function render_control_buttons($catcontext, $hasquestionincategory, $add

if ($caneditall) {
$output .= html_writer::empty_tag('input', [
'class' => 'btn btn-secondary',
'class' => 'btn btn-secondary mr-1 mb-1',
'type' => 'submit',
'name' => 'deleteselected',
'formaction' => $deleteurl,
Expand Down
5 changes: 0 additions & 5 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
border-bottom: 2px solid darkgray;
border-radius: 4px;
display: inline-block;
margin-right: 5px;
padding: 5px;
transition: all 0.4s ease;
text-decoration: none;
Expand Down Expand Up @@ -317,10 +316,6 @@
width: 60px;
}

.path-mod-studentquiz .modulespecificbuttonscontainer input.btn {
margin-right: 5px;
}

.path-mod-studentquiz #mod_studentquiz_statblock .report_more_url,
.path-mod-studentquiz #mod_studentquiz_rankingblock .report_more_url {
text-align: right;
Expand Down

0 comments on commit 66918c8

Please sign in to comment.