MDL-65581 core_blocks: change classname for hidden blocks

Changing the added class .invisible to .ivisibleblock to avoid hiding
the block completely
This commit is contained in:
Bas Brands
2019-05-13 12:29:48 +02:00
parent 4972dd43dd
commit ca8cf5444e
5 changed files with 10 additions and 3 deletions
+1 -1
View File
@@ -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()) {
+4
View File
@@ -297,4 +297,8 @@ body.drawer-open-left #region-main.has-blocks {
.icon {
margin-right: 2px;
}
}
.block.invisibleblock .card-title {
color: $text-muted;
}
+3
View File
@@ -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; }
+1 -1
View File
@@ -72,7 +72,7 @@
border-width: 2px;
border-style: dashed;
}
&.invisible {
&.invisibleblock {
.header h2 {
.opacity(50);
}
+1 -1
View File
@@ -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);
}