hooks: Document CSS classes used elsewhere

Bug: T256100
Change-Id: I3fef99e5b94ca4dc221282f28c7608f84d8fb746
This commit is contained in:
Sam Smith 2020-08-13 14:44:05 +01:00 committed by jdlrobson
parent 95896ff703
commit 8d98ba35da
1 changed files with 18 additions and 0 deletions

View File

@ -269,13 +269,31 @@ class Hooks {
);
if ( $skinVersionLookup->isLegacy() ) {
// As of 2020/08/13, this CSS class is referred to by the following deployed extensions:
//
// - VisualEditor
// - CodeMirror
// - WikimediaEvents
//
// See https://codesearch.wmcloud.org/deployed/?q=skin-vector-legacy for an up-to-date
// list.
$bodyAttrs['class'] .= ' skin-vector-legacy';
return;
}
if ( self::getConfig( Constants::CONFIG_KEY_LAYOUT_MAX_WIDTH ) ) {
$bodyAttrs['class'] .= ' skin-vector-max-width';
}
// As of 2020/08/12, the following CSS classes are referred to by the following deployed
// extensions:
//
// - WikimediaEvents
//
// See https://codesearch.wmcloud.org/deployed/?q=skin-vector-search- for an up-to-date
// list.
if ( self::getConfig( Constants::CONFIG_SEARCH_IN_HEADER ) ) {
$bodyAttrs['class'] .= ' skin-vector-search-header';
} else {