MDL-56844 scorm: Review styles in boost theme
The main change is that in boost we get rid of the random centered text. To compensate we use "container" which is fixed with with auto margins - but the text is still left aligned.
This commit is contained in:
@@ -897,7 +897,7 @@ function scorm_print_launch ($user, $scorm, $action, $cm) {
|
||||
$organization = optional_param('organization', '', PARAM_INT);
|
||||
|
||||
if ($scorm->displaycoursestructure == 1) {
|
||||
echo $OUTPUT->box_start('generalbox boxaligncenter toc', 'toc');
|
||||
echo $OUTPUT->box_start('generalbox boxaligncenter toc container', 'toc');
|
||||
echo html_writer::div(get_string('contents', 'scorm'), 'structurehead');
|
||||
}
|
||||
if (empty($organization)) {
|
||||
@@ -946,7 +946,8 @@ function scorm_print_launch ($user, $scorm, $action, $cm) {
|
||||
echo html_writer::start_div('scorm-center');
|
||||
echo html_writer::start_tag('form', array('id' => 'scormviewform',
|
||||
'method' => 'post',
|
||||
'action' => $CFG->wwwroot.'/mod/scorm/player.php'));
|
||||
'action' => $CFG->wwwroot.'/mod/scorm/player.php',
|
||||
'class' => 'container'));
|
||||
if ($scorm->hidebrowse == 0) {
|
||||
print_string('mode', 'scorm');
|
||||
echo ': '.html_writer::empty_tag('input', array('type' => 'radio', 'id' => 'b', 'name' => 'mode',
|
||||
|
||||
@@ -6,10 +6,6 @@
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.path-mod-scorm .scorm-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.path-mod-scorm .scorm-right {
|
||||
text-align: right;
|
||||
}
|
||||
@@ -187,10 +183,6 @@
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.path-mod-scorm.forcejavascript .scorm-center {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.path-mod-scorm.forcejavascript .toc {
|
||||
display: none;
|
||||
}
|
||||
@@ -203,10 +195,6 @@
|
||||
display: none;
|
||||
}
|
||||
|
||||
.path-mod-scorm.jsenabled .scorm-center {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.path-mod-scorm.jsenabled .toc {
|
||||
display: block;
|
||||
}
|
||||
|
||||
+3
-3
@@ -156,20 +156,20 @@ if (empty($launch) && ($scorm->displayattemptstatus == SCORM_DISPLAY_ATTEMPTSTAT
|
||||
$scorm->displayattemptstatus == SCORM_DISPLAY_ATTEMPTSTATUS_ENTRY)) {
|
||||
$attemptstatus = scorm_get_attempt_status($USER, $scorm, $cm);
|
||||
}
|
||||
echo $OUTPUT->box(format_module_intro('scorm', $scorm, $cm->id).$attemptstatus, 'generalbox boxaligncenter boxwidthwide', 'intro');
|
||||
echo $OUTPUT->box(format_module_intro('scorm', $scorm, $cm->id).$attemptstatus, 'container', 'intro');
|
||||
|
||||
// Check if SCORM available.
|
||||
list($available, $warnings) = scorm_get_availability_status($scorm);
|
||||
if (!$available) {
|
||||
$reason = current(array_keys($warnings));
|
||||
echo $OUTPUT->box(get_string($reason, "scorm", $warnings[$reason]), "generalbox boxaligncenter");
|
||||
echo $OUTPUT->box(get_string($reason, "scorm", $warnings[$reason]), "container");
|
||||
}
|
||||
|
||||
if ($available && empty($launch)) {
|
||||
scorm_print_launch($USER, $scorm, 'view.php?id='.$cm->id, $cm);
|
||||
}
|
||||
if (!empty($forcejs)) {
|
||||
echo $OUTPUT->box(get_string("forcejavascriptmessage", "scorm"), "generalbox boxaligncenter forcejavascriptmessage");
|
||||
echo $OUTPUT->box(get_string("forcejavascriptmessage", "scorm"), "container forcejavascriptmessage");
|
||||
}
|
||||
|
||||
if (!empty($scorm->popup)) {
|
||||
|
||||
@@ -12,6 +12,7 @@ select {
|
||||
.path-mod-feedback .feedback_form .col-form-label {
|
||||
display: block !important; /* stylelint-disable-line declaration-no-important */
|
||||
}
|
||||
|
||||
// Feedback module
|
||||
.path-mod-feedback .itemactions {
|
||||
float: right;
|
||||
|
||||
@@ -917,3 +917,17 @@ div#dock {
|
||||
background-color: @grayLight;
|
||||
}
|
||||
}
|
||||
|
||||
// Scorm.
|
||||
.path-mod-scorm .scorm-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.path-mod-scorm.forcejavascript .scorm-center {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.path-mod-scorm.jsenabled .scorm-center {
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
||||
@@ -15209,6 +15209,15 @@ div#dock {
|
||||
.path-mod-quiz #mod_quiz_navblock .qnbutton.requiresgrading .trafficlight {
|
||||
background-color: #999;
|
||||
}
|
||||
.path-mod-scorm .scorm-center {
|
||||
text-align: center;
|
||||
}
|
||||
.path-mod-scorm.forcejavascript .scorm-center {
|
||||
display: none;
|
||||
}
|
||||
.path-mod-scorm.jsenabled .scorm-center {
|
||||
display: block;
|
||||
}
|
||||
.yui-skin-sam .yui-layout.path-mod-chat-gui_ajax {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user