From 415b7b9851eb529d931075e55a1c950cf110e6c6 Mon Sep 17 00:00:00 2001 From: Volker E Date: Fri, 25 Oct 2019 13:53:39 -0700 Subject: [PATCH] hygiene: Make LESS imports non-ambigious Some LESS parsers will get confused with the lack of file extension. It's better to be explicit and in alignment with recent change in core I379334d7729e587a2a00. It was already weirdly mixed in this repo with some imports featuring extension and some not. Change-Id: Ib208607c850fa2492b13cd3d449c04ebc2c21a01 --- modules/nojs/mw.echo.badge.less | 4 ++-- modules/nojs/mw.echo.badge.monobook.less | 2 +- modules/nojs/mw.echo.badge.vector.less | 2 +- modules/nojs/mw.echo.notifications.less | 6 +++--- modules/nojs/mw.echo.special.less | 2 +- .../styles/mw.echo.ui.CrossWikiNotificationItemWidget.less | 4 ++-- modules/styles/mw.echo.ui.CrossWikiUnreadFilterWidget.less | 2 +- modules/styles/mw.echo.ui.DatedNotificationsWidget.less | 2 +- modules/styles/mw.echo.ui.DatedSubGroupListWidget.less | 2 +- modules/styles/mw.echo.ui.FooterNoticeWidget.less | 4 ++-- modules/styles/mw.echo.ui.MenuItemWidget.less | 4 ++-- modules/styles/mw.echo.ui.NotificationBadgeWidget.less | 4 ++-- modules/styles/mw.echo.ui.NotificationItemWidget.less | 6 +++--- modules/styles/mw.echo.ui.NotificationsInboxWidget.less | 2 +- modules/styles/mw.echo.ui.NotificationsListWidget.less | 2 +- modules/styles/mw.echo.ui.PageFilterWidget.less | 2 +- .../styles/mw.echo.ui.PageNotificationsOptionWidget.less | 4 ++-- modules/styles/mw.echo.ui.PlaceholderItemWidget.less | 2 +- modules/styles/mw.echo.ui.SpecialHelpMenuWidget.less | 2 +- modules/styles/mw.echo.ui.SubGroupListWidget.less | 2 +- modules/styles/mw.echo.ui.ToggleReadCircleButtonWidget.less | 4 ++-- 21 files changed, 32 insertions(+), 32 deletions(-) diff --git a/modules/nojs/mw.echo.badge.less b/modules/nojs/mw.echo.badge.less index b930254e5..18549ffe9 100644 --- a/modules/nojs/mw.echo.badge.less +++ b/modules/nojs/mw.echo.badge.less @@ -1,5 +1,5 @@ -@import '../echo.variables'; -@import 'mediawiki.mixins'; +@import '../echo.variables.less'; +@import 'mediawiki.mixins.less'; /* stylelint-disable no-descending-specificity */ /* We have to include the #pt-notifications selector due to monobook */ diff --git a/modules/nojs/mw.echo.badge.monobook.less b/modules/nojs/mw.echo.badge.monobook.less index 9e4380981..93eec98e1 100644 --- a/modules/nojs/mw.echo.badge.monobook.less +++ b/modules/nojs/mw.echo.badge.monobook.less @@ -1,4 +1,4 @@ -@import '../echo.variables'; +@import '../echo.variables.less'; #pt-notifications-notice .mw-echo-notifications-badge, #pt-notifications-alert .mw-echo-notifications-badge { diff --git a/modules/nojs/mw.echo.badge.vector.less b/modules/nojs/mw.echo.badge.vector.less index 86ed44f6b..90c7d23c3 100644 --- a/modules/nojs/mw.echo.badge.vector.less +++ b/modules/nojs/mw.echo.badge.vector.less @@ -1,4 +1,4 @@ -@import '../echo.variables'; +@import '../echo.variables.less'; #p-personal #pt-notifications-alert, #p-personal #pt-notifications-notice { diff --git a/modules/nojs/mw.echo.notifications.less b/modules/nojs/mw.echo.notifications.less index b7d6a3ecb..7e9a9a9be 100644 --- a/modules/nojs/mw.echo.notifications.less +++ b/modules/nojs/mw.echo.notifications.less @@ -1,6 +1,6 @@ -@import '../echo.variables'; -@import '../echo.mixins'; -@import 'mediawiki.mixins'; +@import '../echo.variables.less'; +@import '../echo.mixins.less'; +@import 'mediawiki.mixins.less'; // This is only valid for the Special:Notifications page in no-JS mode, // where the formatting of the notifications include the following structure diff --git a/modules/nojs/mw.echo.special.less b/modules/nojs/mw.echo.special.less index e2702df37..1c2b71e2c 100644 --- a/modules/nojs/mw.echo.special.less +++ b/modules/nojs/mw.echo.special.less @@ -1,5 +1,5 @@ /* Echo specific CSS */ -@import '../echo.variables'; +@import '../echo.variables.less'; .mw-echo-special-container { max-width: 600px; diff --git a/modules/styles/mw.echo.ui.CrossWikiNotificationItemWidget.less b/modules/styles/mw.echo.ui.CrossWikiNotificationItemWidget.less index e9f8bbd2a..b0b04fc24 100644 --- a/modules/styles/mw.echo.ui.CrossWikiNotificationItemWidget.less +++ b/modules/styles/mw.echo.ui.CrossWikiNotificationItemWidget.less @@ -1,5 +1,5 @@ -@import 'mediawiki.mixins'; -@import '../echo.variables'; +@import 'mediawiki.mixins.less'; +@import '../echo.variables.less'; .mw-echo-ui-crossWikiNotificationItemWidget, .mw-echo-ui-bundleNotificationItemWidget { diff --git a/modules/styles/mw.echo.ui.CrossWikiUnreadFilterWidget.less b/modules/styles/mw.echo.ui.CrossWikiUnreadFilterWidget.less index 859e604ac..4b1319458 100644 --- a/modules/styles/mw.echo.ui.CrossWikiUnreadFilterWidget.less +++ b/modules/styles/mw.echo.ui.CrossWikiUnreadFilterWidget.less @@ -1,4 +1,4 @@ -@import '../echo.variables'; +@import '../echo.variables.less'; .mw-echo-ui-crossWikiUnreadFilterWidget { border: 1px solid @border-color; diff --git a/modules/styles/mw.echo.ui.DatedNotificationsWidget.less b/modules/styles/mw.echo.ui.DatedNotificationsWidget.less index 32b72f5e8..fc2c1c279 100644 --- a/modules/styles/mw.echo.ui.DatedNotificationsWidget.less +++ b/modules/styles/mw.echo.ui.DatedNotificationsWidget.less @@ -1,4 +1,4 @@ -@import '../echo.variables'; +@import '../echo.variables.less'; .mw-echo-ui-datedNotificationsWidget { min-height: 5em; diff --git a/modules/styles/mw.echo.ui.DatedSubGroupListWidget.less b/modules/styles/mw.echo.ui.DatedSubGroupListWidget.less index 4d1b3145a..a403f36c7 100644 --- a/modules/styles/mw.echo.ui.DatedSubGroupListWidget.less +++ b/modules/styles/mw.echo.ui.DatedSubGroupListWidget.less @@ -1,4 +1,4 @@ -@import '../echo.variables'; +@import '../echo.variables.less'; .mw-echo-ui-datedSubGroupListWidget { .mw-body-content &-title { diff --git a/modules/styles/mw.echo.ui.FooterNoticeWidget.less b/modules/styles/mw.echo.ui.FooterNoticeWidget.less index f9a2a20b5..589d55b6f 100644 --- a/modules/styles/mw.echo.ui.FooterNoticeWidget.less +++ b/modules/styles/mw.echo.ui.FooterNoticeWidget.less @@ -1,5 +1,5 @@ -@import '../echo.variables'; -@import '../echo.mixins'; +@import '../echo.variables.less'; +@import '../echo.mixins.less'; .mw-echo-ui-footerNoticeWidget { padding: 0.5em; diff --git a/modules/styles/mw.echo.ui.MenuItemWidget.less b/modules/styles/mw.echo.ui.MenuItemWidget.less index 5735dfbda..c85d7a5df 100644 --- a/modules/styles/mw.echo.ui.MenuItemWidget.less +++ b/modules/styles/mw.echo.ui.MenuItemWidget.less @@ -1,5 +1,5 @@ -@import '../echo.variables'; -@import '../echo.mixins'; +@import '../echo.variables.less'; +@import '../echo.mixins.less'; /* stylelint-disable no-descending-specificity */ .mw-echo-ui-menuItemWidget { diff --git a/modules/styles/mw.echo.ui.NotificationBadgeWidget.less b/modules/styles/mw.echo.ui.NotificationBadgeWidget.less index 00b9a2e9c..65320518f 100644 --- a/modules/styles/mw.echo.ui.NotificationBadgeWidget.less +++ b/modules/styles/mw.echo.ui.NotificationBadgeWidget.less @@ -1,5 +1,5 @@ -@import 'mediawiki.mixins'; -@import '../echo.variables'; +@import 'mediawiki.mixins.less'; +@import '../echo.variables.less'; .mw-echo-ui-notificationBadgeButtonPopupWidget { position: relative; diff --git a/modules/styles/mw.echo.ui.NotificationItemWidget.less b/modules/styles/mw.echo.ui.NotificationItemWidget.less index 282ad7459..aacd7d551 100644 --- a/modules/styles/mw.echo.ui.NotificationItemWidget.less +++ b/modules/styles/mw.echo.ui.NotificationItemWidget.less @@ -1,6 +1,6 @@ -@import 'mediawiki.mixins'; -@import '../echo.variables'; -@import '../echo.mixins'; +@import 'mediawiki.mixins.less'; +@import '../echo.variables.less'; +@import '../echo.mixins.less'; .mw-echo-ui-notificationItemWidget { background-color: @notification-item-background-read; diff --git a/modules/styles/mw.echo.ui.NotificationsInboxWidget.less b/modules/styles/mw.echo.ui.NotificationsInboxWidget.less index 9046ca9bb..192197109 100644 --- a/modules/styles/mw.echo.ui.NotificationsInboxWidget.less +++ b/modules/styles/mw.echo.ui.NotificationsInboxWidget.less @@ -1,4 +1,4 @@ -@import '../echo.variables'; +@import '../echo.variables.less'; .mw-echo-ui-notificationsInboxWidget { display: table; diff --git a/modules/styles/mw.echo.ui.NotificationsListWidget.less b/modules/styles/mw.echo.ui.NotificationsListWidget.less index ced6f2db7..3a79558f9 100644 --- a/modules/styles/mw.echo.ui.NotificationsListWidget.less +++ b/modules/styles/mw.echo.ui.NotificationsListWidget.less @@ -1,4 +1,4 @@ -@import '../echo.variables'; +@import '../echo.variables.less'; .mw-echo-ui-notificationsListWidget { .mw-echo-ui-notificationsListWidget-bundle & { diff --git a/modules/styles/mw.echo.ui.PageFilterWidget.less b/modules/styles/mw.echo.ui.PageFilterWidget.less index 99244b208..47eb7ac48 100644 --- a/modules/styles/mw.echo.ui.PageFilterWidget.less +++ b/modules/styles/mw.echo.ui.PageFilterWidget.less @@ -1,4 +1,4 @@ -@import '../echo.variables'; +@import '../echo.variables.less'; .mw-echo-ui-pageFilterWidget { margin-top: 2 * @specialpage-separation-unit; diff --git a/modules/styles/mw.echo.ui.PageNotificationsOptionWidget.less b/modules/styles/mw.echo.ui.PageNotificationsOptionWidget.less index 304c0febb..ef95faaf9 100644 --- a/modules/styles/mw.echo.ui.PageNotificationsOptionWidget.less +++ b/modules/styles/mw.echo.ui.PageNotificationsOptionWidget.less @@ -1,5 +1,5 @@ -@import 'mediawiki.mixins'; -@import '../echo.variables'; +@import 'mediawiki.mixins.less'; +@import '../echo.variables.less'; .mw-echo-ui-pageNotificationsOptionWidget { clear: both; diff --git a/modules/styles/mw.echo.ui.PlaceholderItemWidget.less b/modules/styles/mw.echo.ui.PlaceholderItemWidget.less index 1a233f70f..b33b459ee 100644 --- a/modules/styles/mw.echo.ui.PlaceholderItemWidget.less +++ b/modules/styles/mw.echo.ui.PlaceholderItemWidget.less @@ -1,4 +1,4 @@ -@import '../echo.variables'; +@import '../echo.variables.less'; .mw-echo-ui-placeholderItemWidget { padding: 2em; diff --git a/modules/styles/mw.echo.ui.SpecialHelpMenuWidget.less b/modules/styles/mw.echo.ui.SpecialHelpMenuWidget.less index de1fcd1b2..27820f402 100644 --- a/modules/styles/mw.echo.ui.SpecialHelpMenuWidget.less +++ b/modules/styles/mw.echo.ui.SpecialHelpMenuWidget.less @@ -1,4 +1,4 @@ -@import '../echo.variables'; +@import '../echo.variables.less'; .mw-echo-ui-specialHelpMenuWidget-menu { a.oo-ui-menuOptionWidget { diff --git a/modules/styles/mw.echo.ui.SubGroupListWidget.less b/modules/styles/mw.echo.ui.SubGroupListWidget.less index 8627c4445..1779e2ec6 100644 --- a/modules/styles/mw.echo.ui.SubGroupListWidget.less +++ b/modules/styles/mw.echo.ui.SubGroupListWidget.less @@ -1,4 +1,4 @@ -@import '../echo.variables'; +@import '../echo.variables.less'; .mw-echo-ui-subGroupListWidget { &:not( :first-child ) { diff --git a/modules/styles/mw.echo.ui.ToggleReadCircleButtonWidget.less b/modules/styles/mw.echo.ui.ToggleReadCircleButtonWidget.less index ecee64106..96582329d 100644 --- a/modules/styles/mw.echo.ui.ToggleReadCircleButtonWidget.less +++ b/modules/styles/mw.echo.ui.ToggleReadCircleButtonWidget.less @@ -1,5 +1,5 @@ -@import 'mediawiki.mixins'; -@import '../echo.variables'; +@import 'mediawiki.mixins.less'; +@import '../echo.variables.less'; .mw-echo-ui-toggleReadCircleButtonWidget { &-circle {