Vector: Use .mediawiki instead of .skin-vector in notification styles
authorDaniel Friesen <daniel@nadir-seen-fire.com>
Tue, 13 May 2014 00:57:56 +0000 (17:57 -0700)
committerBartosz Dziewoński <matma.rex@gmail.com>
Sun, 13 Jul 2014 00:38:55 +0000 (02:38 +0200)
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

skins/Vector/components/notifications.less

index 05a1e61..5bb6f1a 100644 (file)
@@ -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;
        }