Common.js: Difference between revisions
From hmis
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | /* Any JavaScript here will be loaded for all users on every page load. */ | ||
mw.loader.using('oojs-ui').then(function () { | |||
mw.util.addCSS(` | |||
mw. | form .mw-widget-dateInputWidget, | ||
form .mw-widget-dateInputWidget > .oo-ui-textInputWidget, | |||
form .mw-widget-dateInputWidget > .oo-ui-textInputWidget > .oo-ui-inputWidget-input, | |||
form .mw-widget-dateInputWidget-handle { | |||
display:inline-block !important; | |||
width:auto !important; | |||
vertical-align:middle !important; | |||
margin:0 0.25em 0 0 !important; | |||
padding:0 !important; | |||
} | |||
`); | |||
}); | }); | ||
Revision as of 12:45, November 4, 2025
/* Any JavaScript here will be loaded for all users on every page load. */
mw.loader.using('oojs-ui').then(function () {
mw.util.addCSS(`
form .mw-widget-dateInputWidget,
form .mw-widget-dateInputWidget > .oo-ui-textInputWidget,
form .mw-widget-dateInputWidget > .oo-ui-textInputWidget > .oo-ui-inputWidget-input,
form .mw-widget-dateInputWidget-handle {
display:inline-block !important;
width:auto !important;
vertical-align:middle !important;
margin:0 0.25em 0 0 !important;
padding:0 !important;
}
`);
});