Allow mw-ref rules apply to any element

i.e. span or sub.

Bug: T45094
Change-Id: Ib3fae04300c379727aad81b2c0c2a882d8657fe0
This commit is contained in:
Ed Sanders 2018-01-02 13:59:31 +00:00
parent 532a356cd7
commit fbcd9e41df
2 changed files with 12 additions and 12 deletions

View file

@ -1,7 +1,7 @@
/* CSS for Parsoid Cite extension */ /* CSS for Parsoid Cite extension */
/* Style for <ref>s */ /* Style for <ref>s */
span.mw-ref { .mw-ref {
vertical-align: super; vertical-align: super;
line-height: 1; line-height: 1;
font-size: smaller; font-size: smaller;
@ -13,35 +13,35 @@ span.mw-ref {
/* stylelint-disable value-keyword-case */ /* stylelint-disable value-keyword-case */
/* With a group set */ /* With a group set */
span.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 */
span.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 ) ']';
} }
span.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 ) ']';
} }
span.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 ) ']';
} }
span.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 ) ']';
} }
span.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 ) ']';
} }
span.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 ) ']';
} }
span.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!' ) ) ']';
} }
/* Without a group */ /* Without a group */
span.mw-ref a:after { .mw-ref a:after {
content: '[' counter( mw-Ref, decimal ) ']'; content: '[' counter( mw-Ref, decimal ) ']';
} }

View file

@ -4,12 +4,12 @@
/* stylelint-disable value-keyword-case */ /* stylelint-disable value-keyword-case */
/* <ref>s with a group */ /* <ref>s with a group */
span.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 ) ']';
} }
/* <ref>s without a group */ /* <ref>s without a group */
span.mw-ref a:after { .mw-ref a:after {
content: '[' counter( mw-Ref, persian ) ']'; content: '[' counter( mw-Ref, persian ) ']';
} }