mirror of
https://github.com/PitPik/tinyColorPicker
synced 2025-06-28 13:41:02 -06:00
development updates
This commit is contained in:
parent
fdc31090e6
commit
a3316b46cc
@ -1,15 +1,15 @@
|
|||||||
.cp-color-picker {
|
.cp-color-picker {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
overflow: hidden;
|
|
||||||
padding: 6px 6px 0;
|
padding: 6px 6px 0;
|
||||||
background-color: #444;
|
background-color: #444;
|
||||||
color: #bbb;
|
color: #bbb;
|
||||||
font-family: Arial, Helvetica, sans-serif;
|
font: 600 12px Arial,Helvetica,sans-serif;
|
||||||
font-size: 12px;
|
|
||||||
font-weight: normal;
|
|
||||||
cursor: default;
|
cursor: default;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
|
.cp-color-picker div {
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
.cp-color-picker>div {
|
.cp-color-picker>div {
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@ -19,49 +19,52 @@
|
|||||||
height: 128px;
|
height: 128px;
|
||||||
width: 128px;
|
width: 128px;
|
||||||
margin-bottom: 6px;
|
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 {
|
.cp-white {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 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 {
|
.cp-xy-cursor {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
width: 10px;
|
width: 10px;
|
||||||
height: 10px;
|
height: 10px;
|
||||||
margin: -5px;
|
margin: -5px;
|
||||||
border: 1px solid white;
|
border: 1px solid #fff;
|
||||||
border-radius: 100%;
|
border-radius: 100%;
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
}
|
||||||
.cp-z-slider {
|
.cp-z-slider {
|
||||||
float: right;
|
float: right;
|
||||||
margin-left: 6px;
|
margin-left: 6px;
|
||||||
height: 128px;
|
height: 128px;
|
||||||
width: 20px;
|
width: 22px;
|
||||||
background: linear-gradient(to bottom, #ff0000 0%,#ff00ff 17%,#0000ff 33%,#00ffff 50%,#00ff00 67%,#ffff00 83%,#ff0000 100%);
|
background: linear-gradient(red 0,#f0f 17%,#00f 33%,#0ff 50%,#0f0 67%,#ff0 83%,red 100%);
|
||||||
}
|
}
|
||||||
.cp-z-cursor {
|
.cp-z-cursor {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
margin-top: -4px;
|
margin-top: -4px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border: 4px solid white;
|
border: 4px solid #fff;
|
||||||
border-color: transparent white;
|
border-color: transparent #fff;
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
}
|
||||||
.cp-alpha {
|
.cp-alpha {
|
||||||
clear: both;
|
clear: both;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 16px;
|
height: 18px;
|
||||||
margin: 6px 0;
|
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 {
|
.cp-alpha-cursor {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
margin-left: -4px;
|
margin-left: -4px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
border: 4px solid white;
|
border: 4px solid #fff;
|
||||||
border-color: white transparent;
|
border-color: #fff transparent;
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
}
|
@ -4,7 +4,7 @@
|
|||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||||
<link rel="stylesheet" type="text/css" href="../index.css">
|
<link rel="stylesheet" type="text/css" href="../index.css">
|
||||||
<link rel="stylesheet" type="text/css" href="colorPicker.css">
|
<link rel="stylesheet" type="text/css" href="colorPicker.css">
|
||||||
<link rel="stylesheet" type="text/css" href="compatibility.css">
|
<!-- <link rel="stylesheet" type="text/css" href="compatibility.css"> -->
|
||||||
<title>UI dev</title>
|
<title>UI dev</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@ -18,6 +18,7 @@
|
|||||||
<div class="cp-xy-cursor"></div>
|
<div class="cp-xy-cursor"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="cp-alpha">
|
<div class="cp-alpha">
|
||||||
|
<div class="cp-alpha-alpha"></div>
|
||||||
<div class="cp-alpha-cursor"></div>
|
<div class="cp-alpha-cursor"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user