mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-30 00:55:00 +00:00
d3c706ff93
Since I0f0a826c in Parsoid, numbered external links are now empty <a rel="mw:ExtLink"></a> tags. This means we have to put in a node type for them to prevent them from being considered empty annotations and getting converted to alienMeta. MWNumberedExternalLinkNode is protected and focusable to avoid making the link text (which isn't editable) clickable. It isn't inspectable yet, we need to work on that. Bug: 53505 Change-Id: I83f69695f3974089e51a84e799f31ab6ed879e05
81 lines
1.5 KiB
CSS
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;
|
|
}
|
|
|
|
.ve-ce-mwNumberedExternalLinkNode a:empty:after {
|
|
content: "[" counter(ve-ce-mwNumberedExternalLinkNode) "]";
|
|
counter-increment: ve-ce-mwNumberedExternalLinkNode;
|
|
} |