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

@import (reference) '../../styles/variables';

:root {
	--anl-color-new-line: var(--color-border);
	--anl-handle-size: 20px;
	--anl-handle-offset: calc(100% - var(--anl-handle-size));
}

.jodit-add-new-line {
	position: fixed;
	z-index: 1;
	top: 0;
	display: block;
	height: 1px;
	box-sizing: border-box;
	outline: none;

	* {
		box-sizing: border-box;
	}

	&::after {
		display: block;
		width: 100%;
		height: 1px;
		background-color: var(--anl-color-new-line);
		content: '';
	}

	span {
		position: absolute;
		left: var(--anl-handle-offset);
		top: 0;
		transform: translateY(-50%);
		display: flex;
		width: var(--anl-handle-size);
		height: var(--anl-handle-size);
		align-items: center;
		justify-content: center;
		border: 1px solid var(--anl-color-new-line);
		background: var(--color-background-button-hover-opacity30);
		cursor: pointer;

		&:hover {
			background: var(--color-background-button-hover);
		}
	}

	svg {
		width: calc(var(--anl-handle-size) / 2);
		fill: var(--anl-color-new-line);
	}
}

.jodit-source__mode {
	.jodit-add-new-line {
		display: none !important;
	}
}
