Copy external link numbering from content.parsoid.less

Change-Id: I308d06ada35e63d81db8d034717f650d54aafc78
This commit is contained in:
Ed Sanders 2017-11-10 15:33:55 +00:00 committed by Jdlrobson
parent 4d17797186
commit 8dd2544c0e
1 changed files with 12 additions and 0 deletions

View File

@ -51,3 +51,15 @@ a {
background: none !important;
padding: 0 !important;
}
// Numbered external links, copied from content.parsoid.less
// TODO: Separate theme-agnostic rules from that module
// so we can load it here.
.mw-parser-output {
counter-reset: mw-numbered-ext-link;
a[rel~='mw:ExtLink']:empty:after {
content: '[' counter( mw-numbered-ext-link ) ']';
counter-increment: mw-numbered-ext-link;
}
}