Remove unused ve-ui-educationPopup-header CSS

We just use a standard <h3> in the popup.

Also document generated classes.

Change-Id: I8c61a240fe8c7222c70cad19ea9300b2105484ea
This commit is contained in:
Ed Sanders 2024-02-28 15:42:50 +00:00
parent 2881347216
commit f7eef9ce12
2 changed files with 3 additions and 5 deletions

View file

@ -27,10 +27,6 @@
margin-top: 0.5em;
}
.ve-ui-educationPopup-header {
margin-bottom: 1em;
}
.ve-ui-educationPopup .oo-ui-popupWidget {
/* Appear above local dialogs, e.g. toolbar dialog */
z-index: 3;

View file

@ -61,7 +61,9 @@ ve.ui.MWEducationPopupWidget = function VeUiMwEducationPopup( $target, config )
ve.targetLinksToNewWindow( $popupContent[ 0 ] );
if ( config.popupImage ) {
$popupContent.prepend(
// eslint-disable-next-line mediawiki/class-doc
// The following classes can be generated here:
// * ve-ui-educationPopup-image-link
// * others generated by extensions
$( '<div>' ).addClass( 've-ui-educationPopup-image ve-ui-educationPopup-image-' + config.popupImage )
);
}