MDL-42392 Blocks: Do not hide blocks if JS is disabled

With JS disabled, it is not possible to change the block visibility
user preference and therefore not possible to show content which was
hidden.

Since the block hiding functionality is a nicety, and we have no controls
to show and hide the blocks when JS is disabled, we should instead show the
block content regardless of the user preference.
This commit is contained in:
Andrew Nicols
2013-12-28 08:41:11 +08:00
parent e92da00284
commit 798ca416a9
4 changed files with 5 additions and 5 deletions
@@ -16,7 +16,7 @@ Block
.block .content {
padding:10px;
}
.block.hidden .content {
.jsenabled .block.hidden .content {
display: none;
}
.block .content .userpicture {
@@ -152,4 +152,4 @@ Block
left:0px;
bottom: 0px;
position:absolute;
}
}
+1 -1
View File
@@ -7,7 +7,7 @@
.block .header .commands > a { margin:0 3px; }
.block .header .commands .icon img {width:12px;height:12px;}
.block .content {padding:4px;}
.block.hidden .content {display: none;}
.jsenabled .block.hidden .content {display: none;}
.block .content .userpicture {width:16px;height:16px;margin-right:6px;}
.block .content .list li.listentry {clear:both;}
.block .content .list .c0 {display:inline;}
+1 -1
View File
@@ -41,7 +41,7 @@
margin: 5px 0;
}
.block.hidden .content {
.jsenabled .block.hidden .content {
display: none;
}
File diff suppressed because one or more lines are too long