/*
Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

/*
mainui.css (part of editor.css)
=================================

This file styles the basic structure of the CKEditor user interface - the box
that holds everything.

CKEditor offers two main editing modes. The main UI blocks that compose these
modes are:

	For "Theme UI" mode, the one most generally used:

	+-- .cke_chrome ----------------------+
	|+-- .cke_inner ---------------------+|
	|| +-- .cke_top -------------------+ ||
	|| |                               | ||
	|| +-------------------------------+ ||
	|| +-- .cke_contents --------------+ ||
	|| |                               | ||
	|| +-------------------------------+ ||
	|| +-- .cke_bottom ----------------+ ||
	|| |                               | ||
	|| +-------------------------------+ ||
	|+-----------------------------------+|
	+-------------------------------------+

	For "Inline Editing" mode:

	+-- .cke_chrome .cke_float------------+
	|+-- .cke_inner ---------------------+|
	|| +-- .cke_top -------------------+ ||
	|| |                               | ||
	|| +-------------------------------+ ||
	|+-----------------------------------+|
	+-------------------------------------+

Special outer level classes used in this file:

	.cke_hc: Available when the editor is rendered on "High Contrast".

*/

/* The outer boundary of the interface. */
.cke_chrome
{
	/* This is <span>, so transform it into a block.*/
	display: block;

	/* Rounded borders. */
	border-radius: 5px;
	border: 1px solid #D3D3D3;

	/* Spacing between the outer and the inner boundaries. */
	padding: 5px;
}

.cke_hc.cke_chrome
{
	/* In HC, we don't have a visible inner border so we reduce the spacing a bit.*/
	padding: 2px;
}

/* The inner boundary of the interface. */
.cke_inner
{
	/* This is <span>, so transform it into a block.*/
	display: block;

	/* Rounded borders. */
	-webkit-touch-callout: none;
	border-radius: 5px;

	/* The white-to-color gradiend we see at the top of the editor. */
	background: #d3d3d3 url(images/sprites.png) repeat-x 0 -1950px;
	background: linear-gradient(to bottom, #fff -15px, #d3d3d3 40px);

	/* Spacing with the inner blocks. */
	padding: 5px;
}

/* Added to the outer boundary of the UI when in inline editing,
   when the UI is floating. */
.cke_float
{
	/* Make white the space between the outer and the inner borders. */
	background: #fff;
}

.cke_float .cke_inner
{
	/* As we don't have blocks following top (toolbar) we suppress the padding
	   as the toolbar defines its own margin. */
	padding-bottom: 0;
}

/* The "contents" block of the UI. */
.cke_hc .cke_contents
{
	/* Show the editing area border in HC as we have no colors. */
	border: 1px solid black;
}


/* Make the main spaces enlarge to hold potentially floated content. */
.cke_top,
.cke_contents,
.cke_bottom
{
	/* These are <span>s, so transform them into blocks.*/
	display: block;

	/* Ideally this should be "auto", but it shows scrollbars in IE7. */
	overflow: hidden;
}

/* Allow breaking toolbars when in a narrow editor. (#9947) */
.cke_top
{
	white-space: normal;
}

/* On iOS we need to manually enable scrolling in the contents block. (#9945) */
.cke_browser_ios .cke_contents
{
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* The resizer is the small UI element that is rendered at the bottom right
   part of the editor. It makes is possible to resize the editor UI. */
.cke_resizer
{
	/* To avoid using images for the resizer, we create a small triangle,
	   using some CSS magic. */
	width: 0;
	height: 0;
	overflow: hidden;
	border-width: 12px 12px 0 12px;
	border-color: transparent #EFEFEF transparent transparent;
	border-style: dashed solid dashed dashed;	/* dashed is for HC mode */
	margin: 10px 0 0;
	font-size: 0;

	float: right;
	vertical-align: bottom;

	cursor: se-resize;
	opacity: 0.8;
}

.cke_resizer_ltr
{
	margin-left: -12px;
}

/* This class is added in RTL mode. This is a special case for the resizer
   (usually the .cke_rtl class is used), because it may not necessarily be in
   RTL mode if the main UI is RTL. It depends instead on the context where the
   editor is inserted on. */
.cke_resizer_rtl
{
	float: left;
	border-color: transparent transparent transparent #EFEFEF;
	border-style: dashed dashed dashed solid;	/* dashed is for HC mode */
	margin-right: -12px;

	cursor: sw-resize;
}

/* For now, we avoid showing the resizer on HC becuase it can't be rendered
   properly. */
.cke_hc .cke_resizer
{
	width: 10px;
	height: 10px;
	border: 1px solid #fff;
	margin-left: 0;
}

.cke_hc .cke_resizer_rtl
{
	margin-right: 0;
}

/* The editing area (where users type) can be rendered as an editable <div>
   element (e.g. divarea plugin). In that case, this is the class applied to
   that element. */
.cke_wysiwyg_div
{
	display: block;
	height: 100%;
	overflow: auto;
	padding: 0 8px;
	outline-style: none;

	box-sizing: border-box;
}
