mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-16 03:23:22 +00:00
Merge "Update stylelint config version and make a pass"
This commit is contained in:
commit
8a0eeef6c2
|
@ -10,41 +10,41 @@ span.mw-ref {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* With a group set */
|
/* 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 ) ']';
|
content: '[' attr( data-mw-group ) ' ' counter( mw-Ref, decimal ) ']';
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Groups with special appearance */
|
/* 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 ) ']';
|
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 ) ']';
|
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 ) ']';
|
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 ) ']';
|
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 ) ']';
|
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 ) ']';
|
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!' ) ) ']';
|
content: '[' counter( mw-Ref, symbols( cyclic 'first' 'second' 'last!' ) ) ']';
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Without a group */
|
/* Without a group */
|
||||||
span.mw-ref a::after {
|
span.mw-ref a:after {
|
||||||
content: '[' counter( mw-Ref, decimal ) ']';
|
content: '[' counter( mw-Ref, decimal ) ']';
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 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.*/
|
||||||
x-thereisnoelementwiththisname::after,
|
x-thereisnoelementwiththisname:after,
|
||||||
span.mw-reflink-text {
|
span.mw-reflink-text {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
@ -62,11 +62,11 @@ ol.mw-references li {
|
||||||
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;
|
||||||
|
@ -74,13 +74,13 @@ 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.*/
|
||||||
x-thereisnoelementwiththisname[rel='mw:referencedBy']::before,
|
x-thereisnoelementwiththisname[rel='mw:referencedBy']:before,
|
||||||
span.mw-linkback-text {
|
span.mw-linkback-text {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
/* Farsi Cite CSS */
|
/* Farsi Cite CSS */
|
||||||
/* <ref>s with a group */
|
/* <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 ) ']';
|
content: '[' attr( data-mw-group ) ' ' counter( mw-Ref, persian ) ']';
|
||||||
}
|
}
|
||||||
|
|
||||||
/* <ref>s without a group */
|
/* <ref>s without a group */
|
||||||
span.mw-ref a::after {
|
span.mw-ref a:after {
|
||||||
content: '[' counter( mw-Ref, persian ) ']';
|
content: '[' counter( mw-Ref, persian ) ']';
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 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 );
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,6 @@
|
||||||
"grunt-jsonlint": "1.0.7",
|
"grunt-jsonlint": "1.0.7",
|
||||||
"grunt-jscs": "2.5.0",
|
"grunt-jscs": "2.5.0",
|
||||||
"grunt-stylelint": "0.2.0",
|
"grunt-stylelint": "0.2.0",
|
||||||
"stylelint-config-wikimedia": "0.1.0"
|
"stylelint-config-wikimedia": "0.2.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue