0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-30 19:20:56 +01:00

fixes #696 and improves rarely-used .collapsible classname on MultiFieldPanel, which had been forgotten in previous styling

This commit is contained in:
Dave Cranwell 2015-07-07 16:48:42 +01:00
parent 82171f70fa
commit 9ad8f67d73
2 changed files with 9 additions and 24 deletions

View File

@ -335,7 +335,7 @@ function initCollapsibleBlocks() {
$fieldset.hide();
}
$li.find('h2').click(function() {
$li.find('> h2').click(function() {
if (!$li.hasClass('collapsed')) {
$li.addClass('collapsed');
$fieldset.hide('slow');

View File

@ -293,33 +293,18 @@
min-height: 41px;
h2{
cursor: pointer;
}
h2:before{
content: '6';
text-shadow:none;
line-height: 40px;
padding-right: 1px;
opacity: 1;
color: #666;
background-color: transparent;
@include transition(background-color 0.2s ease, color 0.2s ease);
}
h2:hover:before{
&:before, label:before{
content: '6';
cursor: pointer;
}
}
&.collapsed{
background: #fff;
h2{
@include box-shadow(none);
}
h2:before{
content: '5';
color: #fff;
background-color:$color-teal;
}
h2:hover:before{
background-color:$color-teal-darker;
&:before, label:before{
content: '5';
}
}
}
}