Last modified: 2012-05-01 20:37:37 UTC
<body> tag has the same class attributes for "normal view" and "diff", for example: http://en.wikipedia.org/wiki/Foobar and http://en.wikipedia.org/w/index.php?title=Foobar&diff=prev&oldid=482777894 It would be very useful for CSS styling to be able to distinguish these pages through <body> classes
The <body> contains action- prefixed class names (e.g. action-view, action-history, action-edit etc.). However "diff' is not an action, but a component of the view action. It is not a different page action or layout, it therefor doesn't make sense to style the entire page differently just because it contains a diff component. The diff component itself can be styled by using the css hooks of the diff component: - table.diff - .diff-marker - .diff-content - .diff-otitle - .diff-ntitle - .diff-lineno - .diff-deletedline - etc. (See also ./resources/mediawiki.action/mediawiki.action.history.diff.css) If you need a selector for the entire page, could you elaborate on a use case?
On the French wiki homepage, we hide the H1: http://fr.wikipedia.org/wiki/Wikip%C3%A9dia:Accueil_principal However, the H1 is also hidden on this page's diffs: http://fr.wikipedia.org/w/index.php?title=Wikip%C3%A9dia:Accueil_principal&diff=75110565&oldid=prev For consistency, it would be great to hide the H1 only on the viewed page, and nowhere else. Note that the issue also concerns the English wiki