OLD | NEW |
| (Empty) |
1 /* https://github.com/bgrins/spectrum */ | |
2 :host { | |
3 width: 232px; | |
4 height: 240px; | |
5 -webkit-user-select: none; | |
6 } | |
7 | |
8 :host(.palettes-enabled) { | |
9 height: 319px; | |
10 } | |
11 | |
12 .spectrum-color { | |
13 position: relative; | |
14 width: 232px; | |
15 height: 124px; | |
16 border-radius: 2px 2px 0 0; | |
17 overflow: hidden; | |
18 } | |
19 | |
20 .spectrum-display-value { | |
21 -webkit-user-select: text; | |
22 display: inline-block; | |
23 padding-left: 2px; | |
24 } | |
25 | |
26 .spectrum-hue { | |
27 top: 140px; | |
28 } | |
29 | |
30 .spectrum-alpha { | |
31 top: 159px; | |
32 background-image: url(Images/checker.png); | |
33 background-size: 12px 11px; | |
34 } | |
35 | |
36 .spectrum-alpha-background { | |
37 height: 100%; | |
38 border-radius: 2px; | |
39 } | |
40 | |
41 .spectrum-hue, .spectrum-alpha { | |
42 position: absolute; | |
43 right: 16px; | |
44 width: 130px; | |
45 height: 11px; | |
46 border-radius: 2px; | |
47 } | |
48 | |
49 .spectrum-dragger, | |
50 .spectrum-slider { | |
51 -webkit-user-select: none; | |
52 } | |
53 | |
54 .spectrum-sat, | |
55 .-theme-preserve { | |
56 background-image: linear-gradient(to right, white, rgba(204, 154, 129, 0)); | |
57 } | |
58 | |
59 .spectrum-val, | |
60 .-theme-preserve { | |
61 background-image: linear-gradient(to top, black, rgba(204, 154, 129, 0)); | |
62 } | |
63 | |
64 .spectrum-hue { | |
65 background: linear-gradient(to left, #ff0000 0%, #ffff00 17%, #00ff00 33%, #
00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%); | |
66 } | |
67 | |
68 .spectrum-dragger { | |
69 border-radius: 12px; | |
70 height: 12px; | |
71 width: 12px; | |
72 border: 1px solid white; | |
73 cursor: pointer; | |
74 position: absolute; | |
75 top: 0; | |
76 left: 0; | |
77 background: black; | |
78 box-shadow: 0 0 2px 0px rgba(0, 0, 0, 0.24); | |
79 } | |
80 | |
81 .spectrum-slider { | |
82 position: absolute; | |
83 top: -1px; | |
84 cursor: pointer; | |
85 width: 13px; | |
86 height: 13px; | |
87 border-radius: 13px; | |
88 background-color: rgb(248, 248, 248); | |
89 box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37); | |
90 } | |
91 | |
92 .swatch { | |
93 width: 24px; | |
94 height: 24px; | |
95 margin: 0; | |
96 position: absolute; | |
97 top: 144px; | |
98 left: 47px; | |
99 background-image: url(Images/checker.png); | |
100 border-radius: 16px; | |
101 } | |
102 | |
103 .swatch-inner { | |
104 width: 100%; | |
105 height: 100%; | |
106 display: inline-block; | |
107 border-radius: 16px; | |
108 } | |
109 | |
110 .swatch-inner-white { | |
111 border: 1px solid #ddd; | |
112 } | |
113 | |
114 .spectrum-text { | |
115 position: absolute; | |
116 top: 184px; | |
117 left: 16px; | |
118 } | |
119 | |
120 .spectrum-text-value { | |
121 display: inline-block; | |
122 width: 40px; | |
123 overflow: hidden; | |
124 text-align: center; | |
125 border: 1px solid #dadada; | |
126 border-radius: 2px; | |
127 margin-right: 6px; | |
128 line-height: 20px; | |
129 font-size: 11px; | |
130 padding: 0; | |
131 color: #333; | |
132 white-space: nowrap; | |
133 } | |
134 | |
135 .spectrum-text-label { | |
136 letter-spacing: 39.5px; | |
137 margin-top: 8px; | |
138 display: block; | |
139 color: #969696; | |
140 margin-left: 16px; | |
141 width: 174px; | |
142 } | |
143 | |
144 .spectrum-text-hex > .spectrum-text-value { | |
145 width: 178px; | |
146 } | |
147 | |
148 .spectrum-text-hex > .spectrum-text-label { | |
149 letter-spacing: normal; | |
150 margin-left: 0px; | |
151 text-align: center; | |
152 } | |
153 | |
154 .spectrum-palette-value { | |
155 background-color: rgb(65, 75, 217); | |
156 border-radius: 2px; | |
157 margin-top: 12px; | |
158 margin-left: 12px; | |
159 width: 12px; | |
160 height: 12px; | |
161 display: inline-block; | |
162 } | |
163 | |
164 .spectrum-switcher { | |
165 border-radius: 2px; | |
166 height: 20px; | |
167 width: 20px; | |
168 padding: 2px; | |
169 } | |
170 | |
171 :host-context(.-theme-with-dark-background) .spectrum-switcher { | |
172 -webkit-filter: invert(60%); | |
173 } | |
174 | |
175 .spectrum-display-switcher { | |
176 top: 196px; | |
177 position: absolute; | |
178 right: 10px; | |
179 } | |
180 | |
181 .spectrum-switcher:hover { | |
182 background-color: #EEEEEE; | |
183 } | |
184 | |
185 .spectrum-eye-dropper { | |
186 width: 32px; | |
187 height: 24px; | |
188 position: absolute; | |
189 left: 12px; | |
190 top: 144px; | |
191 cursor: pointer; | |
192 } | |
193 | |
194 .spectrum-palette { | |
195 border-top: 1px solid #dadada; | |
196 position: absolute; | |
197 top: 235px; | |
198 width: 100%; | |
199 padding: 6px 24px 6px 6px; | |
200 display: flex; | |
201 flex-wrap: wrap; | |
202 } | |
203 | |
204 .spectrum-palette-color { | |
205 width: 12px; | |
206 height: 12px; | |
207 flex: 0 0 12px; | |
208 border-radius: 2px; | |
209 margin: 6px; | |
210 cursor: pointer; | |
211 position: relative; | |
212 border: 1px solid rgba(0, 0, 0, 0.1); | |
213 background-position: -1px !important; | |
214 } | |
215 | |
216 .spectrum-palette-color:hover:not(.spectrum-shades-shown) > .spectrum-palette-co
lor-shadow { | |
217 opacity: 0.2; | |
218 } | |
219 | |
220 .spectrum-palette-color:hover:not(.spectrum-shades-shown) > .spectrum-palette-co
lor-shadow:first-child { | |
221 opacity: 0.6; | |
222 top: -3px; | |
223 left: 1px; | |
224 } | |
225 | |
226 .spectrum-palette-color-shadow { | |
227 position: absolute; | |
228 opacity: 0; | |
229 margin: 0; | |
230 top: -5px; | |
231 left: 3px; | |
232 } | |
233 | |
234 .palette-color-shades { | |
235 position: absolute; | |
236 background-color: white; | |
237 height: 228px; | |
238 width: 28px; | |
239 box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12
), 0 2px 4px -1px rgba(0, 0, 0, 0.4); | |
240 z-index: 14; | |
241 border-radius: 2px; | |
242 transform-origin: 0px 228px; | |
243 margin-top: -208px; | |
244 margin-left: -8px; | |
245 } | |
246 | |
247 .spectrum-palette > .spectrum-palette-color.spectrum-shades-shown { | |
248 z-index: 15; | |
249 } | |
250 | |
251 .palette-color-shades > .spectrum-palette-color { | |
252 margin: 8px 0 0 0; | |
253 margin-left: 8px; | |
254 width: 12px; | |
255 } | |
256 | |
257 .spectrum-palette > .spectrum-palette-color { | |
258 transition: transform 100ms cubic-bezier(0, 0, 0.2, 1); | |
259 will-change: transform; | |
260 z-index: 13; | |
261 } | |
262 | |
263 .spectrum-palette > .spectrum-palette-color.empty-color { | |
264 border-color: transparent; | |
265 } | |
266 | |
267 .spectrum-palette > .spectrum-palette-color:not(.empty-color):not(.has-material-
shades):hover, | |
268 .palette-color-shades > .spectrum-palette-color:not(.empty-color):hover { | |
269 transform: scale(1.15); | |
270 } | |
271 | |
272 .add-color-toolbar { | |
273 margin-left: -3px; | |
274 margin-top: -1px; | |
275 } | |
276 | |
277 .spectrum-palette-switcher { | |
278 right: 10px; | |
279 top: 235px; | |
280 margin-top: 9px; | |
281 position: absolute; | |
282 } | |
283 | |
284 .palette-panel { | |
285 width: 100%; | |
286 height: 100%; | |
287 position: absolute; | |
288 top: 100%; | |
289 display: flex; | |
290 flex-direction: column; | |
291 background-color: white; | |
292 z-index: 14; | |
293 transition: transform 200ms cubic-bezier(0, 0, 0.2, 1), visibility 0s 200ms; | |
294 border-top: 1px solid #dadada; | |
295 visibility: hidden; | |
296 } | |
297 | |
298 .palette-panel-showing > .palette-panel { | |
299 transform: translateY(calc(-100% + 117px)); | |
300 transition-delay: 0s; | |
301 visibility: visible; | |
302 } | |
303 | |
304 .palette-panel > div.toolbar { | |
305 position: absolute; | |
306 right: 6px; | |
307 top: 6px; | |
308 } | |
309 | |
310 .palette-panel > div:not(.toolbar) { | |
311 flex: 0 0 38px; | |
312 border-bottom: 1px solid #dadada; | |
313 padding: 12px; | |
314 line-height: 14px; | |
315 color: #333; | |
316 } | |
317 | |
318 .palette-panel > div.palette-title { | |
319 font-size: 14px; | |
320 line-height: 16px; | |
321 color: #333; | |
322 flex-basis: 40px; | |
323 } | |
324 | |
325 div.palette-preview { | |
326 display: flex; | |
327 cursor: pointer; | |
328 } | |
329 | |
330 .palette-preview-title { | |
331 flex: 0 0 84px; | |
332 } | |
333 | |
334 .palette-preview > .spectrum-palette-color { | |
335 margin-top: 1px; | |
336 } | |
337 | |
338 .palette-preview:hover { | |
339 background-color: #eee; | |
340 } | |
341 | |
342 .spectrum-overlay { | |
343 z-index: 13; | |
344 visibility: hidden; | |
345 background-color: hsla(0, 0%, 0%, 0.5); | |
346 opacity: 0; | |
347 transition: opacity 100ms cubic-bezier(0, 0, 0.2, 1), visibility 0s 100ms; | |
348 } | |
349 | |
350 .palette-panel-showing > .spectrum-overlay { | |
351 transition-delay: 0s; | |
352 visibility: visible; | |
353 opacity: 1; | |
354 } | |
355 | |
356 .spectrum-contrast-container { | |
357 width: 100%; | |
358 height: 100%; | |
359 } | |
360 | |
361 .spectrum-contrast-line { | |
362 fill: none; | |
363 stroke: white; | |
364 opacity: 0.7; | |
365 stroke-width: 1.5px; | |
366 } | |
367 | |
368 .delete-color-toolbar { | |
369 position: absolute; | |
370 right: 0; | |
371 top: 0; | |
372 background-color: #EFEFEF; | |
373 visibility: hidden; | |
374 z-index: 3; | |
375 width: 36px; | |
376 display: flex; | |
377 align-items: center; | |
378 padding-left: 4px; | |
379 bottom: 2px; | |
380 border-bottom-right-radius: 2px; | |
381 } | |
382 | |
383 @keyframes showDeleteToolbar { | |
384 from { | |
385 opacity: 0; | |
386 } | |
387 to { | |
388 opacity: 1; | |
389 } | |
390 } | |
391 | |
392 .delete-color-toolbar.dragging { | |
393 visibility: visible; | |
394 animation: showDeleteToolbar 100ms 150ms cubic-bezier(0, 0, 0.2, 1) backward
s; | |
395 } | |
396 | |
397 .delete-color-toolbar-active { | |
398 background-color: #ddd; | |
399 color: white; | |
400 } | |
OLD | NEW |