]> git.mjollnir.org Git - moodle.git/commitdiff
blocks editing ui: MDL-19398 Make invisible blocks at least partly invisible.
authortjhunt <tjhunt>
Wed, 15 Jul 2009 07:45:48 +0000 (07:45 +0000)
committertjhunt <tjhunt>
Wed, 15 Jul 2009 07:45:48 +0000 (07:45 +0000)
blocks/moodleblock.class.php
theme/standard/styles_layout.css

index fd1c17a05d27eb28824e3435465b01143e20c039..7436d0d49af9c7cfd18bb9786a59468e5d633176 100644 (file)
@@ -361,6 +361,8 @@ class block_base {
             if (!empty($this->content->footer)) {
                 $bc->footer = $this->content->footer;
             }
+        } else {
+            $bc->add_class('invisible');
         }
 
         if ($this->page->user_is_editing()) {
index 1604c6e3b2f74b36c3d6ff12643230c5f2388291..c6c3b91cd4a1b573b1a77f118b855a754cee1b38 100644 (file)
@@ -1585,6 +1585,11 @@ a.skip:focus, a.skip:active {
   display: none;
 }
 
+.block-region .invisible {
+  opacity: 0.5;
+  filter: alpha(opacity=0.5);
+}
+
 .sideblock .header .icon.hide,
 .sideblock .header .icon.edit {
   margin-right: 6px;