mediawiki-extensions-Visual.../modules/ve-mw/ce/styles/ve.ce.Node.css
Moriel Schottlender f4531e8cd1 Force CSSJanus to not flip image alignment classes
For some reason, the class-wide /*@noflip*/ on mw-halign-left and
mw-halign-right didn't 'catch' and cssjanus ended up flipping the
float directions in RTL. This fix forces noflip condition on each
of the lines separately, which seems to work.

Bug: 50910
Change-Id: I4cddce80397d821dc3cbf40ee4b4c471890d8d35
2013-12-31 09:43:44 -05:00

133 lines
2.6 KiB
CSS

/*!
* VisualEditor ContentEditable MediaWiki Node styles.
*
* @copyright 2011-2014 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 */
figure[typeof*='mw:Image'] {
margin: 0;
}
figure[typeof*='mw:Image'] a {
border: 0;
}
/* TODO: Merge with div.tright styles */
/* Due to a weird cssjanus bug, noflip rules
are set as single-rules rather than for the
whole class */
figure[typeof*='mw:Image'].mw-halign-right {
/* @noflip */
clear: right;
/* @noflip */
float: right;
/* @noflip */
margin: .5em 0 1.3em 1.4em;
}
figure[typeof*='mw:Image'].mw-halign-center {
margin-left: auto;
margin-right: auto;
}
/* TODO: Merge with div.tleft styles */
/* Due to a weird cssjanus bug, noflip rules
are set as single-rules rather than for the
whole class */
figure[typeof*='mw:Image'].mw-halign-left {
/* @noflip */
clear: left;
/* @noflip */
float: left;
/* @noflip */
margin: .5em 1.4em 1.3em 0;
}
/* TODO: Merge with div.thumbinner styles */
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;
}
/* TODO: Merge with .thumbimage styles */
figure[typeof*='mw:Image'] .ve-ce-mwBlockImageNode-thumbimage {
border: 1px solid #cccccc;
}
/* 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;
}