mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-15 11:59:56 +00:00
VE-1997: Add chevron to pi-collapse header
This commit is contained in:
parent
777bd44356
commit
cae6efafca
|
@ -1,4 +1,5 @@
|
|||
@import 'skins/shared/color';
|
||||
@import 'skins/shared/mixins/chevron';
|
||||
@import 'skins/shared/mixins/flexbox';
|
||||
@import 'extensions/wikia/PortableInfobox/styles/PortableInfoboxVariables';
|
||||
|
||||
|
@ -150,7 +151,31 @@
|
|||
|
||||
// ********** Collapsible groups ********** //
|
||||
|
||||
.pi-collapse {
|
||||
.pi-header {
|
||||
@include right-chevron($infobox-chevron-size, 2px, 'up', $color-text);
|
||||
padding-right: $infobox-item-margin * 3 + $infobox-chevron-size;
|
||||
position: relative;
|
||||
|
||||
&:after {
|
||||
display: block;
|
||||
margin-top: -($infobox-chevron-size / 2) + 2;
|
||||
position: absolute;
|
||||
right: $infobox-item-margin * 2;
|
||||
top: 50%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.pi-collapse-closed {
|
||||
border-bottom: none;
|
||||
|
||||
.pi-header::after {
|
||||
margin-top: -($infobox-chevron-size / 2);
|
||||
-webkit-transform: rotate(135deg);
|
||||
transform: rotate(135deg);
|
||||
}
|
||||
|
||||
> *:nth-child(n+2) {
|
||||
display: none;
|
||||
}
|
||||
|
|
|
@ -8,6 +8,8 @@ $infobox-item-margin: 5px;
|
|||
$infobox-margin: 15px;
|
||||
$infobox-width: 270px;
|
||||
|
||||
$infobox-chevron-size: 10px;
|
||||
|
||||
$infobox-debug-error-msg-bg: black;
|
||||
$infobox-debug-error-msg-color: white;
|
||||
$infobox-debug-line-number-width: 50px;
|
||||
|
|
Loading…
Reference in a new issue