From: Daniel Friesen Date: Tue, 13 May 2014 00:57:56 +0000 (-0700) Subject: Vector: Use .mediawiki instead of .skin-vector in notification styles X-Git-Tag: 1.31.0-rc.0~14970 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/gestion/rappel_supprimer.php?a=commitdiff_plain;h=3be12d5cdbc78d7bc88fdb13093e154493b7e6fe;p=lhc%2Fweb%2Fwiklou.git Vector: Use .mediawiki instead of .skin-vector in notification styles What was I thinking when I did this in I2b3d9cbc? The extra class is present as mediawiki.notification's css is loaded later thus overriding the skin's css. However using .skin-vector for that purpose breaks Vector derived skins since they don't have it. The .mediawiki class is always present so it should be an acceptable weight. Change-Id: Ica2a3d3a2ef25aabb38fac36e9eaf142c8bbd388 --- diff --git a/skins/Vector/components/notifications.less b/skins/Vector/components/notifications.less index 05a1e613b8..5bb6f1a3a1 100644 --- a/skins/Vector/components/notifications.less +++ b/skins/Vector/components/notifications.less @@ -1,5 +1,8 @@ /* mediawiki.notification */ -.skin-vector { + +// This wrapper class is needed to ensure these rules have larger CSS +// selector specificity than default styles +.mediawiki { .mw-notification-area { font-size: 0.8em; }