UNPKG

react-color-selector

Version:

## **Description:** **react-color-selector** is a very useful and easy to use color picker, no external dependency is needed for this. You can chagne theme of it's color, by simply editing css variables. One of the best featur is you can use *any number

196 lines (177 loc) 3.59 kB
.dark-theme { background-color: #0c0b14; border: 1px solid #454559; } .light-theme { background-color: #f6f5f5; border: 1px solid #e9e9e9; } .canvas_holder { margin: 20px auto 0; position: relative; overflow: hidden; } .canvas_holder.sphere_holder { box-shadow: 1px 2px 3px #aaa; border-radius: 100%; border-width: 15px; border-style: solid; } .dark-theme .canvas_holder.sphere_holder { box-shadow: 1px 2px 3px #454559; } .picker_area { cursor: crosshair; } .indicator { position: absolute; border: 2px solid #fff; border-radius: 4px; box-shadow: 1px 2px 3px #aaa; } .indicator.with_sphere { border-radius: 100%; width: 20px; height: 20px; margin-top:-20px; margin-left:-20px; } .result_bar { width: 150px; margin: 10px auto; height: 40px; padding-top: 5px; } .unit_section { width: 30px; height: 30px; background-color: #fff; text-align: center; line-height: 30px; font-weight: bold; color: #555555; float: left; border-radius: 4px; box-shadow: 1px 1px 2px #bfbfbf; font-size: 20px; } .dark-theme .unit_section { color:#bbbbd6; background-color: #1d1c29; box-shadow: 1px 1px 2px #0c0b14; } .output_input { width: 70px; float: left; margin-left: 5px; height: 30px; border: none; border-radius: 4px; box-shadow: 1px 1px 2px #bfbfbf; color: #6a6a6a; font-size: 14px; text-indent: 10px; letter-spacing: 1px; line-height: 30px; } .output_input:focus { outline: none; } .dark-theme .output_input { background-color: #1d1c29; color:#9090a1; box-shadow: 1px 1px 2px #0c0b14; } .result_output { width: 30px; height: 30px; float: left; border-radius: 40px; margin-left: 9px; box-shadow: 1px 1px 4px #818282; } .dark-theme .result_output { border: 1px solid #555; box-shadow: 0px 0px 0px #000; } .picker_switch { list-style: none; margin: 0; width: calc(100% - 40px); height: 40px; margin-top: 10px; box-shadow: 0px 1px 2px #bfbfbf; padding: 0 20px; } .picker_switch li { width: calc(100% / 3); height: inherit; line-height: 40px; font-size: 16px; color: #555555; font-weight: 600; text-align: left; float: left; } .dark-theme .picker_switch { box-shadow: 0px 1px 2px #3f3f3f; } .dark-theme .picker_switch li { color:#c1c1dc; } .picker_switch li .picker-btn { width: 25px; height: 25px; margin-top: 10px; padding: 0; border: 1px solid #d4d4d4; } .dark-theme .picker_switch li .picker-btn { border: 1px solid #555555; background-color: #0c0b14; } .picker_switch li .picker-btn:focus { outline: none; } .picker_switch li .picker-btn.s_pallet { margin-right: 10px; } .picker_switch li .picker-btn.s_pallet span { width: calc(50% - 2px); height: calc(50% - 2px); float: left; background: #d4d4d4; display: block; margin: 1px; } .dark-theme .picker_switch li .picker-btn.s_pallet span { background: #3f3f3f; } .picker_switch li .picker-btn.s_pallet.active{ border: 1px solid var(--primary); } .picker_switch li .picker-btn.s_sphear { border-radius: 100%; } .picker_switch li .picker-btn.s_sphear span{ border-radius: 100%; width: calc(100% - 4px); height: calc(100% - 4px); background: #d4d4d4; display: block; margin: 2px; } .dark-theme .picker_switch li .picker-btn.s_sphear span { background: #3f3f3f; } .picker_switch li .picker-btn.s_sphear.active { border:1px solid var(--primary); } .tools { border: 1px solid var(--primary); margin-left: 2px; background-color: transparent; color: var(--primary); cursor: pointer; /* transform: translateY(-6px); */ }