Hack #1: We were ignoring the 'size' attribute of input fields when
$wgUseMediaWikiUIEverywhere was true. Let's not do that.
Hack #2: We were setting a min-width for MediaWiki UI input fields,
because fields which were supposed to be full-line were becoming
tiny because of hack #1. Let's not do that either.
Bug: T92498
Change-Id: I1d2c6c9eb60b52a7267c122a719cfdaa1f74f815
} else {
$attrs['class'] = 'mw-ui-input';
}
-
- // Note that size can effect the desired width rendering of mw-ui-input elements
- // so it is removed. Left intact when mediawiki ui not enabled.
- unset( $attrs['size'] );
}
return $attrs;
}
font-weight: bold;
line-height: 1.25em;
}
-
-// Tablet and desktop specific styling tweaks.
-@media all and (min-width: 768px) {
- // Make inline elements take up a sensible amount of the screen on wider devices.
- .mw-ui-input-inline {
- min-width: 320px;
- }
-}