Merge "Streamline button margin calculation for outline parts"

This commit is contained in:
jenkins-bot 2022-08-04 13:05:18 +00:00 committed by Gerrit Code Review
commit e857ded358
3 changed files with 7 additions and 13 deletions

View file

@ -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 {

View file

@ -18,6 +18,8 @@ ve.ui.MWTransclusionOutlinePlaceholderWidget = function VeUiMWTransclusionOutlin
icon: 'puzzle',
label: label
} );
this.$element.addClass( 've-ui-mwTransclusionOutlinePlaceholderWidget' );
};
/* Inheritance */

View file

@ -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 */