[bf47591] | 1 | /*! |
---|
| 2 | * Bootstrap Colorpicker |
---|
| 3 | * http://mjolnic.github.io/bootstrap-colorpicker/ |
---|
| 4 | * |
---|
| 5 | * Originally written by (c) 2012 Stefan Petre |
---|
| 6 | * Licensed under the Apache License v2.0 |
---|
| 7 | * http://www.apache.org/licenses/LICENSE-2.0.txt |
---|
| 8 | * |
---|
| 9 | */ |
---|
| 10 | |
---|
| 11 | .colorpicker-saturation { |
---|
| 12 | float: left; |
---|
| 13 | width: 100px; |
---|
| 14 | height: 100px; |
---|
| 15 | cursor: crosshair; |
---|
| 16 | background-image: url("img/saturation.png"); |
---|
| 17 | } |
---|
| 18 | |
---|
| 19 | .colorpicker-saturation i { |
---|
| 20 | position: absolute; |
---|
| 21 | top: 0; |
---|
| 22 | left: 0; |
---|
| 23 | display: block; |
---|
| 24 | width: 5px; |
---|
| 25 | height: 5px; |
---|
| 26 | margin: -4px 0 0 -4px; |
---|
| 27 | border: 1px solid #000; |
---|
| 28 | -webkit-border-radius: 5px; |
---|
| 29 | -moz-border-radius: 5px; |
---|
| 30 | border-radius: 5px; |
---|
| 31 | } |
---|
| 32 | |
---|
| 33 | .colorpicker-saturation i b { |
---|
| 34 | display: block; |
---|
| 35 | width: 5px; |
---|
| 36 | height: 5px; |
---|
| 37 | border: 1px solid #fff; |
---|
| 38 | -webkit-border-radius: 5px; |
---|
| 39 | -moz-border-radius: 5px; |
---|
| 40 | border-radius: 5px; |
---|
| 41 | } |
---|
| 42 | |
---|
| 43 | .colorpicker-hue, |
---|
| 44 | .colorpicker-alpha { |
---|
| 45 | float: left; |
---|
| 46 | width: 15px; |
---|
| 47 | height: 100px; |
---|
| 48 | margin-bottom: 4px; |
---|
| 49 | margin-left: 4px; |
---|
| 50 | cursor: row-resize; |
---|
| 51 | } |
---|
| 52 | |
---|
| 53 | .colorpicker-hue i, |
---|
| 54 | .colorpicker-alpha i { |
---|
| 55 | position: absolute; |
---|
| 56 | top: 0; |
---|
| 57 | left: 0; |
---|
| 58 | display: block; |
---|
| 59 | width: 100%; |
---|
| 60 | height: 1px; |
---|
| 61 | margin-top: -1px; |
---|
| 62 | background: #000; |
---|
| 63 | border-top: 1px solid #fff; |
---|
| 64 | } |
---|
| 65 | |
---|
| 66 | .colorpicker-hue { |
---|
| 67 | background-image: url("img/hue.png"); |
---|
| 68 | } |
---|
| 69 | |
---|
| 70 | .colorpicker-alpha { |
---|
| 71 | display: none; |
---|
| 72 | background-image: url("img/alpha.png"); |
---|
| 73 | } |
---|
| 74 | |
---|
| 75 | .colorpicker-saturation, |
---|
| 76 | .colorpicker-hue, |
---|
| 77 | .colorpicker-alpha { |
---|
| 78 | background-size: contain; |
---|
| 79 | } |
---|
| 80 | |
---|
| 81 | .colorpicker { |
---|
| 82 | top: 0; |
---|
| 83 | left: 0; |
---|
| 84 | z-index: 2500; |
---|
| 85 | min-width: 130px; |
---|
| 86 | padding: 4px; |
---|
| 87 | margin-top: 1px; |
---|
| 88 | -webkit-border-radius: 4px; |
---|
| 89 | -moz-border-radius: 4px; |
---|
| 90 | border-radius: 4px; |
---|
| 91 | *zoom: 1; |
---|
| 92 | } |
---|
| 93 | |
---|
| 94 | .colorpicker:before, |
---|
| 95 | .colorpicker:after { |
---|
| 96 | display: table; |
---|
| 97 | line-height: 0; |
---|
| 98 | content: ""; |
---|
| 99 | } |
---|
| 100 | |
---|
| 101 | .colorpicker:after { |
---|
| 102 | clear: both; |
---|
| 103 | } |
---|
| 104 | |
---|
| 105 | .colorpicker:before { |
---|
| 106 | position: absolute; |
---|
| 107 | top: -7px; |
---|
| 108 | left: 6px; |
---|
| 109 | display: inline-block; |
---|
| 110 | border-right: 7px solid transparent; |
---|
| 111 | border-bottom: 7px solid #ccc; |
---|
| 112 | border-left: 7px solid transparent; |
---|
| 113 | border-bottom-color: rgba(0, 0, 0, 0.2); |
---|
| 114 | content: ''; |
---|
| 115 | } |
---|
| 116 | |
---|
| 117 | .colorpicker:after { |
---|
| 118 | position: absolute; |
---|
| 119 | top: -6px; |
---|
| 120 | left: 7px; |
---|
| 121 | display: inline-block; |
---|
| 122 | border-right: 6px solid transparent; |
---|
| 123 | border-bottom: 6px solid #ffffff; |
---|
| 124 | border-left: 6px solid transparent; |
---|
| 125 | content: ''; |
---|
| 126 | } |
---|
| 127 | |
---|
| 128 | .colorpicker div { |
---|
| 129 | position: relative; |
---|
| 130 | } |
---|
| 131 | |
---|
| 132 | .colorpicker.colorpicker-with-alpha { |
---|
| 133 | min-width: 140px; |
---|
| 134 | } |
---|
| 135 | |
---|
| 136 | .colorpicker.colorpicker-with-alpha .colorpicker-alpha { |
---|
| 137 | display: block; |
---|
| 138 | } |
---|
| 139 | |
---|
| 140 | .colorpicker-color { |
---|
| 141 | height: 10px; |
---|
| 142 | margin-top: 5px; |
---|
| 143 | clear: both; |
---|
| 144 | background-image: url("img/alpha.png"); |
---|
| 145 | background-position: 0 100%; |
---|
| 146 | } |
---|
| 147 | |
---|
| 148 | .colorpicker-color div { |
---|
| 149 | height: 10px; |
---|
| 150 | } |
---|
| 151 | |
---|
| 152 | .colorpicker-selectors { |
---|
| 153 | display: none; |
---|
| 154 | height: 10px; |
---|
| 155 | margin-top: 5px; |
---|
| 156 | clear: both; |
---|
| 157 | } |
---|
| 158 | |
---|
| 159 | .colorpicker-selectors i { |
---|
| 160 | float: left; |
---|
| 161 | width: 10px; |
---|
| 162 | height: 10px; |
---|
| 163 | cursor: pointer; |
---|
| 164 | } |
---|
| 165 | |
---|
| 166 | .colorpicker-selectors i + i { |
---|
| 167 | margin-left: 3px; |
---|
| 168 | } |
---|
| 169 | |
---|
| 170 | .colorpicker-element .input-group-addon i, |
---|
| 171 | .colorpicker-element .add-on i { |
---|
| 172 | display: inline-block; |
---|
| 173 | width: 16px; |
---|
| 174 | height: 16px; |
---|
| 175 | vertical-align: text-top; |
---|
| 176 | cursor: pointer; |
---|
| 177 | } |
---|
| 178 | |
---|
| 179 | .colorpicker.colorpicker-inline { |
---|
| 180 | position: relative; |
---|
| 181 | z-index: auto; |
---|
| 182 | display: inline-block; |
---|
| 183 | float: none; |
---|
| 184 | } |
---|
| 185 | |
---|
| 186 | .colorpicker.colorpicker-horizontal { |
---|
| 187 | width: 110px; |
---|
| 188 | height: auto; |
---|
| 189 | min-width: 110px; |
---|
| 190 | } |
---|
| 191 | |
---|
| 192 | .colorpicker.colorpicker-horizontal .colorpicker-saturation { |
---|
| 193 | margin-bottom: 4px; |
---|
| 194 | } |
---|
| 195 | |
---|
| 196 | .colorpicker.colorpicker-horizontal .colorpicker-color { |
---|
| 197 | width: 100px; |
---|
| 198 | } |
---|
| 199 | |
---|
| 200 | .colorpicker.colorpicker-horizontal .colorpicker-hue, |
---|
| 201 | .colorpicker.colorpicker-horizontal .colorpicker-alpha { |
---|
| 202 | float: left; |
---|
| 203 | width: 100px; |
---|
| 204 | height: 15px; |
---|
| 205 | margin-bottom: 4px; |
---|
| 206 | margin-left: 0; |
---|
| 207 | cursor: col-resize; |
---|
| 208 | } |
---|
| 209 | |
---|
| 210 | .colorpicker.colorpicker-horizontal .colorpicker-hue i, |
---|
| 211 | .colorpicker.colorpicker-horizontal .colorpicker-alpha i { |
---|
| 212 | position: absolute; |
---|
| 213 | top: 0; |
---|
| 214 | left: 0; |
---|
| 215 | display: block; |
---|
| 216 | width: 1px; |
---|
| 217 | height: 15px; |
---|
| 218 | margin-top: 0; |
---|
| 219 | background: #ffffff; |
---|
| 220 | border: none; |
---|
| 221 | } |
---|
| 222 | |
---|
| 223 | .colorpicker.colorpicker-horizontal .colorpicker-hue { |
---|
| 224 | background-image: url("img/hue-horizontal.png"); |
---|
| 225 | } |
---|
| 226 | |
---|
| 227 | .colorpicker.colorpicker-horizontal .colorpicker-alpha { |
---|
| 228 | background-image: url("img/alpha-horizontal.png"); |
---|
| 229 | } |
---|
| 230 | |
---|
| 231 | .colorpicker.colorpicker-hidden { |
---|
| 232 | display: none; |
---|
| 233 | } |
---|
| 234 | |
---|
| 235 | .colorpicker.colorpicker-visible { |
---|
| 236 | display: block; |
---|
| 237 | } |
---|
| 238 | |
---|
| 239 | .colorpicker-inline.colorpicker-visible { |
---|
| 240 | display: inline-block; |
---|
| 241 | } |
---|
| 242 | |
---|
| 243 | .colorpicker-right:before { |
---|
| 244 | right: 6px; |
---|
| 245 | left: auto; |
---|
| 246 | } |
---|
| 247 | |
---|
| 248 | .colorpicker-right:after { |
---|
| 249 | right: 7px; |
---|
| 250 | left: auto; |
---|
| 251 | } |
---|