2
0
mirror of https://github.com/PitPik/tinyColorPicker synced 2025-06-27 21:21:02 -06:00
tinyColorPicker/development/colorPicker.css

71 lines
1.4 KiB
CSS
Raw Normal View History

2015-02-02 14:48:14 +01:00
.cp-color-picker {
position: absolute;
padding: 6px 6px 0;
background-color: #444;
color: #bbb;
2015-02-10 23:31:22 +01:00
font: 600 12px Arial,Helvetica,sans-serif;
2015-02-02 14:48:14 +01:00
cursor: default;
border-radius: 5px;
}
2015-02-10 23:31:22 +01:00
.cp-color-picker div {
box-sizing: border-box;
}
.cp-color-picker>div {
2015-02-02 14:48:14 +01:00
position: relative;
overflow: hidden;
}
.cp-xy-slider {
float: left;
height: 128px;
width: 128px;
margin-bottom: 6px;
2015-02-10 23:31:22 +01:00
background: linear-gradient(to right,#FFF,rgba(255,255,255,0));
2015-02-02 14:48:14 +01:00
}
.cp-white {
height: 100%;
width: 100%;
2015-02-10 23:31:22 +01:00
background: linear-gradient(rgba(0,0,0,0),#000);
2015-02-02 14:48:14 +01:00
}
.cp-xy-cursor {
position: absolute;
2015-02-10 23:31:22 +01:00
top: 0;
2015-02-02 14:48:14 +01:00
width: 10px;
height: 10px;
margin: -5px;
2015-02-10 23:31:22 +01:00
border: 1px solid #fff;
2015-02-02 14:48:14 +01:00
border-radius: 100%;
}
.cp-z-slider {
float: right;
margin-left: 6px;
height: 128px;
2015-02-10 23:31:22 +01:00
width: 22px;
background: linear-gradient(red 0,#f0f 17%,#00f 33%,#0ff 50%,#0f0 67%,#ff0 83%,red 100%);
2015-02-02 14:48:14 +01:00
}
.cp-z-cursor {
position: absolute;
margin-top: -4px;
width: 100%;
2015-02-10 23:31:22 +01:00
border: 4px solid #fff;
border-color: transparent #fff;
2015-02-02 14:48:14 +01:00
}
.cp-alpha {
2015-02-02 21:34:30 +01:00
clear: both;
2015-02-02 14:48:14 +01:00
width: 100%;
2015-02-10 23:31:22 +01:00
height: 18px;
2015-02-02 14:48:14 +01:00
margin: 6px 0;
2015-02-10 23:31:22 +01:00
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));
2015-02-02 14:48:14 +01:00
}
.cp-alpha-cursor {
position: absolute;
2015-02-10 23:31:22 +01:00
top: 0;
2015-02-02 14:48:14 +01:00
margin-left: -4px;
height: 100%;
2015-02-10 23:31:22 +01:00
border: 4px solid #fff;
border-color: #fff transparent;
}