/*!
 * VisualEditor ContentEditable Surface styles.
 *
 * @copyright 2011-2015 VisualEditor Team and others; see http://ve.mit-license.org
 */

.ve-ce-surface {
	/* Create a new stacking context for elements inside the surface */
	position: relative;
	z-index: 0;
	/*
	Remember, don't set font-size here.
	Should be inherited from the VE target container.
	*/
}

/* @noflip */
.ve-ce-surface-deactivatedSelection {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0.5;
	pointer-events: none;
}

.ve-ce-surface-deactivatedSelection > div {
	position: absolute;
	background: #6da9f7;
	margin-top: -0.15em;
	padding: 0.15em 0;
}

/* Set opacity directly on the highlights, rather than their containers,
   otherwise the opacity isn't applied at all */
.ve-init-target-ie .ve-ce-surface-deactivatedSelection > div {
	opacity: 0.5;
}

/* @noflip */
.ve-ce-surface-highlights {
	position: absolute;
	top: 0;
	left: 0;
}

.ve-ce-surface-dropMarker {
	height: 1px;
	background: #999;
	pointer-events: none;
	position: absolute;
}

.ve-ce-surface-paste {
	position: fixed;
	/* Hack: Stop the viewport scrolling when the paste target is typed into */
	top: 3em;
	left: 0;
	/* Try to avoid wrapping by not setting a width because of https://code.google.com/p/chromium/issues/detail?id=318925 */
	height: 1px;
	opacity: 0;
	overflow: hidden;
}

.ve-ce-surface-paste * {
	height: 1px !important;
}

/* Prevent IE from wrapping link text in <u> and <font color> tags */
.ve-init-target-ie .ve-ce-surface-paste a {
	text-decoration: underline !important;
	color: #0066cc;
}

/* MediaWiki PHP Parser does not wrap text inside image captions in <p> but we do (cause we have to).
 * Let's make those <p> looks like they are not there by proper CSS styling.
 */
/*csslint overqualified-elements:false */
.ve-ce-surface .thumbcaption p.ve-ce-generated-wrapper {
	display: inline;
	padding: 0;
	line-height: inherit;
}

.ve-ce-surface .thumbcaption .ve-ce-branchNode-slug {
	display: none;
}

.ve-ce-cursorHolder {
	position: absolute;
	width: 0;
	height: 0;
}

.ve-ce-cursorHolder-img {
	width: 0;
	height: 0;
}
