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:33:32 +08:00
parent e71a5333a3
commit e9ca5e144c
4 changed files with 4 additions and 4 deletions

View file

@ -16,7 +16,7 @@ Block
.block .content { .block .content {
padding:10px; padding:10px;
} }
.block.hidden .content { .jsenabled .block.hidden .content {
display: none; display: none;
} }
.block .content .userpicture { .block .content .userpicture {

View file

@ -8,7 +8,7 @@
.block .header .commands .icon img {width:12px;height:12px;} .block .header .commands .icon img {width:12px;height:12px;}
.block .header .commands img.actionmenu {width:auto;} .block .header .commands img.actionmenu {width:auto;}
.block .content {padding:4px;} .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 .userpicture {width:16px;height:16px;margin-right:6px;}
.block .content .list li.listentry {clear:both;} .block .content .list li.listentry {clear:both;}
.block .content .list .c0 {display:inline;} .block .content .list .c0 {display:inline;}

View file

@ -46,7 +46,7 @@
margin: 5px 0; margin: 5px 0;
} }
.block.hidden .content { .jsenabled .block.hidden .content {
display: none; display: none;
} }

File diff suppressed because one or more lines are too long