1 @import 'mediawiki.skin.variables.less';
2 @import 'mediawiki.mixins.less';
4 .client-js .mw-collapsibleFieldsetLayout.mw-collapsible .oo-ui-fieldsetLayout-header {
5 // Push legend up when JS is on, to increase clickable area.
6 margin-top: -@spacing-50;
7 margin-bottom: @spacing-50;
8 // Add `padding-top` to make up for negative `margin` above.
10 // Make space for toggle icon defined below.
11 padding-left: @spacing-150;
13 .oo-ui-labelElement-label {
18 // Trigger only when collapsible & JS is available via `.mw-collapsed`.
19 .client-js .mw-collapsibleFieldsetLayout.mw-collapsed .oo-ui-fieldsetLayout-header {
21 // Negative margin to match the reduced distance on the top caused by the previous rule.
22 margin-bottom: -@spacing-75;
25 .mw-collapsibleFieldsetLayout.mw-collapsible {
26 .oo-ui-fieldsetLayout-header {
30 .mw-collapsible-toggle .oo-ui-iconElement-icon {
34 // Special case: Reduce to `16px` icon size here.
35 min-width: @min-size-icon-small;
36 width: @size-icon-small;
40 // When expanded: only 'collapse' icon visible
41 .mw-collapsible-toggle .oo-ui-icon-expand {
45 // When collapsed: only 'expand' icon visible
47 .mw-collapsible-toggle .oo-ui-icon-expand {
48 display: inline-block;
51 .mw-collapsible-toggle .oo-ui-icon-collapse {