diff --git a/development/colorPicker.css b/development/colorPicker.css index 51b3f62..1379ebe 100644 --- a/development/colorPicker.css +++ b/development/colorPicker.css @@ -1,16 +1,16 @@ .cp-color-picker { position: absolute; - overflow: hidden; padding: 6px 6px 0; background-color: #444; color: #bbb; - font-family: Arial, Helvetica, sans-serif; - font-size: 12px; - font-weight: normal; + font: 600 12px Arial,Helvetica,sans-serif; cursor: default; border-radius: 5px; } -.cp-color-picker > div { +.cp-color-picker div { + box-sizing: border-box; +} +.cp-color-picker>div { position: relative; overflow: hidden; } @@ -19,49 +19,52 @@ height: 128px; width: 128px; margin-bottom: 6px; - background: linear-gradient(to right, rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%); + background: linear-gradient(to right,#FFF,rgba(255,255,255,0)); } .cp-white { height: 100%; width: 100%; - background: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); + background: linear-gradient(rgba(0,0,0,0),#000); } .cp-xy-cursor { position: absolute; + top: 0; width: 10px; height: 10px; margin: -5px; - border: 1px solid white; + border: 1px solid #fff; border-radius: 100%; - box-sizing: border-box; } .cp-z-slider { float: right; margin-left: 6px; height: 128px; - width: 20px; - background: linear-gradient(to bottom, #ff0000 0%,#ff00ff 17%,#0000ff 33%,#00ffff 50%,#00ff00 67%,#ffff00 83%,#ff0000 100%); + width: 22px; + background: linear-gradient(red 0,#f0f 17%,#00f 33%,#0ff 50%,#0f0 67%,#ff0 83%,red 100%); } .cp-z-cursor { position: absolute; margin-top: -4px; width: 100%; - border: 4px solid white; - border-color: transparent white; - box-sizing: border-box; + border: 4px solid #fff; + border-color: transparent #fff; } .cp-alpha { clear: both; width: 100%; - height: 16px; + height: 18px; margin: 6px 0; - background: linear-gradient(to right, rgba(68,68,68,1) 0%,rgba(0,0,0,0) 100%); + background: #666 url('data:image/gif;base64,R0lGODlhDAAMAIABAMzMzP///yH5BAEAAAEALAAAAAAMAAwAAAIWhB+ph5ps3IMyQFBvzVRq3zmfGC5QAQA7'); +} +.cp-alpha-alpha { + height: 100%; + background: linear-gradient(to left,#f00,rgba(0,0,0,0)); } .cp-alpha-cursor { position: absolute; + top: 0; margin-left: -4px; height: 100%; - border: 4px solid white; - border-color: white transparent; - box-sizing: border-box; -} \ No newline at end of file + border: 4px solid #fff; + border-color: #fff transparent; +} diff --git a/development/ui.html b/development/ui.html index a2417e8..42d9453 100644 --- a/development/ui.html +++ b/development/ui.html @@ -4,7 +4,7 @@ - + UI dev @@ -18,6 +18,7 @@
+