From 50b57f017a6e42ff9b1cef4daeb77fee3b3a870e Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Tue, 24 May 2016 13:48:46 +0100 Subject: [PATCH] Update stylelint config version and make a pass Change-Id: Ice5bcec27ae98dcbcb246ae166ed8f04e07dc099 --- modules/ext.cite.style.css | 32 ++++++++++++++++---------------- modules/ext.cite.style.fa.css | 6 +++--- package.json | 2 +- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/modules/ext.cite.style.css b/modules/ext.cite.style.css index 55f3e4fa9..a72829847 100644 --- a/modules/ext.cite.style.css +++ b/modules/ext.cite.style.css @@ -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; } diff --git a/modules/ext.cite.style.fa.css b/modules/ext.cite.style.fa.css index d7107e335..85633a605 100644 --- a/modules/ext.cite.style.fa.css +++ b/modules/ext.cite.style.fa.css @@ -1,15 +1,15 @@ /* Farsi Cite CSS */ /* 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 ) ']'; } /* s without a group */ -span.mw-ref a::after { +span.mw-ref a:after { content: '[' counter( mw-Ref, persian ) ']'; } /* Linkbacks from to s */ -span[rel='mw:referencedBy'] a::before { +span[rel='mw:referencedBy'] a:before { content: counters( mw-ref-linkback, '٫', persian ); } diff --git a/package.json b/package.json index 7ff85931d..6aaf95ef0 100644 --- a/package.json +++ b/package.json @@ -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" } }