Permalink
Browse files

MDL-19430 My Moodle: Fixed spacer icon to align move icons

  • Loading branch information...
1 parent 37b5e8f commit 405e14f24673b5938d49b928de9b6bb4d3801073 Rajesh Taneja committed Jul 25, 2012
Showing with 13 additions and 3 deletions.
  1. +6 −2 blocks/course_overview/renderer.php
  2. +7 −1 blocks/course_overview/styles.css
@@ -87,15 +87,19 @@ public function course_overview($courses, $overviews) {
array('title' => $moveup['str'], 'class' => 'moveup'));
} else {
// Add a spacer to keep keep down arrow icons at right position.
- $html .= html_writer::empty_tag('img', array('src' => $this->pix_url('t/spacer'),
- 'class' => 'moveup spacer'));
+ $html .= html_writer::empty_tag('img', array('src' => $this->pix_url('spacer'),
+ 'class' => 'movedownspacer'));
}
// Add an arrow to move course down.
if ($courseordernumber <= $maxcourses-2) {
$url->param('move', 1);
$html .= html_writer::link($url, html_writer::empty_tag('img',
array('src' => $movedown['icon'], 'class' => 'down', 'alt' => $movedown['str'])),
array('title' => $movedown['str'], 'class' => 'movedown'));
+ } else {
+ // Add a spacer to keep keep up arrow icons at right position.
+ $html .= html_writer::empty_tag('img', array('src' => $this->pix_url('spacer'),
+ 'class' => 'moveupspacer'));
}
$html .= html_writer::end_tag('div');
}
@@ -53,17 +53,23 @@
.editing .block_course_overview .moveicons {
display: block;
float: left;
+ padding-right: 5px;
}
.editing .block_course_overview .moveup {
padding-right: 5px;
}
-.editing .block_course_overview .spacer {
+.editing .block_course_overview .movedownspacer {
float: left;
width: 14px;
}
+.editing .block_course_overview .moveupspacer {
+ float: right;
+ width: 14px;
+}
+
.block_course_overview #course_list {
width: 100%;
}

0 comments on commit 405e14f

Please sign in to comment.