From: tjhunt Date: Wed, 15 Jul 2009 07:45:48 +0000 (+0000) Subject: blocks editing ui: MDL-19398 Make invisible blocks at least partly invisible. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=bc422e69552208bbc13e3063f0871b28204e4c2e;p=moodle.git blocks editing ui: MDL-19398 Make invisible blocks at least partly invisible. --- diff --git a/blocks/moodleblock.class.php b/blocks/moodleblock.class.php index fd1c17a05d..7436d0d49a 100644 --- a/blocks/moodleblock.class.php +++ b/blocks/moodleblock.class.php @@ -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()) { diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css index 1604c6e3b2..c6c3b91cd4 100644 --- a/theme/standard/styles_layout.css +++ b/theme/standard/styles_layout.css @@ -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;