Skip to content

Commit

Permalink
MDL-66999 theme_boost: @extend remove extends for grades
Browse files Browse the repository at this point in the history
  • Loading branch information
Bas Brands committed Dec 12, 2019
1 parent 40ea675 commit cacf692
Show file tree
Hide file tree
Showing 6 changed files with 122 additions and 400 deletions.
2 changes: 1 addition & 1 deletion grade/grading/form/rubric/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ protected function rubric_template($mode, $options, $elementname, $criteriastr)
'value' => $value
);
$input = html_writer::empty_tag('input', $criteriainputparams);
$rubrictemplate .= html_writer::tag('div', $input, array('class' => 'addcriterion'));
$rubrictemplate .= html_writer::tag('div', $input, array('class' => 'addcriterion btn btn-secondary'));
}
$rubrictemplate .= $this->rubric_edit_options($mode, $options);
$rubrictemplate .= html_writer::end_tag('div');
Expand Down
2 changes: 1 addition & 1 deletion grade/grading/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function management_action_icon(moodle_url $url, $text, $icon) {

$img = $this->output->pix_icon($icon, '');
$txt = html_writer::tag('div', $text, array('class' => 'action-text'));
return html_writer::link($url, $img . $txt, array('class' => 'action'));
return html_writer::link($url, $img . $txt, array('class' => 'action btn btn-lg'));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion grade/grading/tests/behat/behat_grading.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function i_go_to_advanced_grading_definition_page($activityname) {
$editactionliteral = behat_context_helper::escape(get_string("manageactionedit", "grading"));

// Working both when adding and editing.
$definitionxpath = "//a[@class='action']" .
$definitionxpath = "//a[@class='action btn btn-lg']" .
"[./descendant::*[contains(., $newactionliteral) or contains(., $editactionliteral)]]";

$this->execute('behat_grading::i_go_to_advanced_grading_page', $this->escape($activityname));
Expand Down
4 changes: 0 additions & 4 deletions theme/boost/scss/moodle/grade.scss
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@
margin-bottom: 1em;

.action {
@extend .btn;
@extend .btn-lg;
display: inline-block;
position: relative;
vertical-align: top;
Expand Down Expand Up @@ -190,7 +188,6 @@
vertical-align: middle;

input {
@extend .btn;
background-position: 0 0;
height: 30px;
margin-right: 5px;
Expand All @@ -201,7 +198,6 @@

.addcriterion {
margin-left: 5px;
@extend .btn;
padding: 0;

input {
Expand Down
Loading

0 comments on commit cacf692

Please sign in to comment.