Page MenuHomePhabricator

Add CSS class to body to allow action=history view to be distinguished
Closed, ResolvedPublic

Description

Author: md5

Description:
Currently, the CSS rules on English Wikipedia unconditionally suppress
#contentSub in the Monobook skin for the Main Page using ".ns-0 .page-Main_Page"
as a selector. This has the side effect of suppressing the #contentSub on the
history page as well.

It would be nice to be able to stop this from happening. I have a patch to
include the value of the "action" parameter as a new CSS class on the body
prefixed with "action-" (e.g. "action-history" or "action-view"). This may or
may not be the best way to do this.


Version: 1.10.x
Severity: enhancement
OS: Linux
Platform: PC
URL: http://en.wikipedia.org/wiki/Main_Page?action=history

Details

Reference
bz9758

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:37 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz9758.
bzimport added a subscriber: Unknown Object (MLST).

md5 wrote:

Changes Skin.php to include an "action-..." CSS class based on the action HTTP parameter

Attached:

ayg wrote:

*** This bug has been marked as a duplicate of 4438 ***