From ca8cf5444e64b671d5c8154fccaec09f342ca74b Mon Sep 17 00:00:00 2001 From: Bas Brands Date: Mon, 13 May 2019 12:29:48 +0200 Subject: [PATCH] MDL-65581 core_blocks: change classname for hidden blocks Changing the added class .invisible to .ivisibleblock to avoid hiding the block completely --- blocks/moodleblock.class.php | 2 +- theme/boost/scss/moodle/blocks.scss | 4 ++++ theme/boost/style/moodle.css | 3 +++ theme/bootstrapbase/less/moodle/blocks.less | 2 +- theme/bootstrapbase/style/moodle.css | 2 +- 5 files changed, 10 insertions(+), 3 deletions(-) diff --git a/blocks/moodleblock.class.php b/blocks/moodleblock.class.php index 89da056cb0c..82b61b51588 100644 --- a/blocks/moodleblock.class.php +++ b/blocks/moodleblock.class.php @@ -232,7 +232,7 @@ class block_base { $bc->footer = $this->content->footer; } } else { - $bc->add_class('invisible'); + $bc->add_class('invisibleblock'); } if (!$this->hide_header()) { diff --git a/theme/boost/scss/moodle/blocks.scss b/theme/boost/scss/moodle/blocks.scss index b52a1fb4eaa..78188e28d8e 100644 --- a/theme/boost/scss/moodle/blocks.scss +++ b/theme/boost/scss/moodle/blocks.scss @@ -297,4 +297,8 @@ body.drawer-open-left #region-main.has-blocks { .icon { margin-right: 2px; } +} + +.block.invisibleblock .card-title { + color: $text-muted; } \ No newline at end of file diff --git a/theme/boost/style/moodle.css b/theme/boost/style/moodle.css index dc358a1b35d..ad1e46a5422 100644 --- a/theme/boost/style/moodle.css +++ b/theme/boost/style/moodle.css @@ -11386,6 +11386,9 @@ div.editor_atto_toolbar button .icon { .block_settings .block_tree p.hasicon .icon { margin-right: 2px; } +.block.invisibleblock .card-title { + color: #868e96; } + .navbar { max-height: 50px; } diff --git a/theme/bootstrapbase/less/moodle/blocks.less b/theme/bootstrapbase/less/moodle/blocks.less index b355cc0d123..e3c526cbf53 100644 --- a/theme/bootstrapbase/less/moodle/blocks.less +++ b/theme/bootstrapbase/less/moodle/blocks.less @@ -72,7 +72,7 @@ border-width: 2px; border-style: dashed; } - &.invisible { + &.invisibleblock { .header h2 { .opacity(50); } diff --git a/theme/bootstrapbase/style/moodle.css b/theme/bootstrapbase/style/moodle.css index 9aec5646c4e..4209ec4669c 100644 --- a/theme/bootstrapbase/style/moodle.css +++ b/theme/bootstrapbase/style/moodle.css @@ -16229,7 +16229,7 @@ body { border-width: 2px; border-style: dashed; } -.block.invisible .header h2 { +.block.invisibleblock .header h2 { opacity: 0.5; filter: alpha(opacity=50); }