MDL-42375 course: management interface icon tweaks

* Drag and drop icon switched to a 12x12px icon.
* Drag and drop icon now uses cursor:pointer
* Improved alignment of the caret for course listing actions.
This commit is contained in:
Sam Hemelryk 2013-11-07 14:00:01 +08:00
parent 81b07e655c
commit 10a2bf4613
4 changed files with 9 additions and 10 deletions

View File

@ -559,7 +559,7 @@ class core_course_management_renderer extends plugin_renderer_base {
if ($category->can_resort_courses()) {
// In order for dnd to be available the user must be able to resort the category children..
$html .= html_writer::div($this->output->pix_icon('i/dragdrop', get_string('dndcourse')), 'float-left drag-handle');
$html .= html_writer::div($this->output->pix_icon('i/move_2d', get_string('dndcourse')), 'float-left drag-handle');
}
$html .= html_writer::start_div('ba-checkbox float-left');

View File

@ -416,7 +416,7 @@ input.titleeditor { vertical-align: text-bottom; }
padding-right: 4px;
}
.jsenabled #course-category-listings .moodle-actionmenu[data-enhance] .toggle-display.textmenu .caret {
margin-top: 10px;
vertical-align:text-top;
}
#course-category-listings .item-actions {margin-right:1em;display:inline-block;display:initial;}
@ -443,7 +443,8 @@ input.titleeditor { vertical-align: text-bottom; }
.dir-rtl #course-category-listings li li li li li li li .tree-icon {margin-right:5em;}
.dir-rtl #course-category-listings li li li li li li li li .tree-icon {margin-right:5.5em;}
#course-listing .listitem .drag-handle {margin-right:0.5em;}
#course-listing .listitem .drag-handle {display:none;}
.jsenabled #course-listing .listitem .drag-handle {margin-right:0.5em;display:inline-block;cursor:pointer;}
#course-listing .listitem .categoryname {display:inline-block;margin-left:1em;color:#a1a1a8;}
#course-listing .listitem .coursename {display:inline-block;}

View File

@ -1012,10 +1012,6 @@ span.editinstructions {
.coursename {
display:inline-block;
}
.drag-handle {
display:inline-block;
margin: 0 6px 0 0;
}
> div {
padding-left:1rem;
}
@ -1130,10 +1126,12 @@ span.editinstructions {
}
#course-category-listings #course-listing .listitem .drag-handle {
display: none;
display: none;
}
.jsenabled #course-category-listings #course-listing .listitem .drag-handle {
display: block;
display:inline-block;
margin: 0 6px 0 0;
cursor:pointer;
}
.dir-rtl #course-category-listings {

File diff suppressed because one or more lines are too long