Page MenuHomePhabricator

More specific CSS classes for Special:Contributions
Closed, ResolvedPublic

Description

Currently, setting personal styling for Special:Contributions requires some tricky use of CSS selectors. See for example my common.css:

http://en.wikipedia.org/wiki/User:Earle_Martin/common.css

It would be beneficial to have each part of a change item (title, comment, etc.) have its own CSS class to avoid the necessity of doing this.


Version: unspecified
Severity: enhancement

Details

Reference
bz39795

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 12:50 AM
bzimport set Reference to bz39795.

Taking this bug.

I offer to add:

  • mw-contributions-date for a clickable date (there were already history-deleted for deleted one)
  • mw-contributions-title for the page title

There is already a comment class.

That would give something like:
<li class=""><a href="/index.php?title=%E0%A6%AC%E0%A7%87%E0%A6%9F%E0%A7%81%E0%A6%AA%E0%A6%BE%E0%A6%A4&amp;oldid=18" title="বেটুপাত" class="mw-contributions-date">21 juin 2012 à 12:30</a> (<a href="/index.php?title=%E0%A6%AC%E0%A7%87%E0%A6%9F%E0%A7%81%E0%A6%AA%E0%A6%BE%E0%A6%A4&amp;diff=prev&amp;oldid=18" title="বেটুপাত">diff</a> | <a href="/index.php?title=%E0%A6%AC%E0%A7%87%E0%A6%9F%E0%A7%81%E0%A6%AA%E0%A6%BE%E0%A6%A4&amp;action=history" title="বেটুপাত">hist</a>) . . <span dir="ltr" class="mw-plusminus-pos" title="587 octets après changement">(+3)</span>‎ . . <a href="/index.php?title=%E0%A6%AC%E0%A7%87%E0%A6%9F%E0%A7%81%E0%A6%AA%E0%A6%BE%E0%A6%A4" title="বেটুপাত" class="mw-contributions-article">বেটুপাত</a> ‎ <span class="mw-uctop">(dernière)</span> <span class="mw-rollback-link">[<a href="/index.php?title=%E0%A6%AC%E0%A7%87%E0%A6%9F%E0%A7%81%E0%A6%AA%E0%A6%BE%E0%A6%A4&amp;action=rollback&amp;from=Dereckson&amp;token=d368ef29e5c57469d0f2727632ec23e4%2B%5C" title="« Révoquer » annule en un clic la ou les modification(s) de cette page par son dernier contributeur.">révoquer 1 modification</a>]</span> </li>

Gerrit change 22030

( Adding 'patch-in-gerrit' and 'design' keywords. Priority low. )

Great, thank you. May I also request a class for the ". ." separator text? My personal preference runs to hiding those, and others may also want to.

Added, the class name is mw-contributions-separator.

Krinkle has suggested to apply this change to other special pages. I think it's a good idea and will be more coherent.

See bug #40072.