From 03d44330a6035fc0083a290ad9bf2652adb50551 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Thu, 30 Mar 2023 00:24:47 +0200 Subject: [PATCH] stylelint: Enable selector-pseudo-element-colon-notation Via stylelint --fix Change-Id: I14b992b0313f093325c9c6f5109bae9ce26ebc2c --- .stylelintrc.json | 3 +-- modules/nojs/mw.echo.badge.less | 12 ++++++------ .../styles/mw.echo.ui.DatedSubGroupListWidget.less | 2 +- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.stylelintrc.json b/.stylelintrc.json index 843b42884..79cb9b79e 100644 --- a/.stylelintrc.json +++ b/.stylelintrc.json @@ -6,7 +6,6 @@ "rules": { "declaration-no-important": null, "selector-max-id": null, - "declaration-property-unit-disallowed-list": null, - "selector-pseudo-element-colon-notation": null + "declaration-property-unit-disallowed-list": null } } diff --git a/modules/nojs/mw.echo.badge.less b/modules/nojs/mw.echo.badge.less index 55ecdc40b..8962b236b 100644 --- a/modules/nojs/mw.echo.badge.less +++ b/modules/nojs/mw.echo.badge.less @@ -32,13 +32,13 @@ box-shadow: 0 0 0 1px #fff, 0 0 0 3px #36c; opacity: 1; - &:after { + &::after { border-color: #36c; } } // Counter - &:after { + &::after { position: absolute; display: inline-block; cursor: pointer; @@ -63,7 +63,7 @@ &.mw-echo-notifications-badge-long-label { margin-right: 0.5em; - &:after { + &::after { left: 35%; } } @@ -71,7 +71,7 @@ &.mw-echo-notifications-badge-all-read { opacity: 0.51; - &:after { + &::after { visibility: hidden; } } @@ -79,11 +79,11 @@ &.oo-ui-flaggedElement-unseen, &.mw-echo-unseen-notifications { - #pt-notifications-alert &:after { + #pt-notifications-alert &::after { background-color: @badge-counter-background-unseen-alert; } - #pt-notifications-notice &:after { + #pt-notifications-notice &::after { background-color: @badge-counter-background-unseen-message; } } diff --git a/modules/styles/mw.echo.ui.DatedSubGroupListWidget.less b/modules/styles/mw.echo.ui.DatedSubGroupListWidget.less index a403f36c7..d24f9b394 100644 --- a/modules/styles/mw.echo.ui.DatedSubGroupListWidget.less +++ b/modules/styles/mw.echo.ui.DatedSubGroupListWidget.less @@ -16,7 +16,7 @@ margin-right: 0.5em; display: inline-block; - &:first-letter { + &::first-letter { text-transform: uppercase; } }