mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-16 19:09:29 +00:00
e3308b0bd9
Adding @noflip to align-left and align-right in the <figure> css styling rules and removing the need to resize the Branch Node div element on center. Change-Id: Iec6e589ba9ecdf32c1a0934b9eb05ee3fd42af66
120 lines
2.2 KiB
CSS
120 lines
2.2 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
|
|
*/
|
|
/*csslint regex-selectors:false, overqualified-elements:false */
|
|
|
|
/* 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 {
|
|
margin: 5px;
|
|
}
|
|
|
|
/* @noflip */
|
|
figure[typeof*='mw:Image'].mw-halign-right {
|
|
clear: right;
|
|
float: right;
|
|
}
|
|
|
|
figure[typeof*='mw:Image'].mw-halign-center {
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
/* @noflip */
|
|
figure[typeof*='mw:Image'].mw-halign-left {
|
|
clear: left;
|
|
float: left;
|
|
}
|
|
|
|
figure[typeof='mw:Image/Thumb'], figure[typeof='mw:Image/Frame'] {
|
|
background-color: #f9f9f9;
|
|
border: 1px solid #cccccc;
|
|
padding: 3px !important;
|
|
overflow: hidden;
|
|
font-size: 94%;
|
|
text-align: center;
|
|
}
|
|
|
|
figure[typeof*='mw:Image'] figcaption {
|
|
border: medium none;
|
|
font-size: 94%;
|
|
line-height: 1.4em;
|
|
padding: 3px !important;
|
|
}
|
|
|
|
figure[typeof*='mw:Image'] img {
|
|
border: 1px solid #cccccc;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
/* 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;
|
|
}
|