Merge pull request #1489 from davecranwell/fix-collapsible-multifieldpanel-icon

Fixes #696 and improves rarely-used .collapsible classname on MultiFieldPanel
This commit is contained in:
Karl Hobley 2015-07-21 09:37:06 +01:00
commit f2b03c8e57
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';
}
}
}
}