Avoid using !important and hide the nolabel instead
authorDerk-Jan Hartman <hartman.wiki@gmail.com>
Tue, 10 Nov 2015 20:48:25 +0000 (21:48 +0100)
committerDerk-Jan Hartman <hartman.wiki@gmail.com>
Tue, 10 Nov 2015 20:48:25 +0000 (21:48 +0100)
Instead of playing catchup with width settings, let's simply hide the
table cells with nolabel. This seems closer to the original intent,
and it works with at least IE8 as well, so why not.

It does effectively move every element without a label 1em (padding) +
1px to the left in your preferences. This will likely be noticeable by
endusers.

Follow-up to: I24d9b16ed672

Change-Id: I92083687ef8a9a6e5fc9c822f9449a1aa7ed7ea1

resources/src/mediawiki/mediawiki.htmlform.css

index b598211..765e92f 100644 (file)
@@ -1,7 +1,7 @@
 /* HTMLForm styles */
 
 table.mw-htmlform-nolabel td.mw-label {
-       width: 1px !important;
+       display: none;
 }
 
 .mw-htmlform-invalid-input td.mw-input input {