mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 19:06:41 +02:00
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:
parent
e71a5333a3
commit
e9ca5e144c
4 changed files with 4 additions and 4 deletions
|
@ -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 {
|
||||||
|
|
|
@ -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;}
|
||||||
|
|
|
@ -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
Loading…
Add table
Add a link
Reference in a new issue