Hi all,
I quite like the idea of the UniversalWikiEditButton*, so I've tried adding such an icon to our wiki's "edit this page" button.
However, adding the following CSS code to [[MediaWiki:Common.css]] had no effect whatsoever: #ca-edit { padding-left: 20px; background-image: url(UniversalWikiEditButton.png); background-repeat: no-repeat; background-position: left; background-color: #000; } (code adjusted for publication)
Does anyone have an idea how to fix this? Any help would be appreciated!
Thanks,
F.
However, adding the following CSS code to [[MediaWiki:Common.css]] had no effect whatsoever [...]
I've realized that I need to use #ca-edit a { ... } to apply the background image.
However, I now have the problem that padding (or any attempt to change the button's width) is ignored, so the button's label text overlaps with the icon. Unfortunately, I have not been able to find a workaround for this, so I'd greatly appreciate some assistance!
-- F.
However, I now have the problem that padding (or any attempt to change the button's width) is ignored
Turns out it was a simple issue of specificity... In case anyone cares, here's the working code: #ca-edit a { padding-left: 20px !important; background: url(UniversalWikiEditButton.png) no-repeat top left; }
-- F.
Has everyone agreed on a particular edit button yet? I'm waiting with baited breath.
-- Jim
On 6/16/07, Frederik Dohr fdg001@gmx.net wrote:
However, I now have the problem that padding (or any attempt to change the button's width) is ignored
Turns out it was a simple issue of specificity... In case anyone cares, here's the working code: #ca-edit a { padding-left: 20px !important; background: url(UniversalWikiEditButton.png) no-repeat top left; }
-- F.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Has everyone agreed on a particular edit button yet? I'm waiting with baited breath.
I don't think so - but to change the icon to the "official" version later on, all I'll have to do is replace the image file.
FWIW, there's a preliminary placeholder icon on WardsWiki as well: http://c2.com/cgi/wiki?UniversalWikiEditButton
-- F.
mediawiki-l@lists.wikimedia.org