mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-29 01:10:16 +00:00
Merge "build: Update linters"
This commit is contained in:
commit
9ecb7af8b4
|
@ -13,30 +13,30 @@
|
||||||
/* stylelint-disable value-keyword-case */
|
/* stylelint-disable value-keyword-case */
|
||||||
|
|
||||||
/* With a group set */
|
/* With a group set */
|
||||||
.mw-ref a[data-mw-group]:after {
|
.mw-ref a[ data-mw-group ]:after {
|
||||||
content: '[' attr( data-mw-group ) ' ' counter( mw-Ref, decimal ) ']';
|
content: '[' attr( data-mw-group ) ' ' counter( mw-Ref, decimal ) ']';
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Groups with special appearance */
|
/* Groups with special appearance */
|
||||||
.mw-ref a[data-mw-group='decimal']:after {
|
.mw-ref a[ data-mw-group='decimal' ]:after {
|
||||||
content: '[' counter( mw-Ref, decimal ) ']';
|
content: '[' counter( mw-Ref, decimal ) ']';
|
||||||
}
|
}
|
||||||
.mw-ref a[data-mw-group='lower-alpha']:after {
|
.mw-ref a[ data-mw-group='lower-alpha' ]:after {
|
||||||
content: '[' counter( mw-Ref, lower-alpha ) ']';
|
content: '[' counter( mw-Ref, lower-alpha ) ']';
|
||||||
}
|
}
|
||||||
.mw-ref a[data-mw-group='upper-alpha']:after {
|
.mw-ref a[ data-mw-group='upper-alpha' ]:after {
|
||||||
content: '[' counter( mw-Ref, upper-alpha ) ']';
|
content: '[' counter( mw-Ref, upper-alpha ) ']';
|
||||||
}
|
}
|
||||||
.mw-ref a[data-mw-group='lower-greek']:after {
|
.mw-ref a[ data-mw-group='lower-greek' ]:after {
|
||||||
content: '[' counter( mw-Ref, lower-greek ) ']';
|
content: '[' counter( mw-Ref, lower-greek ) ']';
|
||||||
}
|
}
|
||||||
.mw-ref a[data-mw-group='lower-roman']:after {
|
.mw-ref a[ data-mw-group='lower-roman' ]:after {
|
||||||
content: '[' counter( mw-Ref, lower-roman ) ']';
|
content: '[' counter( mw-Ref, lower-roman ) ']';
|
||||||
}
|
}
|
||||||
.mw-ref a[data-mw-group='upper-roman']:after {
|
.mw-ref a[ data-mw-group='upper-roman' ]:after {
|
||||||
content: '[' counter( mw-Ref, upper-roman ) ']';
|
content: '[' counter( mw-Ref, upper-roman ) ']';
|
||||||
}
|
}
|
||||||
.mw-ref a[data-mw-group='error-test']:after {
|
.mw-ref a[ data-mw-group='error-test' ]:after {
|
||||||
content: '[' counter( mw-Ref, symbols( cyclic 'first' 'second' 'last!' ) ) ']';
|
content: '[' counter( mw-Ref, symbols( cyclic 'first' 'second' 'last!' ) ) ']';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -62,15 +62,15 @@ ol.mw-references li {
|
||||||
counter-increment: mw-ref-linkback;
|
counter-increment: mw-ref-linkback;
|
||||||
}
|
}
|
||||||
|
|
||||||
[rel='mw:referencedBy'] {
|
[ rel='mw:referencedBy' ] {
|
||||||
counter-reset: mw-ref-linkback -1;
|
counter-reset: mw-ref-linkback -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[rel='mw:referencedBy']:before {
|
[ rel='mw:referencedBy' ]:before {
|
||||||
content: '↑ ';
|
content: '↑ ';
|
||||||
}
|
}
|
||||||
|
|
||||||
span[rel='mw:referencedBy'] a:before {
|
span[ rel='mw:referencedBy' ] a:before {
|
||||||
counter-increment: mw-ref-linkback;
|
counter-increment: mw-ref-linkback;
|
||||||
content: counters( mw-ref-linkback, '.', decimal );
|
content: counters( mw-ref-linkback, '.', decimal );
|
||||||
vertical-align: super;
|
vertical-align: super;
|
||||||
|
@ -78,14 +78,14 @@ span[rel='mw:referencedBy'] a:before {
|
||||||
font-size: smaller;
|
font-size: smaller;
|
||||||
}
|
}
|
||||||
|
|
||||||
span[rel='mw:referencedBy'] a:after {
|
span[ rel='mw:referencedBy' ] a:after {
|
||||||
content: ' ';
|
content: ' ';
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Hide the default rendering in browsers that support content
|
/* Hide the default rendering in browsers that support content
|
||||||
* generation by selecting for :after pseudo-element.*/
|
* generation by selecting for :after pseudo-element.*/
|
||||||
/* stylelint-disable-next-line selector-type-no-unknown */
|
/* stylelint-disable-next-line selector-type-no-unknown */
|
||||||
x-thereisnoelementwiththisname[rel='mw:referencedBy']:before,
|
x-thereisnoelementwiththisname[ rel='mw:referencedBy' ]:before,
|
||||||
span.mw-linkback-text {
|
span.mw-linkback-text {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
/* stylelint-disable value-keyword-case */
|
/* stylelint-disable value-keyword-case */
|
||||||
|
|
||||||
/* <ref>s with a group */
|
/* <ref>s with a group */
|
||||||
.mw-ref a[data-mw-group]:after {
|
.mw-ref a[ data-mw-group ]:after {
|
||||||
content: '[' attr( data-mw-group ) ' ' counter( mw-Ref, persian ) ']';
|
content: '[' attr( data-mw-group ) ' ' counter( mw-Ref, persian ) ']';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,6 +14,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Linkbacks from <references> to <ref>s */
|
/* Linkbacks from <references> to <ref>s */
|
||||||
span[rel='mw:referencedBy'] a:before {
|
span[ rel='mw:referencedBy' ] a:before {
|
||||||
content: counters( mw-ref-linkback, '٫', persian );
|
content: counters( mw-ref-linkback, '٫', persian );
|
||||||
}
|
}
|
||||||
|
|
10
package.json
10
package.json
|
@ -7,13 +7,13 @@
|
||||||
"test": "grunt test"
|
"test": "grunt test"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint-config-wikimedia": "0.4.0",
|
"eslint-config-wikimedia": "0.5.0",
|
||||||
"grunt": "1.0.1",
|
"grunt": "1.0.1",
|
||||||
"grunt-banana-checker": "0.6.0",
|
"grunt-banana-checker": "0.6.0",
|
||||||
"grunt-eslint": "20.0.0",
|
"grunt-eslint": "20.1.0",
|
||||||
"grunt-jsonlint": "1.1.0",
|
"grunt-jsonlint": "1.1.0",
|
||||||
"grunt-stylelint": "0.8.0",
|
"grunt-stylelint": "0.9.0",
|
||||||
"stylelint": "7.8.0",
|
"stylelint": "8.2.0",
|
||||||
"stylelint-config-wikimedia": "0.4.1"
|
"stylelint-config-wikimedia": "0.4.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue