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:
parent
82171f70fa
commit
9ad8f67d73
@ -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');
|
||||
|
@ -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';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user