Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0a03018

Browse files
committedAug 9, 2024
MDL-75671 theme_boost: Refactor spacing classes for BS5
- Add SCSS code for spacing utility classes to the Boostrap 5 bridge SCSS file - Replace all occurrences in the codebase (pr-1 > pe-1, ml-auto > ms-auto, ml-sm-3 > ms-sm-3, ...)
1 parent 6d18167 commit 0a03018

File tree

440 files changed

+1345
-1317
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

440 files changed

+1345
-1317
lines changed
 

‎admin/classes/reportbuilder/local/systemreports/users.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,11 @@ public function add_columns(): void {
159159
->add_callback(static function(string $fullname, \stdClass $row): string {
160160
if ($row->suspended) {
161161
$fullname .= ' ' . \html_writer::tag('span', get_string('suspended', 'moodle'),
162-
['class' => 'badge badge-secondary ml-1']);
162+
['class' => 'badge badge-secondary ms-1']);
163163
}
164164
if (!$row->confirmed) {
165165
$fullname .= ' ' . \html_writer::tag('span', get_string('confirmationpending', 'admin'),
166-
['class' => 'badge badge-danger ml-1']);
166+
['class' => 'badge badge-danger ms-1']);
167167
}
168168
return $fullname;
169169
});

‎admin/renderer.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,7 @@ public function plugins_check_table(core_plugin_manager $pluginman, $version, ar
12411241
new moodle_url($this->page->url, array('installupdatex' => 1)),
12421242
get_string('updateavailableinstallall', 'core_admin', count($installableupdates)),
12431243
'post',
1244-
array('class' => 'singlebutton updateavailableinstallall mr-1')
1244+
array('class' => 'singlebutton updateavailableinstallall me-1')
12451245
);
12461246
}
12471247

@@ -1250,7 +1250,7 @@ public function plugins_check_table(core_plugin_manager $pluginman, $version, ar
12501250
new moodle_url($this->page->url, array('abortinstallx' => 1, 'confirmplugincheck' => 0)),
12511251
get_string('cancelinstallall', 'core_plugin', count($installabortable)),
12521252
'post',
1253-
array('class' => 'singlebutton cancelinstallall mr-1')
1253+
array('class' => 'singlebutton cancelinstallall me-1')
12541254
);
12551255
}
12561256

@@ -1259,17 +1259,17 @@ public function plugins_check_table(core_plugin_manager $pluginman, $version, ar
12591259
new moodle_url($this->page->url, array('abortupgradex' => 1)),
12601260
get_string('cancelupgradeall', 'core_plugin', count($upgradeabortable)),
12611261
'post',
1262-
array('class' => 'singlebutton cancelupgradeall mr-1')
1262+
array('class' => 'singlebutton cancelupgradeall me-1')
12631263
);
12641264
}
12651265

12661266
$out .= html_writer::div(html_writer::link(new moodle_url($this->page->url, array('showallplugins' => 0)),
12671267
get_string('plugincheckattention', 'core_plugin')).' '.html_writer::span($sumattention, 'badge bg-light text-dark'),
1268-
'btn btn-link mr-1');
1268+
'btn btn-link me-1');
12691269

12701270
$out .= html_writer::div(html_writer::link(new moodle_url($this->page->url, array('showallplugins' => 1)),
12711271
get_string('plugincheckall', 'core_plugin')).' '.html_writer::span($sumtotal, 'badge bg-light text-dark'),
1272-
'btn btn-link mr-1');
1272+
'btn btn-link me-1');
12731273

12741274
$out .= $this->output->container_end(); // End of .actions container.
12751275
$out .= $this->output->container_end(); // End of #plugins-check-info container.
@@ -1376,13 +1376,13 @@ protected function missing_dependencies(core_plugin_manager $pluginman) {
13761376
new moodle_url($this->page->url, array('installdepx' => 1)),
13771377
get_string('dependencyinstallmissing', 'core_plugin', count($installable)),
13781378
'post',
1379-
array('class' => 'singlebutton dependencyinstallmissing d-inline-block mr-1')
1379+
array('class' => 'singlebutton dependencyinstallmissing d-inline-block me-1')
13801380
);
13811381
}
13821382

13831383
$out .= html_writer::div(html_writer::link(new moodle_url('/admin/tool/installaddon/'),
13841384
get_string('dependencyuploadmissing', 'core_plugin'), array('class' => 'btn btn-link')),
1385-
'dependencyuploadmissing d-inline-block mr-1');
1385+
'dependencyuploadmissing d-inline-block me-1');
13861386

13871387
$out .= $this->output->container_end(); // End of .plugins-check-dependencies-actions container.
13881388

@@ -1448,29 +1448,29 @@ protected function available_missing_dependencies_list(core_plugin_manager $plug
14481448
$info .= html_writer::div(
14491449
html_writer::link('https://moodle.org/plugins/view.php?plugin='.$plugin->component,
14501450
get_string('misdepinfoplugin', 'core_plugin')),
1451-
'misdepinfoplugin d-inline-block mr-3 mb-1'
1451+
'misdepinfoplugin d-inline-block me-3 mb-1'
14521452
);
14531453

14541454
$info .= html_writer::div(
14551455
html_writer::link('https://moodle.org/plugins/pluginversion.php?id='.$plugin->version->id,
14561456
get_string('misdepinfoversion', 'core_plugin')),
1457-
'misdepinfoversion d-inline-block mr-3 mb-1'
1457+
'misdepinfoversion d-inline-block me-3 mb-1'
14581458
);
14591459

14601460
$info .= html_writer::div(html_writer::link($plugin->version->downloadurl, get_string('download')),
1461-
'misdepdownload d-inline-block mr-3 mb-1');
1461+
'misdepdownload d-inline-block me-3 mb-1');
14621462

14631463
if ($pluginman->is_remote_plugin_installable($plugin->component, $plugin->version->version, $reason)) {
14641464
$info .= $this->output->single_button(
14651465
new moodle_url($this->page->url, array('installdep' => $plugin->component)),
14661466
get_string('dependencyinstall', 'core_plugin'),
14671467
'post',
1468-
array('class' => 'singlebutton dependencyinstall mr-3 mb-1')
1468+
array('class' => 'singlebutton dependencyinstall me-3 mb-1')
14691469
);
14701470
} else {
14711471
$reasonhelp = $this->info_remote_plugin_not_installable($reason);
14721472
if ($reasonhelp) {
1473-
$info .= html_writer::div($reasonhelp, 'reasonhelp dependencyinstall d-inline-block mr-3 mb-1');
1473+
$info .= html_writer::div($reasonhelp, 'reasonhelp dependencyinstall d-inline-block me-3 mb-1');
14741474
}
14751475
}
14761476

0 commit comments

Comments
 (0)
Please sign in to comment.