From fbcd9e41dfc3edfcb6f7b6735695c4450f5de8c0 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Tue, 2 Jan 2018 13:59:31 +0000 Subject: [PATCH] Allow mw-ref rules apply to any element i.e. span or sub. Bug: T45094 Change-Id: Ib3fae04300c379727aad81b2c0c2a882d8657fe0 --- modules/ext.cite.style.css | 20 ++++++++++---------- modules/ext.cite.style.fa.css | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/modules/ext.cite.style.css b/modules/ext.cite.style.css index 0fc4f1b50..6e7e4f03a 100644 --- a/modules/ext.cite.style.css +++ b/modules/ext.cite.style.css @@ -1,7 +1,7 @@ /* CSS for Parsoid Cite extension */ /* Style for s */ -span.mw-ref { +.mw-ref { vertical-align: super; line-height: 1; font-size: smaller; @@ -13,35 +13,35 @@ span.mw-ref { /* stylelint-disable value-keyword-case */ /* 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 ) ']'; } /* 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 ) ']'; } -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 ) ']'; } -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 ) ']'; } -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 ) ']'; } -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 ) ']'; } -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 ) ']'; } -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!' ) ) ']'; } /* Without a group */ -span.mw-ref a:after { +.mw-ref a:after { content: '[' counter( mw-Ref, decimal ) ']'; } diff --git a/modules/ext.cite.style.fa.css b/modules/ext.cite.style.fa.css index 0ce01a000..3cec4601d 100644 --- a/modules/ext.cite.style.fa.css +++ b/modules/ext.cite.style.fa.css @@ -4,12 +4,12 @@ /* stylelint-disable value-keyword-case */ /* 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 ) ']'; } /* s without a group */ -span.mw-ref a:after { +.mw-ref a:after { content: '[' counter( mw-Ref, persian ) ']'; }