Page MenuHomePhabricator

Allowing class "new" links to be styled as such in toolbox, etc.
Closed, InvalidPublic

Description

Due to a selector in main-ltr.css (div#mw-panel div.portal div.body ul li a:visited), when I try to add links to the toolbox (selector "a.new"), the latter selector does not get priority. Could "a.new" (whether the other instance in main-ltr.css or the index page) be given higher priority here?

I am using the extension at http://www.mediawiki.org/wiki/Extension:BADI_Pages_Created_Links to add links to other wikis with styling depending, as with internal Mediawiki links, on whether the page has been created at the other site or not (detected via HEAD requests) and would prefer not to use inline styles to achieve the styling.

Thank you


Version: unspecified
Severity: enhancement

Details

Reference
bz25001

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 11:10 PM
bzimport set Reference to bz25001.
bzimport added a subscriber: Unknown Object (MLST).

Sorry, I'm not an expert in this area. Can't this request be achieved by editing MediaWiki:Common.css, or a similar alternative?

(In reply to Brett Zamir from comment #0)

Due to a selector in main-ltr.css (div#mw-panel div.portal div.body ul li
a:visited), when I try to add links to the toolbox (selector "a.new"), the
latter selector does not get priority. Could "a.new" (whether the other
instance in main-ltr.css or the index page) be given higher priority here?

This isn't possible. Use a more specific selector or !important to override other rules. MediaWiki can't change how CSS works.