Add root title class to <body>
authorMarc A. Pelletier <marc@uberbox.org>
Sun, 3 Apr 2016 07:46:06 +0000 (10:46 +0300)
committerCoren <marc@uberbox.org>
Wed, 20 Apr 2016 02:59:56 +0000 (22:59 -0400)
commit123be2804681b04da5b1499fd9e7e951e384852e
treea64ea923b7fed6d2a977c46e70edf74afdb0ad87
parent15b9f576f6e9561b8bbcbb40f06619d894364886
Add root title class to <body>

This adds a class to the body node of output pages in the form:

rootpage-X

Where X is the root title of the page.

This provides for the use cases in the linked tasks, and allows the
numerous existing cases of expensive css selectors using class*='page-X'
that are otherwise needed to apply a style to a page and or its subpages.

Bug: T123156
Bug: T17075
Change-Id: Ib16e380d97bd7bb55c5b5044a084fefbd039d599
includes/skins/Skin.php