
#colors-menu {
	right: 200px;
	width: 48px;
	display: flex;
	justify-content: flex-start;
	flex-direction: column;
	list-style-type: none;
	top: 48px;
	bottom: 0;
	padding: 0;
	margin: 0;
	background-color: $basecolor;
	box-sizing: border-box;
	position: fixed;
	z-index: 1120;

	li {
		width: 48px;
		flex-basis: 48px;

		&:not(.noshrink) {
			flex-grow: 1;
		}
		&.noshrink {
			flex-grow: 0;
			flex-shrink: 0;
		}
	}
}



//added when the color is a duplicate of another
#duplicate-color-warning {
	display: inline-block;
	visibility: hidden;
	margin-left: 5px;
	opacity: 0.75;
	cursor: help;
	&:hover {
		opacity: 0.9;
	}
}



//floating button to open jscolor picker
.color-edit-button {
	position: absolute;
	top: 3px;
	left: 0px;
	background: $basecolor;
	padding: 6px 10px 3px 6px;
	border-radius: 4px 0 0 4px;
	cursor: pointer;
	transition: left 0.25s;
	z-index: -1;
	box-shadow: 0px 15px 15px 0px rgba(0, 0, 0, 0.2);
	path {
		fill: $baseicon;
	}
	&:hover {
		background: $basehover;
		path {
			fill: $basehovericon;
		}
	} //class added when jscolor is opened
	&.hidden {
		left: 0px !important;
	}
}



#colors-menu li {
	position: relative;
}


#colors-menu li:hover .color-edit-button {
	display: block;
	left: -32px;
}

#colors-menu li.selected:hover .color-edit-button {
	display: block;
	left: -35px;
}


#colors-menu li button {
	height: 100%;
	display: block;
}


.color-value {
	display: none;
}

#add-color-button {
	background: $basecolor;

	path {
		fill: #6f6873;
	}
}


#colors-menu li {
	button {
		border: none;
		width: 100%;
		cursor: url('/pixel-editor/eyedropper.png'), auto;
	} //white outline
	&.selected button::before {
		content: "";
		display: block;
		position: absolute;
		top: -3px;
		left: -3px;
		border: solid 3px #fff;
		width: 100%;
		height: 100%;
		border-radius: 4px;
		box-shadow: 0px 0px 0px 3px rgba(0, 0, 0, 0.15);
		z-index: 10;
	} //inner outline
	&.selected button::after {
		content: "";
		display: block;
		position: absolute;
		top: 0;
		left: 0;
		border: solid 1px rgba(0, 0, 0, 0.15);
		width: 100%;
		height: 100%;
		box-sizing: border-box;
	}
}

#colors-menu li.noshrink button {
	cursor: pointer;
}


#add-color-button:hover {
	background: $basehover;
}



.jscolor-picker-bottom {
	display: none;
	position: absolute;
	left: -4px;
	right: -4px;
	bottom: -7px;
	color: $basetext;
	span {
		margin-left: 5px;
	}
	input {
		width: 64px;
		background: $indent;
		color: $indenttext;
		border-radius: 4px;
		border: none;
		margin: 0;
		padding: 3px 12px;
		margin-left: 5px;
	}
}


.delete-color-button {
	background: none;
	padding: 0px;
	border: none;
	text-align: center;
	cursor: pointer;
	float: right;
	path {
		fill: $baseicon;
	}
	&:hover path {
		fill: $basehovericon;
	}
	&.disabled {
		cursor: not-allowed;
		& path {
			fill: lighten($basecolor, 10%) !important;
		}
	}
}