/* context menu style */
/* ------------------------------------------------------------------------- */

.Context
{
	--click_x: 0; /* this is dynamically set to click position */
	--click_y: 0;
	--border_hor: 1px;
	--padding_hor: 5px;
	--padding_ver: 20px;
	--float: left;
	display: none;
	position: absolute;
	top: var(--click_y);
	left: var(--click_x);
	overflow: visible;
	width: max-content;
	border-left: solid var(--border_hor);
	padding-top: var(--padding_ver);
	padding-left: var(--padding_hor);
}
.Context.Right /* menu close to right border => draw left from cursor */
{
	--float: right;
	left: unset;
	right: calc(100% - var(--click_x) - 1px);
	border-left: unset;
	border-right: solid var(--border_hor);
	padding-left: unset;
	padding-right: var(--padding_hor);
}
.Context.Bottom /* menu close to bottom border => draw above cursor */
{
	top: unset;
	bottom: calc(100% - var(--click_y) - 1px);
	padding-top: unset;
	padding-bottom: var(--padding_ver);
}

/* ------------------------------------------------------------------------- */

.Context header
{
	font-size: 0.8em;
	font-weight: bold;
	width: min-content;
	background-color: rgba(255,255,255,0.6);
	padding: 1px 4px;
	border-radius: 4px;
	margin-bottom: 4px;
	float: var(--float);
}

.Context section
{
	margin: 4px 0px;
}

.Context button
{
	display: block;
	text-align: center;
	width: 100%;
	font-size: 0.8em;
	margin: 1px 0px;
}

/* ------------------------------------------------------------------------- */
