Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing margin-right in favour of Bootstrap classes. #505

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading