2013-07-03 01:30:10 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor ContentEditable MediaWiki Node styles.
|
|
|
|
*
|
2014-01-05 12:05:05 +00:00
|
|
|
* @copyright 2011-2014 VisualEditor Team and others; see AUTHORS.txt
|
2013-07-03 01:30:10 +00:00
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
2013-12-03 22:09:56 +00:00
|
|
|
/*csslint regex-selectors:false, overqualified-elements:false */
|
2013-07-03 01:30:10 +00:00
|
|
|
|
|
|
|
/* ve.ce.MWTransclusionNode */
|
|
|
|
|
|
|
|
.ve-ce-mwTransclusionInlineNode {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
2013-07-10 21:29:02 +00:00
|
|
|
/* HACK: Hide Ref errors in templates */
|
2013-07-14 14:41:05 +00:00
|
|
|
.ve-ce-mwTransclusionNode .mw-ext-cite-error {
|
2013-07-10 21:29:02 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2013-07-16 16:14:58 +00:00
|
|
|
/* HACK: Fake superscript style for references generated as spans in templates */
|
|
|
|
.ve-ce-mwTransclusionNode span.reference {
|
|
|
|
vertical-align: super;
|
|
|
|
font-size: smaller;
|
|
|
|
}
|
|
|
|
|
2013-07-03 01:30:10 +00:00
|
|
|
/* 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;
|
|
|
|
}
|
2013-07-19 22:30:29 +00:00
|
|
|
|
2013-08-30 21:04:29 +00:00
|
|
|
/* ve.ce.MWBlockImageNode */
|
2013-12-18 21:22:41 +00:00
|
|
|
|
|
|
|
figure[typeof*='mw:Image'] {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
figure[typeof*='mw:Image'] a {
|
|
|
|
border: 0;
|
2013-11-01 06:13:09 +00:00
|
|
|
}
|
2013-08-30 21:04:29 +00:00
|
|
|
|
2013-12-18 21:22:41 +00:00
|
|
|
/* TODO: Merge with div.tright styles */
|
2013-12-31 14:43:44 +00:00
|
|
|
/* Due to a weird cssjanus bug, noflip rules
|
|
|
|
are set as single-rules rather than for the
|
|
|
|
whole class */
|
2013-11-01 06:13:09 +00:00
|
|
|
figure[typeof*='mw:Image'].mw-halign-right {
|
2013-12-31 14:43:44 +00:00
|
|
|
/* @noflip */
|
2013-11-01 06:13:09 +00:00
|
|
|
clear: right;
|
2013-12-31 14:43:44 +00:00
|
|
|
/* @noflip */
|
2013-11-01 06:13:09 +00:00
|
|
|
float: right;
|
2013-12-31 14:43:44 +00:00
|
|
|
/* @noflip */
|
2013-12-18 21:22:41 +00:00
|
|
|
margin: .5em 0 1.3em 1.4em;
|
2013-11-01 06:13:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
figure[typeof*='mw:Image'].mw-halign-center {
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
|
2013-12-18 21:22:41 +00:00
|
|
|
/* TODO: Merge with div.tleft styles */
|
2013-12-31 14:43:44 +00:00
|
|
|
/* Due to a weird cssjanus bug, noflip rules
|
|
|
|
are set as single-rules rather than for the
|
|
|
|
whole class */
|
2013-11-01 06:13:09 +00:00
|
|
|
figure[typeof*='mw:Image'].mw-halign-left {
|
2013-12-31 14:43:44 +00:00
|
|
|
/* @noflip */
|
2013-11-01 06:13:09 +00:00
|
|
|
clear: left;
|
2013-12-31 14:43:44 +00:00
|
|
|
/* @noflip */
|
2013-11-01 06:13:09 +00:00
|
|
|
float: left;
|
2013-12-31 14:43:44 +00:00
|
|
|
/* @noflip */
|
2013-12-18 21:22:41 +00:00
|
|
|
margin: .5em 1.4em 1.3em 0;
|
2013-11-01 06:13:09 +00:00
|
|
|
}
|
|
|
|
|
2013-12-18 21:22:41 +00:00
|
|
|
/* TODO: Merge with div.thumbinner styles */
|
2013-11-01 06:13:09 +00:00
|
|
|
figure[typeof='mw:Image/Thumb'], figure[typeof='mw:Image/Frame'] {
|
2013-12-18 21:22:41 +00:00
|
|
|
background-color: #f9f9f9;
|
|
|
|
border: 1px solid #cccccc;
|
2013-11-01 06:13:09 +00:00
|
|
|
padding: 3px !important;
|
2013-12-18 21:22:41 +00:00
|
|
|
overflow: hidden;
|
|
|
|
font-size: 94%;
|
|
|
|
text-align: center;
|
2013-11-01 06:13:09 +00:00
|
|
|
}
|
|
|
|
|
2013-12-18 21:22:41 +00:00
|
|
|
/* TODO: Merge with .thumbimage styles */
|
|
|
|
figure[typeof*='mw:Image'] .ve-ce-mwBlockImageNode-thumbimage {
|
2013-11-01 06:13:09 +00:00
|
|
|
border: 1px solid #cccccc;
|
2013-08-30 21:04:29 +00:00
|
|
|
}
|
|
|
|
|
2013-08-07 05:21:10 +00:00
|
|
|
/* ve.ce.MWAlienExtensionNode */
|
|
|
|
|
|
|
|
.ve-ce-mwAlienExtensionNode {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
2013-07-19 22:30:29 +00:00
|
|
|
/* ve.ce.MWMathNode */
|
|
|
|
|
|
|
|
.ve-ce-mwMathNode {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
2013-08-03 14:41:22 +00:00
|
|
|
|
|
|
|
/* ve.ce.MWHieroNode */
|
|
|
|
|
|
|
|
.ve-ce-mwHieroNode {
|
|
|
|
display: table;
|
|
|
|
}
|
2013-10-17 20:15:36 +00:00
|
|
|
|
|
|
|
/* ve.ce.MWNumberedExternalLinkNode */
|
|
|
|
|
|
|
|
.ve-ce-surface {
|
2013-12-18 21:22:41 +00:00
|
|
|
counter-reset: ve-ce-mwNumberedExternalLinkNode;
|
2013-10-17 20:15:36 +00:00
|
|
|
}
|
|
|
|
|
2013-11-22 17:01:32 +00:00
|
|
|
a[rel~="mw:ExtLink"]:empty:after {
|
2013-12-18 21:22:41 +00:00
|
|
|
content: "[" counter(ve-ce-mwNumberedExternalLinkNode) "]";
|
|
|
|
counter-increment: ve-ce-mwNumberedExternalLinkNode;
|
2013-12-03 22:09:56 +00:00
|
|
|
}
|