https://bugzilla.wikimedia.org/show_bug.cgi?id=13242





--- Comment #10 from Splarka <[email protected]>  2009-09-10 12:29:46 UTC ---
Since r28786 (version 1.12), the anonymous edit warning has had
id="mw-anon-edit-warning". It is a sibling of the edit form, and as there are a
variable number of siblings between them (due to the toolbox being optional,
for example) it is convoluted but possible to style the <textarea> based on the
existence of this id:

 body.mediawiki #mw-anon-edit-warning + * + * + * + * + * + form #wpTextbox1, 
 body.mediawiki #mw-anon-edit-warning + * + * + * + * + form #wpTextbox1, 
 body.mediawiki #mw-anon-edit-warning + * + * + * + form #wpTextbox1, 
 body.mediawiki #mw-anon-edit-warning + * + * + form #wpTextbox1, 
 body.mediawiki #mw-anon-edit-warning + * + form #wpTextbox1, 
 body.mediawiki #mw-anon-edit-warning + form #wpTextbox1
{background-color:#ff8888 !important;}

This won't work in IE6 or lower, and may cause problems in Opera 8, but it
works in all versions of Firefox back to Mozilla (in theory). The real
advantage of this, is, in Mozilla based browsers, you can add it to your
userContent.css file, so it will apply to ALL wikis you visit (that are on
version 1.12 or higher), not just ones you have an account on. It is a bit
fragile, but seems to work fine now.

But still, a class on the body or edit form would be doubleplusgood.


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to