MDL-65448 block_site_main_menu: Restyle moving.

This commit is contained in:
Luca Bösch 2019-05-01 11:27:38 +02:00
parent 199333208d
commit c24c9e174b
6 changed files with 33 additions and 22 deletions

View file

@ -88,7 +88,6 @@ class block_site_main_menu extends block_list {
$section = $modinfo->get_section_info(0);
if ($ismoving) {
$strmovehere = get_string('movehere');
$strmovefull = strip_tags(get_string('movefull', '', "'$USER->activitycopyname'"));
$strcancel= get_string('cancel');
} else {
@ -128,8 +127,9 @@ class block_site_main_menu extends block_list {
if ($mod->id == $USER->activitycopy) {
continue;
}
$this->content->items[] = '<a title="'.$strmovefull.'" href="'.$CFG->wwwroot.'/course/mod.php?moveto='.$mod->id.'&amp;sesskey='.sesskey().'">'.
'<img style="height:16px; width:80px; border:0px" src="'.$OUTPUT->image_url('movehere') . '" alt="'.$strmovehere.'" /></a>';
$movingurl = new moodle_url('/course/mod.php', array('moveto' => $mod->id, 'sesskey' => sesskey()));
$this->content->items[] = html_writer::link($movingurl, '', array('title' => $strmovefull,
'class' => 'movehere'));
$this->content->icons[] = '';
}
if ($mod->indent > 0) {
@ -148,8 +148,8 @@ class block_site_main_menu extends block_list {
}
if ($ismoving) {
$this->content->items[] = '<a title="'.$strmovefull.'" href="'.$CFG->wwwroot.'/course/mod.php?movetosection='.$section->id.'&amp;sesskey='.sesskey().'">'.
'<img style="height:16px; width:80px; border:0px" src="'.$OUTPUT->image_url('movehere') . '" alt="'.$strmovehere.'" /></a>';
$movingurl = new moodle_url('/course/mod.php', array('movetosection' => $section->id, 'sesskey' => sesskey()));
$this->content->items[] = html_writer::link($movingurl, '', array('title' => $strmovefull, 'class' => 'movehere'));
$this->content->icons[] = '';
}

View file

@ -221,8 +221,15 @@ div.dropdown-item {
section a.movehere,
.section li.movehere a.movehere {
outline: 0;
box-shadow: $input-btn-focus-box-shadow;
display: block;
width: 100%;
height: 2rem;
border: 2px dashed $gray-800;
}
.section li.movehere a.movehere {
margin-bottom: 4px;
margin-top: 4px;
}
.editing .course-content .hidden.sectionname {

View file

@ -284,7 +284,7 @@
display: block;
width: 100%;
height: 2rem;
border: 2px dashed $brand-primary;
border: 2px dashed $gray-800;
}
.category input[type="text"],

View file

@ -41,10 +41,6 @@ $iconsizes: map-merge((
height: $icon-big-height;
font-size: $icon-big-height;
}
&.movetarget {
width: 80px;
}
}
.navbar-dark a .icon {

View file

@ -9842,8 +9842,14 @@ div.dropdown-item:focus-within {
section a.movehere,
.section li.movehere a.movehere {
outline: 0;
box-shadow: 0 0 0 0.2rem rgba(17, 119, 209, 0.75); }
display: block;
width: 100%;
height: 2rem;
border: 2px dashed #343a40; }
.section li.movehere a.movehere {
margin-bottom: 4px;
margin-top: 4px; }
.editing .course-content .hidden.sectionname {
visibility: hidden;
@ -11883,8 +11889,6 @@ input[disabled] {
width: 64px;
height: 64px;
font-size: 64px; }
.icon.movetarget {
width: 80px; }
.navbar-dark a .icon {
color: rgba(255, 255, 255, 0.5) !important;
@ -18367,7 +18371,7 @@ p.arrow_button {
display: block;
width: 100%;
height: 2rem;
border: 2px dashed #1177d1; }
border: 2px dashed #343a40; }
.path-grade-edit-tree .setup-grades .category input[type="text"],
.path-grade-edit-tree .setup-grades .category .column-range,

View file

@ -10046,8 +10046,14 @@ div.dropdown-item:focus-within {
section a.movehere,
.section li.movehere a.movehere {
outline: 0;
box-shadow: 0 0 0 0.2rem rgba(17, 119, 209, 0.75); }
display: block;
width: 100%;
height: 2rem;
border: 2px dashed #343a40; }
.section li.movehere a.movehere {
margin-bottom: 4px;
margin-top: 4px; }
.editing .course-content .hidden.sectionname {
visibility: hidden;
@ -12096,8 +12102,6 @@ input[disabled] {
width: 64px;
height: 64px;
font-size: 64px; }
.icon.movetarget {
width: 80px; }
.navbar-dark a .icon {
color: rgba(255, 255, 255, 0.5) !important;
@ -18599,7 +18603,7 @@ p.arrow_button {
display: block;
width: 100%;
height: 2rem;
border: 2px dashed #1177d1; }
border: 2px dashed #343a40; }
.path-grade-edit-tree .setup-grades .category input[type="text"],
.path-grade-edit-tree .setup-grades .category .column-range,