5151 width : 88px ;
5252 margin-right : 9px ;
5353 display : inline-block ;
54- box-shadow : 0 1px 0 # fff ;
5554 position : relative ;
55+ overflow : hidden ;
56+ -webkit-background-clip : padding-box ;
57+ background-clip : padding-box ;
5658}
5759.color-editor aside header .large-swatch {
5860 width : 50% ;
120122 width : 100% ;
121123 height : 100% ;
122124 border-radius : 3px ;
123- border-bottom : 1px solid # fff ;
124125 box-shadow : 0 -1px 0 rgba (0 , 0 , 0 , 0.12 );
125126}
126127.color-editor section .color-selection-field {
315316 border-bottom-right-radius : 3px ;
316317}
317318.color-editor .button-bar li .selected a {
318- background-color : # d3d7d7 ;
319+ background-color : #e0f0fa ;
319320 box-shadow : inset 0 1px 0 rgba (0 , 0 , 0 , 0.06 );
320321 background-image : none ;
322+ color : #0083e8 ;
321323}
322324.color-editor .button-bar li .disabled a {
323325 cursor : default ;
327329
328330.color-editor .platform-mac .CodeMirror {
329331 font-family : " SourceSansPro" !important ;
332+ }
333+
334+ // Dark UI theme
335+
336+ @dark-bc-bg-highlight : #1671db ;
337+ @dark-bc-highlight : rgba (255 , 255 , 255 , 0.06 );
338+ @dark-bc-text : #ddd ;
339+ @dark-bc-text-alt : #fff ;
340+ @dark-bc-highlight-hard : rgba (255 , 255 , 255 , 0.1 );
341+ @dark-bc-btn-bg : #3f3f3f ;
342+ @dark-bc-btn-border : #202020 ;
343+ @dark-bc-btn-border-focused : #2893ef ;
344+ @dark-bc-btn-border-focused-glow : transparent ;
345+ @dark-bc-shadow : rgba (0 , 0 , 0 , 0.24 );
346+ @dark-bc-shadow-small : rgba (0 , 0 , 0 , 0.06 );
347+ @dark-bc-shadow-medium : rgba (0 , 0 , 0 , 0.12 );
348+ @dark-bc-input-bg : #555 ;
349+
350+ @dark-swatch-bg : url (" ../img/color_thumb_back_dark.png" );
351+ @dark-swatch-bg-2x : url (" ../img/color_thumb_back_dark@2x.png" );
352+
353+ .dark {
354+ .color-editor aside header .large-swatches ,
355+ .color-editor aside ul .swatches li .swatch-bg ,
356+ .color-editor section .slider.opacity-slider {
357+ background-image : @dark-swatch-bg ;
358+ }
359+
360+ .color-editor ul .swatches li .value {
361+ color : @dark-bc-text ;
362+ }
363+
364+ .color-editor section .gradient-overlay {
365+ box-shadow : 0 1px 0 @dark-bc-highlight , inset 0 1px 0 @dark-bc-shadow-medium ;
366+ }
367+
368+ .color-editor aside ul .swatches li .swatch-bg .swatch {
369+ box-shadow : 0 -1px 1px @dark-bc-shadow-small ;
370+ }
371+
372+ .color-editor aside ul .swatches li :focus {
373+ outline : 1px solid @dark-bc-btn-border-focused ;
374+ box-shadow : 0 0 0 1px @dark-bc-btn-border-focused-glow ;
375+ }
376+
377+ .color-editor section .color-selection-field .selector-base {
378+ color : @dark-bc-input-bg ;
379+ }
380+
381+ .color-editor section .color-selection-field .selector-base :focus {
382+ box-shadow : 0 0 0 5px @dark-bc-btn-border-focused-glow ;
383+ }
384+
385+ .color-editor section .slider {
386+ border-bottom : 1px solid @dark-bc-highlight-hard ;
387+ box-shadow : 0 -1px 0 @dark-bc-shadow-small ;
388+ background-color : @dark-bc-highlight-hard ;
389+ box-shadow : 0 1px 0 @dark-bc-highlight-hard , inset 0 1px 0 @dark-bc-shadow ;
390+ }
391+
392+ .color-editor section .slider .selector-base :focus {
393+ box-shadow : 0 0 0 5px @dark-bc-btn-border-focused-glow ;
394+ }
395+
396+ .color-editor section footer .color-value {
397+ border-color : @dark-bc-btn-border ;
398+ color : @dark-bc-text ;
399+ }
400+
401+ .color-editor section footer input {
402+ border : 1px solid @dark-bc-btn-border ;
403+ box-shadow : inset 0 1px 0 @dark-bc-shadow-small ;
404+ background : @dark-bc-input-bg ;
405+ color : @dark-bc-text ;
406+ }
407+
408+ .color-editor section footer input :focus {
409+ background : @dark-bc-input-bg ;
410+ box-shadow : 0 0 0 1px @dark-bc-btn-border-focused-glow ;
411+ border : 1px solid @dark-bc-btn-border-focused ;
412+ }
413+
414+ .color-editor .button-bar a {
415+ color : @dark-bc-text ;
416+ text-shadow : 0 1px 0 @dark-bc-highlight ;
417+ background-color : @dark-bc-btn-bg ;
418+ border : 1px solid @dark-bc-btn-border ;
419+ border-right : 1px solid transparent ;
420+ box-shadow : inset 0 1px 0 @dark-bc-highlight ;
421+ }
422+
423+ .color-editor .button-bar a :focus , .color-editor .button-bar li .selected a :focus {
424+ border : 1px solid @dark-bc-btn-border-focused ;
425+ border-right : 1px solid @dark-bc-btn-border-focused !important ; /* we need this !important, sorry! */
426+ box-shadow : 0 0 0 1px @dark-bc-btn-border-focused-glow ;
427+ }
428+
429+ .color-editor .button-bar li :last-child a {
430+ border-right : 1px solid @dark-bc-btn-border ;
431+ }
432+
433+ .color-editor .button-bar li .selected a {
434+ background-color : @dark-bc-bg-highlight ;
435+ box-shadow : inset 0 1px 0 @dark-bc-shadow-small ;
436+ color : @dark-bc-text-alt ;
437+ }
438+ }
439+
440+ @media all and (-webkit-min-device-pixel-ratio : 2 ), (min - device- pixel- ratio : 2 ) {
441+ .dark {
442+ .color-editor aside header .large-swatches {
443+ background-image : @dark-swatch-bg-2x ;
444+ }
445+
446+ .color-editor aside ul .swatches li .swatch-bg {
447+ background-image : @dark-swatch-bg-2x ;
448+ }
449+
450+ .color-editor section .slider.opacity-slider {
451+ background-image : @dark-swatch-bg-2x ;
452+ }
453+ }
330454}
0 commit comments