mediawiki-extensions-Visual.../modules/ve-mw/ce/styles/ve.ce.Node.css
Roan Kattouw f4bb62b9d7 Also apply autonumbering CSS to links in generated content
We had CSS that applied to our rendering of autonumbered links,
but not for raw <a rel="mw:ExtLink"></a> tags appearing in
generated content like templates.

Bug: 57420
Change-Id: Ic1585ecb1a133d16b7393ce0ce38a11b76cc2239
2013-11-26 16:53:31 +00:00

81 lines
1.5 KiB
CSS

/*!
* VisualEditor ContentEditable MediaWiki Node styles.
*
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/* ve.ce.MWTransclusionNode */
.ve-ce-mwTransclusionInlineNode {
display: inline-block;
}
/* HACK: Hide Ref errors in templates */
.ve-ce-mwTransclusionNode .mw-ext-cite-error {
display: none;
}
/* HACK: Fake superscript style for references generated as spans in templates */
.ve-ce-mwTransclusionNode span.reference {
vertical-align: super;
font-size: smaller;
}
/* ve.ce.MWReferenceListNode */
.ve-ce-mwReferenceListNode .ve-ce-generated-wrapper {
display: inline-block;
}
.ve-ce-mwReferenceListNode-muted {
font-style: italic;
color: #777;
}
/* ve-ce-mwReferenceNode */
.ve-ce-mwReferenceNode-missingref {
cursor: not-allowed;
}
/* ve.ce.MWInlineImageNode */
.ve-ce-mwInlineImageNode {
display: inline-block;
}
/* ve.ce.MWBlockImageNode */
.ve-ce-mwBlockImageNode-inner {
display: inline-block;
}
/* ve.ce.MWAlienExtensionNode */
.ve-ce-mwAlienExtensionNode {
display: inline-block;
}
/* ve.ce.MWMathNode */
.ve-ce-mwMathNode {
display: inline-block;
}
/* ve.ce.MWHieroNode */
.ve-ce-mwHieroNode {
display: table;
}
/* ve.ce.MWNumberedExternalLinkNode */
.ve-ce-surface {
counter-reset: ve-ce-mwNumberedExternalLinkNode;
}
a[rel~="mw:ExtLink"]:empty:after {
content: "[" counter(ve-ce-mwNumberedExternalLinkNode) "]";
counter-increment: ve-ce-mwNumberedExternalLinkNode;
}