blocks MDL-24999 Fixed up regression in the display of block_list type blocks. Column...
authorSam Hemelryk <sam@moodle.com>
Thu, 11 Nov 2010 05:15:41 +0000 (05:15 +0000)
committerSam Hemelryk <sam@moodle.com>
Thu, 11 Nov 2010 05:15:41 +0000 (05:15 +0000)
blocks/moodleblock.class.php
theme/base/style/blocks.css

index ab2e9da..89f2e14 100644 (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;
+    }
+
 }
 
 /**
index f7de469..b6ee0a1 100644 (file)
 .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;}