stylelint: Enable selector-pseudo-element-colon-notation

Via stylelint --fix

Change-Id: I9ea62e799573164a37181bc9b991c817a3786732
This commit is contained in:
Umherirrender 2023-04-04 08:18:59 +02:00
parent 7085aa8df8
commit a9dad10f32
6 changed files with 21 additions and 23 deletions

View file

@ -7,7 +7,6 @@
"rules": { "rules": {
"declaration-property-unit-disallowed-list": null, "declaration-property-unit-disallowed-list": null,
"no-descending-specificity": null, "no-descending-specificity": null,
"selector-class-pattern": null, "selector-class-pattern": null
"selector-pseudo-element-colon-notation": null
} }
} }

View file

@ -32,12 +32,12 @@ body.mw-mmv-lightbox-open {
line-height: inherit; line-height: inherit;
} }
.mw-mmv-view-expanded .mw-ui-icon:before { .mw-mmv-view-expanded .mw-ui-icon::before {
/* @embed */ /* @embed */
background-image: url( img/expand.svg ); background-image: url( img/expand.svg );
} }
.mw-mmv-view-config .mw-ui-icon:before { .mw-mmv-view-config .mw-ui-icon::before {
/* @embed */ /* @embed */
background-image: url( img/gear.svg ); background-image: url( img/gear.svg );
margin-right: 0; margin-right: 0;
@ -49,7 +49,6 @@ body.mw-mmv-lightbox-open {
} }
.mw-mmv-view-config { .mw-mmv-view-config {
.mw-ui-icon span { .mw-ui-icon span {
display: none; display: none;
} }

View file

@ -62,7 +62,7 @@
font-size: 16px; font-size: 16px;
color: #54595d; color: #54595d;
&:before { &::before {
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
content: ' '; content: ' ';

View file

@ -55,7 +55,7 @@
bottom: 3px; bottom: 3px;
background-color: @panel-above-fold-background-color; // clip text background-color: @panel-above-fold-background-color; // clip text
&:before { &::before {
.fade-out-horizontal( @panel-above-fold-background-color ); .fade-out-horizontal( @panel-above-fold-background-color );
} }
} }
@ -82,7 +82,7 @@
bottom: 13px; bottom: 13px;
background-color: @panel-below-fold-background-color; // clip text background-color: @panel-below-fold-background-color; // clip text
&:before { &::before {
.fade-out-horizontal( @panel-below-fold-background-color ); .fade-out-horizontal( @panel-below-fold-background-color );
} }
} }
@ -117,7 +117,7 @@
} }
} }
.mw-mmv-author:before { .mw-mmv-author::before {
/* @embed */ /* @embed */
background-image: url( img/user-avatar.svg ); background-image: url( img/user-avatar.svg );
background-position: center center; background-position: center center;
@ -175,7 +175,7 @@
line-height: @metadatabar-below-fold-pushup-height - @space-above-credit; line-height: @metadatabar-below-fold-pushup-height - @space-above-credit;
} }
&:before { &::before {
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
height: 16px; height: 16px;
@ -188,37 +188,37 @@
background-repeat: no-repeat; background-repeat: no-repeat;
} }
&.mw-mmv-license-li:before { &.mw-mmv-license-li::before {
/* @embed */ /* @embed */
background-image: url( img/license.svg ); background-image: url( img/license.svg );
} }
&.mw-mmv-license-li.cc-license:before { &.mw-mmv-license-li.cc-license::before {
/* @embed */ /* @embed */
background-image: url( img/cc.svg ); background-image: url( img/cc.svg );
} }
&.mw-mmv-license-li.pd-license:before { &.mw-mmv-license-li.pd-license::before {
/* @embed */ /* @embed */
background-image: url( img/pd.svg ); background-image: url( img/pd.svg );
} }
&.mw-mmv-filename-li:before { &.mw-mmv-filename-li::before {
/* @embed */ /* @embed */
background-image: url( img/file.svg ); background-image: url( img/file.svg );
} }
&.mw-mmv-datetime-li:before { &.mw-mmv-datetime-li::before {
/* @embed */ /* @embed */
background-image: url( img/time.svg ); background-image: url( img/time.svg );
} }
&.mw-mmv-location-li:before { &.mw-mmv-location-li::before {
/* @embed */ /* @embed */
background-image: url( img/location.svg ); background-image: url( img/location.svg );
} }
&.empty:before { &.empty::before {
background-image: none !important; /* stylelint-disable-line declaration-no-important */ background-image: none !important; /* stylelint-disable-line declaration-no-important */
} }
} }
@ -306,7 +306,7 @@
text-align: left; text-align: left;
background-size: contain; background-size: contain;
&:after { &::after {
float: right; float: right;
text-indent: 0; text-indent: 0;
} }
@ -372,7 +372,7 @@
background-image: url( img/restrict-personality.svg ); background-image: url( img/restrict-personality.svg );
} }
.mw-mmv-restriction-trademarked:after { .mw-mmv-restriction-trademarked::after {
content: '\002122'; content: '\002122';
} }

View file

@ -23,7 +23,7 @@
display: none; display: none;
} }
&:before { &::before {
display: inline-block; display: inline-block;
width: 1em; width: 1em;
height: 1em; height: 1em;
@ -38,7 +38,7 @@
margin-right: 0.7em; margin-right: 0.7em;
} }
&.has-label:before { &.has-label::before {
margin-right: 0.25em; margin-right: 0.25em;
} }
@ -51,7 +51,7 @@
margin: 7px 10px; margin: 7px 10px;
} }
&.mw-mmv-description-page-button.mw-mmv-repo-button-commons:before { &.mw-mmv-description-page-button.mw-mmv-repo-button-commons::before {
/* @embed */ /* @embed */
background-image: url( img/commons_white.svg ); background-image: url( img/commons_white.svg );
width: 1.3em; width: 1.3em;

View file

@ -61,7 +61,7 @@
background-image: url( img/ellipsis_darkgray.svg ); background-image: url( img/ellipsis_darkgray.svg );
} }
&:before { &::before {
@fade-length: 2em; @fade-length: 2em;
display: block; display: block;
content: ''; content: '';