mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-30 13:46:54 +00:00
0d30e1e77d
VisualEditor.php * Add CSS file ve.ce.MWMathNode.js * Wrap the image in a span, so GenerateContentNode doesn't try to nest an image inside an image * Remove unnecessary attribute setting * Only pass unwrapped image to deferred.resolve * Retrigger MathJax rendering ve.ce.Node.css * Use inline-block for image wrapper ve.dm.MWMathNode.js * Mixin GeneratedContentNode and implement getHash * Copy over functionality of MWTransclusionNode: + Just store data-mw for attributes + Store orignal(DomElement|MW|Index) for selser ve.init.mw.ViewPageTarget.js * Add mwMath to the toolbar ve.ui.MWMathInspector.js * Remove static.InputWidget, not required in this architecture * Use multiline TextInputWidget * Only update mw attribute * Allow creation of new math nodes ve.ui.MWInspector.css * Set height of TextInputWidget Change-Id: I520f8ccc9f89a2ce70aa1d9e02ed0c6cacbecc2f
56 lines
1.1 KiB
CSS
56 lines
1.1 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 strong.error,
|
|
.ve-ce-mwTransclusionNode span.error,
|
|
.ve-ce-mwTransclusionNode p.error,
|
|
.ve-ce-mwTransclusionNode div.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.MWMathNode */
|
|
|
|
.ve-ce-mwMathNode {
|
|
display: inline-block;
|
|
}
|