/* 
	SketchAPI Basic Color Picker 
	-------------------------------------------------------------------
*/
#ColorPicker {
	text-shadow: 1px 1px 1px #000;
	color:#AAA;
	cursor:default;
	font-family:'arial',helvetica,sans-serif;
	padding:0px 0 15px;
	position:relative;
	z-index: 100;
}
#ColorPicker br {
	clear:both;
	margin:0;
	padding:0;
}
#ColorPicker input.hexInput:hover,
#ColorPicker input.hexInput:focus {
	color: #FFD000
}
#ColorPicker input.hexInput {
    outline: none;
	transition-property: color;
	transition-duration: .25s;
	background: none;
	border: 0;
	margin: 0;
	font-family: courier, monospace;
	font-size: 20px;
	position: relative;
	padding: 0 0 0 5px;
	left: 2px;
	top: -2px;
	width: 100px;
	float:left;
	color:#fff;
	cursor: text;
}
#ColorPicker div.hexBox {
	border: 1px solid rgba(255,255,255,0.5);
	border-radius: 2px;
	background:#FFF;
	float:left;
	font-size:1px;
	height: 20px;
	margin: 0 5px 0 1px;
	width:20px;
}
#ColorPicker div.hexBox.active {
	box-shadow: 0 0 3px 2px rgba(255,255,255,1);
	border: 1px solid rgba(0,0,0,1);	
}
#ColorPicker div.hexBox div {
	width: inherit;
	height: inherit;
}
#ColorPicker div.hexClose {
	transform: scale(1, 0.75);
	transition-property: color;
	transition-duration: .25s;
	color: #fff; 
	float: right;
	position: relative;
	top: -3px;
	left: 0;
	padding-right: 8px;
	font-size: 20px;
	color: #666;
	cursor: pointer;
}
#ColorPicker div.hexClose:hover {
	text-shadow: 0 0 20px #fff;
	color: #FF3DBD;
}
#ColorPicker .icon-eyedropper {
	transition-property: color;
	transition-duration: .25s;
	color: #bbb; 
	font-size: 20px; 
	padding: 3px; 
	position: relative; 
	top: 1px; 
	left: -10px;
	line-height: 18px;
	float: right; 
	cursor: pointer;
}
#ColorPicker .icon-eyedropper:hover {
	color: #71B8DA;
}
#ColorPicker canvas {
	position: relative;
	top: 4px;
}




#ColorPicker {
	padding: 10px 10px 20px;
	-webkit-user-select: none;
	-webkit-animation-name: heartbeat-out;
	-webkit-animation-duration: 200ms;
	-webkit-animation-iteration-count: 2;
	-webkit-animation-timing-function: linear;
	-webkit-transform-origin:50% 50%;
	transition-property: opacity;
	transition-duration: .25s;
	font-size: 14px;
	width: 252px;
	position: fixed;
	top: 50px;
	left: 400px;
	z-index: 100;
	background: #0d0d0d;
	background: -webkit-gradient(linear, left top, left 250, from(#444), color-stop(0.1, #222), to(#222));
	background: -moz-linear-gradient(top, #444 0px, #222 25px, #222 250px);
	box-shadow: 0 0 10px rgba(0,0,0,1);
	text-shadow: 1px 1px 1px #000;
	border: 1px solid rgba(0,0,0,0.5);
	border-top: 1px solid rgba(255,255,255,0.35);
	border-radius: 3px;
	cursor: default;
	display: none;
	opacity: 0;
}
@-webkit-keyframes heartbeat {
	0% { -webkit-transform: scale(0); }
	100% { -webkit-transform: scale(1); }
}
@-webkit-keyframes heartbeat-blink {
	0% { -webkit-transform: scale(1); }
	50% { -webkit-transform: scale(0.94); }
	100% { -webkit-transform: scale(1); }
}
@-webkit-keyframes heartbeat-out {
	0% { -webkit-transform: scale(1); }
	100% { -webkit-transform: scale(1.5); }
}
#ColorPicker.opened, #ColorPicker.opened {
	-webkit-animation-name: heartbeat;
	-webkit-animation-duration: 200ms;
	-webkit-animation-iteration-count: 1;
	-webkit-animation-timing-function: linear;
	-webkit-transform-origin:50% 50%;
	display: block;
	opacity: 1;
}
#ColorPicker.opened.blink, #ColorPicker.opened.blink-stall {
	-webkit-animation-name: none;
}
#ColorPicker.opened.blink, #ColorPicker.opened.blink {
	-webkit-animation-name: heartbeat-blink;
	-webkit-animation-duration: 200ms;
	-webkit-animation-iteration-count: 2;
	-webkit-animation-timing-function: linear;
	-webkit-transform-origin:50% 50%;
}
#ColorPicker.closed {
	transition-property: opacity;
	transition-duration: 0.25s;
	display: block;
	opacity: 0;
}
#ColorPicker:hover, #ColorPicker:hover {
	opacity: 1;
}