Update stylelint config version and make a pass

Change-Id: Ice5bcec27ae98dcbcb246ae166ed8f04e07dc099
This commit is contained in:
Ed Sanders 2016-05-24 13:48:46 +01:00
parent bac8dd6be7
commit 50b57f017a
3 changed files with 20 additions and 20 deletions

View file

@ -10,41 +10,41 @@ span.mw-ref {
}
/* With a group set */
span.mw-ref a[data-mw-group]::after {
span.mw-ref a[data-mw-group]:after {
content: '[' attr( data-mw-group ) ' ' counter( mw-Ref, decimal ) ']';
}
/* Groups with special appearance */
span.mw-ref a[data-mw-group='decimal']::after {
span.mw-ref a[data-mw-group='decimal']:after {
content: '[' counter( mw-Ref, decimal ) ']';
}
span.mw-ref a[data-mw-group='lower-alpha']::after {
span.mw-ref a[data-mw-group='lower-alpha']:after {
content: '[' counter( mw-Ref, lower-alpha ) ']';
}
span.mw-ref a[data-mw-group='upper-alpha']::after {
span.mw-ref a[data-mw-group='upper-alpha']:after {
content: '[' counter( mw-Ref, upper-alpha ) ']';
}
span.mw-ref a[data-mw-group='lower-greek']::after {
span.mw-ref a[data-mw-group='lower-greek']:after {
content: '[' counter( mw-Ref, lower-greek ) ']';
}
span.mw-ref a[data-mw-group='lower-roman']::after {
span.mw-ref a[data-mw-group='lower-roman']:after {
content: '[' counter( mw-Ref, lower-roman ) ']';
}
span.mw-ref a[data-mw-group='upper-roman']::after {
span.mw-ref a[data-mw-group='upper-roman']:after {
content: '[' counter( mw-Ref, upper-roman ) ']';
}
span.mw-ref a[data-mw-group='error-test']::after {
span.mw-ref a[data-mw-group='error-test']:after {
content: '[' counter( mw-Ref, symbols( cyclic 'first' 'second' 'last!' ) ) ']';
}
/* Without a group */
span.mw-ref a::after {
span.mw-ref a:after {
content: '[' counter( mw-Ref, decimal ) ']';
}
/* Hide the default rendering in browsers that support content
* generation by selecting for ::after pseudo-element.*/
x-thereisnoelementwiththisname::after,
* generation by selecting for :after pseudo-element.*/
x-thereisnoelementwiththisname:after,
span.mw-reflink-text {
display: none;
}
@ -62,11 +62,11 @@ ol.mw-references li {
counter-reset: mw-ref-linkback -1;
}
[rel='mw:referencedBy']::before {
[rel='mw:referencedBy']:before {
content: '↑ ';
}
span[rel='mw:referencedBy'] a::before {
span[rel='mw:referencedBy'] a:before {
counter-increment: mw-ref-linkback;
content: counters( mw-ref-linkback, '.', decimal );
vertical-align: super;
@ -74,13 +74,13 @@ span[rel='mw:referencedBy'] a::before {
font-size: smaller;
}
span[rel='mw:referencedBy'] a::after {
span[rel='mw:referencedBy'] a:after {
content: ' ';
}
/* Hide the default rendering in browsers that support content
* generation by selecting for ::after pseudo-element.*/
x-thereisnoelementwiththisname[rel='mw:referencedBy']::before,
* generation by selecting for :after pseudo-element.*/
x-thereisnoelementwiththisname[rel='mw:referencedBy']:before,
span.mw-linkback-text {
display: none;
}

View file

@ -1,15 +1,15 @@
/* Farsi Cite CSS */
/* <ref>s with a group */
span.mw-ref a[data-mw-group]::after {
span.mw-ref a[data-mw-group]:after {
content: '[' attr( data-mw-group ) ' ' counter( mw-Ref, persian ) ']';
}
/* <ref>s without a group */
span.mw-ref a::after {
span.mw-ref a:after {
content: '[' counter( mw-Ref, persian ) ']';
}
/* Linkbacks from <references> to <ref>s */
span[rel='mw:referencedBy'] a::before {
span[rel='mw:referencedBy'] a:before {
content: counters( mw-ref-linkback, '٫', persian );
}

View file

@ -14,6 +14,6 @@
"grunt-jsonlint": "1.0.7",
"grunt-jscs": "2.5.0",
"grunt-stylelint": "0.2.0",
"stylelint-config-wikimedia": "0.1.0"
"stylelint-config-wikimedia": "0.2.0"
}
}