Subversion Repositories Integrator Subversion

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 espaco 1
/*!
2
 * Colorpicker for Bootstrap
3
 *
4
 * Copyright 2012 Stefan Petre
5
 * Licensed under the Apache License v2.0
6
 * http://www.apache.org/licenses/LICENSE-2.0
7
 *
8
 */
9
 
10
.colorpicker-saturation {
11
	width: 100px;
12
	height: 100px;
13
	background-image: url(../img/saturation.png);
14
	cursor: crosshair;
15
	float: left;
16
	i {
17
		display: block;
18
		height: 5px;
19
		width: 5px;
20
		border: 1px solid #000;
21
		.border-radius();
22
		position: absolute;
23
		top: 0;
24
		left: 0;
25
		margin: -4px 0 0 -4px;
26
		b{
27
			display: block;
28
			height: 5px;
29
			width: 5px;
30
			border: 1px solid #fff;
31
			.border-radius();
32
		}
33
	}
34
}
35
.colorpicker-hue,
36
.colorpicker-alpha {
37
	width: 15px;
38
	height: 100px;
39
	float: left;
40
	cursor: row-resize;
41
	margin-left: 4px;
42
	margin-bottom: 4px;
43
	i {
44
		display: block;
45
		height: 1px;
46
		background: #000;
47
		border-top: 1px solid #fff;
48
		position: absolute;
49
		top: 0;
50
		left: 0;
51
		width: 100%;
52
		margin-top: -1px;
53
	}
54
}
55
.colorpicker-hue {
56
	background-image: url(../img/hue.png);
57
}
58
.colorpicker-alpha {
59
	background-image: url(../img/alpha.png);
60
	display:none;
61
}
62
.colorpicker {
63
	.clearfix();
64
	top: 0;
65
	left: 0;
66
	padding: 4px;
67
	min-width: 120px;
68
	margin-top: 1px;
69
	.border-radius(4px);
70
	&:before {
71
		content: '';
72
		display: inline-block;
73
		border-left:   7px solid transparent;
74
		border-right:  7px solid transparent;
75
		border-bottom: 7px solid #ccc;
76
		border-bottom-color: rgba(0,0,0,.2);
77
		position: absolute;
78
		top: -7px;
79
		left: 6px;
80
	}
81
	&:after {
82
		content: '';
83
		display: inline-block;
84
		border-left:   6px solid transparent;
85
		border-right:  6px solid transparent;
86
		border-bottom: 6px solid @white;
87
		position: absolute;
88
		top: -6px;
89
		left: 7px;
90
	}
91
	div {
92
		position: relative;
93
	}
94
	&.alpha {
95
		min-width: 140px;
96
		.colorpicker-alpha {
97
			display: block;
98
		}
99
	}
100
}
101
.colorpicker-color {
102
	height: 10px;
103
	margin-top: 5px;
104
	clear: both;
105
	background-image: url(../img/alpha.png);
106
	background-position: 0 100%;
107
	div {
108
		height: 10px;
109
	}
110
}
111
.input-append,
112
.input-prepend {
113
	&.color {
114
		.add-on i {
115
			display: block;
116
			cursor: pointer;
117
			width: 16px;
118
			height: 16px;
119
		}
120
	}
121
}