mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
Merge "Streamline button margin calculation for outline parts"
This commit is contained in:
commit
e857ded358
|
@ -29,19 +29,9 @@
|
|||
margin-top: -24px;
|
||||
}
|
||||
|
||||
/* no margin for labels and wikitext */
|
||||
&:last-child {
|
||||
margin-bottom: -24px;
|
||||
|
||||
/* margin for last text */
|
||||
.ve-ui-mwTransclusionOutlineTemplateWidget-no-template-parameters {
|
||||
margin-bottom: 48px;
|
||||
}
|
||||
|
||||
/* margin for last checkbox in the sidebar */
|
||||
.ve-ui-mwTransclusionOutlineParameterWidget:last-child {
|
||||
margin-bottom: 48px;
|
||||
}
|
||||
&:last-child.ve-ui-mwTransclusionOutlineWikitextWidget,
|
||||
&:last-child.ve-ui-mwTransclusionOutlinePlaceholderWidget {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.ve-ui-mwTransclusionOutlineButtonWidget {
|
||||
|
|
|
@ -18,6 +18,8 @@ ve.ui.MWTransclusionOutlinePlaceholderWidget = function VeUiMWTransclusionOutlin
|
|||
icon: 'puzzle',
|
||||
label: label
|
||||
} );
|
||||
|
||||
this.$element.addClass( 've-ui-mwTransclusionOutlinePlaceholderWidget' );
|
||||
};
|
||||
|
||||
/* Inheritance */
|
||||
|
|
|
@ -17,6 +17,8 @@ ve.ui.MWTransclusionOutlineWikitextWidget = function VeUiMWTransclusionOutlineWi
|
|||
ariaDescriptionSelected: ve.msg( 'visualeditor-dialog-transclusion-wikitext-widget-aria-selected' ),
|
||||
ariaDescriptionSelectedSingle: ve.msg( 'visualeditor-dialog-transclusion-wikitext-widget-aria-selected-single' )
|
||||
} );
|
||||
|
||||
this.$element.addClass( 've-ui-mwTransclusionOutlineWikitextWidget' );
|
||||
};
|
||||
|
||||
/* Inheritance */
|
||||
|
|
Loading…
Reference in a new issue