blocks MDL-24999 Fixed up regression in the display of block_list type blocks. Columns now site next to each other rather than below.

This commit is contained in:
Sam Hemelryk
2010-11-11 05:15:41 +00:00
parent 3cf8629554
commit 740952e40b
2 changed files with 11 additions and 0 deletions
+7
View File
@@ -694,6 +694,13 @@ class block_list extends block_base {
return '';
}
}
function html_attributes() {
$attributes = parent::html_attributes();
$attributes['class'] .= ' list_block';
return $attributes;
}
}
/**
+4
View File
@@ -11,6 +11,10 @@
.block .footer {margin-bottom: 4px;}
.block .blockannotation {font-size:0.75em;margin: -1em 0 1em;}
/** block_list blocks need column stuffs **/
.block.list_block .unlist > li > .column {display:inline-block;}
.ie6 .block.list_block .unlist .column {display:inline;}
.block.beingmoved {border-width: 2px;border-style: dashed;}
.blockmovetarget {display: block;height: 1em;margin-bottom: 1em;border-width: 2px;border-style: dashed;}