//	=================
//    	Imports
//	=================

@import '../../assets/base/color_variables';   	// Color Variables
@import '../../assets/base/fonticons';   			// Fonticons Variables
@import '../../assets/base/urls';   				// URLS Variables
@import '../../assets/base/utilities_variables';  // Utilities Variables

/*!
 * Colorpicker for Bootstrap
 *
 * Copyright 2017 Stefan Petre
 * Licensed under the Apache License v2.0
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 */
.clearfix {
	*zoom: 1;
	&:before {
		display: table;
		content: "";
		line-height: 0;
	}
	&:after {
		display: table;
		content: "";
		line-height: 0;
		clear: both;
	}
}
.colorpicker-saturation {
	width: 100px;
	height: 100px;
	background-image: $url_25;
	cursor: crosshair;
	float: $align-left;
	i {
		display: block;
		height: 5px;
		width: 5px;
		border: $b-width-1 $solid $black;
		position: $pos-abs;
		top: 0;
		left: 0;
		margin: -4px 0 0 -4px;
		b {
			display: block;
			height: 5px;
			width: 5px;
			border: $b-width-1 $solid $white;
		}
	}
}
.colorpicker-hue {
	width: 15px;
	height: 100px;
	float: $align-left;
	cursor: row-resize;
	margin-left: 4px;
	margin-bottom: 4px;
	background-image: $url_26;
	i {
		display: block;
		height: 1px;
		background: $black;
		border-top: 1px $solid $white;
		position: $pos-abs;
		top: 0;
		left: 0;
		width: 100%;
		margin-top: -1px;
	}
}
.colorpicker-alpha {
	width: 15px;
	height: 100px;
	float: $align-left;
	cursor: row-resize;
	margin-left: 4px;
	margin-bottom: 4px;
	background-image: $url_27;
	display: none;
	i {
		display: block;
		height: 1px;
		background: $black;
		border-top: $b-width-1 $solid $white;
		position: $pos-abs;
		top: 0;
		left: 0;
		width: 100%;
		margin-top: -1px;
	}
}
.colorpicker {
	*zoom: 1;
	top: 0;
	left: 0;
	padding: 4px;
	min-width: 120px;
	margin-top: 1px;
	&:before {
		display: table;
		content: "";
		line-height: 0;
		content: '';
		display: inline-block;
		border-left: $b-width-7 $solid $color_none;
		border-right: $b-width-7 $solid $color_none;
		border-bottom: $b-width-7 $solid $color_103;
		border-bottom-color: $color_243;
		position: $pos-abs;
		top: -7px;
		left: 6px;
	}
	&:after {
		display: table;
		content: "";
		line-height: 0;
		clear: both;
		content: '';
		display: inline-block;
		border-left: $b-width-6 $solid $color_none;
		border-right: $b-width-6 $solid $color_none;
		border-bottom: $b-width-6 $solid $white;
		position: $pos-abs;
		top: -6px;
		left: 7px;
	}
	div {
		position: $pos-rel;
	}
}
.colorpicker.alpha {
	min-width: 140px;
	.colorpicker-alpha {
		display: block;
	}
}
.colorpicker-color {
	height: 10px;
	margin-top: $m-5;
	clear: both;
	background-image: $url_27;
	background-position: 0 100%;
	div {
		height: 10px;
	}
}
.input-group.color {
	.input-group-addon {
		i {
			display: block;
			cursor: pointer;
			width: 16px;
			height: 16px;
		}
	}
}
