mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
Streamline button margin calculation for outline parts
Generally the default button margin on the parts is 24px. The only exception are the placeholder and wikitext when they are the last parts in the outline. Bug: T312644 Change-Id: Ie513bf1c022b2696cc92aacbbca59ddf6e55043e
This commit is contained in:
parent
cdf9a59278
commit
7f4645bbe0
|
@ -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