diff --git a/blocks/moodleblock.class.php b/blocks/moodleblock.class.php index ab2e9dabe28..89f2e14dd60 100644 --- a/blocks/moodleblock.class.php +++ b/blocks/moodleblock.class.php @@ -694,6 +694,13 @@ class block_list extends block_base { return ''; } } + + function html_attributes() { + $attributes = parent::html_attributes(); + $attributes['class'] .= ' list_block'; + return $attributes; + } + } /** diff --git a/theme/base/style/blocks.css b/theme/base/style/blocks.css index f7de4690fba..b6ee0a1129d 100644 --- a/theme/base/style/blocks.css +++ b/theme/base/style/blocks.css @@ -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;}