mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-09-23 10:22:14 +00:00
stylelint: Enable selector-pseudo-element-colon-notation
Via stylelint --fix Change-Id: I9ea62e799573164a37181bc9b991c817a3786732
This commit is contained in:
parent
7085aa8df8
commit
a9dad10f32
|
@ -7,7 +7,6 @@
|
|||
"rules": {
|
||||
"declaration-property-unit-disallowed-list": null,
|
||||
"no-descending-specificity": null,
|
||||
"selector-class-pattern": null,
|
||||
"selector-pseudo-element-colon-notation": null
|
||||
"selector-class-pattern": null
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,12 +32,12 @@ body.mw-mmv-lightbox-open {
|
|||
line-height: inherit;
|
||||
}
|
||||
|
||||
.mw-mmv-view-expanded .mw-ui-icon:before {
|
||||
.mw-mmv-view-expanded .mw-ui-icon::before {
|
||||
/* @embed */
|
||||
background-image: url( img/expand.svg );
|
||||
}
|
||||
|
||||
.mw-mmv-view-config .mw-ui-icon:before {
|
||||
.mw-mmv-view-config .mw-ui-icon::before {
|
||||
/* @embed */
|
||||
background-image: url( img/gear.svg );
|
||||
margin-right: 0;
|
||||
|
@ -49,7 +49,6 @@ body.mw-mmv-lightbox-open {
|
|||
}
|
||||
|
||||
.mw-mmv-view-config {
|
||||
|
||||
.mw-ui-icon span {
|
||||
display: none;
|
||||
}
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
font-size: 16px;
|
||||
color: #54595d;
|
||||
|
||||
&:before {
|
||||
&::before {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
content: ' ';
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
bottom: 3px;
|
||||
background-color: @panel-above-fold-background-color; // clip text
|
||||
|
||||
&:before {
|
||||
&::before {
|
||||
.fade-out-horizontal( @panel-above-fold-background-color );
|
||||
}
|
||||
}
|
||||
|
@ -82,7 +82,7 @@
|
|||
bottom: 13px;
|
||||
background-color: @panel-below-fold-background-color; // clip text
|
||||
|
||||
&:before {
|
||||
&::before {
|
||||
.fade-out-horizontal( @panel-below-fold-background-color );
|
||||
}
|
||||
}
|
||||
|
@ -117,7 +117,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
.mw-mmv-author:before {
|
||||
.mw-mmv-author::before {
|
||||
/* @embed */
|
||||
background-image: url( img/user-avatar.svg );
|
||||
background-position: center center;
|
||||
|
@ -175,7 +175,7 @@
|
|||
line-height: @metadatabar-below-fold-pushup-height - @space-above-credit;
|
||||
}
|
||||
|
||||
&:before {
|
||||
&::before {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
height: 16px;
|
||||
|
@ -188,37 +188,37 @@
|
|||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
&.mw-mmv-license-li:before {
|
||||
&.mw-mmv-license-li::before {
|
||||
/* @embed */
|
||||
background-image: url( img/license.svg );
|
||||
}
|
||||
|
||||
&.mw-mmv-license-li.cc-license:before {
|
||||
&.mw-mmv-license-li.cc-license::before {
|
||||
/* @embed */
|
||||
background-image: url( img/cc.svg );
|
||||
}
|
||||
|
||||
&.mw-mmv-license-li.pd-license:before {
|
||||
&.mw-mmv-license-li.pd-license::before {
|
||||
/* @embed */
|
||||
background-image: url( img/pd.svg );
|
||||
}
|
||||
|
||||
&.mw-mmv-filename-li:before {
|
||||
&.mw-mmv-filename-li::before {
|
||||
/* @embed */
|
||||
background-image: url( img/file.svg );
|
||||
}
|
||||
|
||||
&.mw-mmv-datetime-li:before {
|
||||
&.mw-mmv-datetime-li::before {
|
||||
/* @embed */
|
||||
background-image: url( img/time.svg );
|
||||
}
|
||||
|
||||
&.mw-mmv-location-li:before {
|
||||
&.mw-mmv-location-li::before {
|
||||
/* @embed */
|
||||
background-image: url( img/location.svg );
|
||||
}
|
||||
|
||||
&.empty:before {
|
||||
&.empty::before {
|
||||
background-image: none !important; /* stylelint-disable-line declaration-no-important */
|
||||
}
|
||||
}
|
||||
|
@ -306,7 +306,7 @@
|
|||
text-align: left;
|
||||
background-size: contain;
|
||||
|
||||
&:after {
|
||||
&::after {
|
||||
float: right;
|
||||
text-indent: 0;
|
||||
}
|
||||
|
@ -372,7 +372,7 @@
|
|||
background-image: url( img/restrict-personality.svg );
|
||||
}
|
||||
|
||||
.mw-mmv-restriction-trademarked:after {
|
||||
.mw-mmv-restriction-trademarked::after {
|
||||
content: '\002122';
|
||||
}
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
display: none;
|
||||
}
|
||||
|
||||
&:before {
|
||||
&::before {
|
||||
display: inline-block;
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
|
@ -38,7 +38,7 @@
|
|||
margin-right: 0.7em;
|
||||
}
|
||||
|
||||
&.has-label:before {
|
||||
&.has-label::before {
|
||||
margin-right: 0.25em;
|
||||
}
|
||||
|
||||
|
@ -51,7 +51,7 @@
|
|||
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 */
|
||||
background-image: url( img/commons_white.svg );
|
||||
width: 1.3em;
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
background-image: url( img/ellipsis_darkgray.svg );
|
||||
}
|
||||
|
||||
&:before {
|
||||
&::before {
|
||||
@fade-length: 2em;
|
||||
display: block;
|
||||
content: '';
|
||||
|
|
Loading…
Reference in a new issue