MDL-56209 question: Fix icon sizing issues apparent in Boost

This commit is contained in:
Frédéric Massart 2016-09-30 11:55:41 +02:00
parent 6261200f98
commit a5e92a4183
2 changed files with 8 additions and 1 deletions

View File

@ -36,7 +36,7 @@ abstract class action_column_base extends column_base {
protected function print_icon($icon, $title, $url) {
global $OUTPUT;
echo '<a title="' . $title . '" href="' . $url . '">
<img src="' . $OUTPUT->pix_url($icon) . '" class="iconsmall" alt="' . $title . '" /></a>';
<img src="' . $OUTPUT->pix_url($icon) . '" class="iconsmall icon" alt="' . $title . '" /></a>';
}
public function get_required_fields() {

View File

@ -165,6 +165,13 @@
.iconcol {
padding: 3px;
box-sizing: content-box;
.icon {
margin: 0;
width: 12px;
height: 12px;
}
}
label {