/*!
 * Jodit Editor (https://xdsoft.net/jodit/)
 * Released under MIT see LICENSE.txt in the project root for license information.
 * Copyright (c) 2013-2020 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
 */

@import (reference) './variables';

.jodit-wysiwyg {
	outline: 0;

	&::selection,
	*::selection {
		background: @color-background-selection;
		color: @color-dark;
	}
}

.jodit-container:not(.jodit_inline) .jodit-wysiwyg {
	margin: 0;
	padding: 8px;
	outline: 0;
	overflow-x: auto;
	position: relative;

	img {
		position: relative;
		max-width: 100%;
	}

	// It is custom tag
	jodit-media {
		position: relative;

		* {
			position: relative;
			z-index: 0;
		}

		&::before {
			z-index: 1;
			content: '';
			position: absolute;
			top: 0;
			left: 0;
			right: 0;
			bottom: 0;
		}
	}
}
