From 8412fb6406d8e3afcbdcbd3599f47c83d47b131b Mon Sep 17 00:00:00 2001 From: Subramanya Sastry Date: Tue, 7 Feb 2023 17:51:57 -0600 Subject: [PATCH] Parsoid CSS: Remove default rendering for "standard" ref groups * This was obviously a mistake for 'decimal' since the previous CSS would have rendered refs with the "decimal" group and refs without any group identically making it hard to distinguish between the two ref types. * But, not all wikis define custom messages for these "standard" ref groups. So, by providing default rendering for these, we would need custom overrides for wikis that didn't define them (the vast majority). Instead, for wikis that define them, define wiki-specific CSS for these groups that can be added to their Common.css pages. * Discovered as I set about trying to update CSS on wikis and my test wikitext with different groups were rendering decimal groups differently and I had no custom CSS for it anywhere. Bug: T86782 Change-Id: I5598580e96eead94bb09574b2af5cef3ce4241c5 --- modules/ext.cite.style.css | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/modules/ext.cite.style.css b/modules/ext.cite.style.css index a21fde98e..a9f37e907 100644 --- a/modules/ext.cite.style.css +++ b/modules/ext.cite.style.css @@ -12,35 +12,6 @@ content: '[' attr( data-mw-group ) ' ' counter( mw-Ref, decimal ) ']'; } -/* Groups with special appearance */ -.mw-ref a[ data-mw-group='decimal' ]:after { - content: '[' counter( mw-Ref, decimal ) ']'; -} - -.mw-ref a[ data-mw-group='lower-alpha' ]:after { - content: '[' counter( mw-Ref, lower-alpha ) ']'; -} - -.mw-ref a[ data-mw-group='upper-alpha' ]:after { - content: '[' counter( mw-Ref, upper-alpha ) ']'; -} - -.mw-ref a[ data-mw-group='lower-greek' ]:after { - content: '[' counter( mw-Ref, lower-greek ) ']'; -} - -.mw-ref a[ data-mw-group='lower-roman' ]:after { - content: '[' counter( mw-Ref, lower-roman ) ']'; -} - -.mw-ref a[ data-mw-group='upper-roman' ]:after { - content: '[' counter( mw-Ref, upper-roman ) ']'; -} - -.mw-ref a[ data-mw-group='error-test' ]:after { - content: '[' counter( mw-Ref, symbols( cyclic 'first' 'second' 'last!' ) ) ']'; -} - /* Without a group */ .mw-ref a:after { content: '[' counter( mw-Ref, decimal ) ']';