Uplift to jPicker 1.0.9
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@343 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
5e4ebfa7a9
commit
1c9993d438
|
@ -1,220 +1,228 @@
|
||||||
/*[compact]*/
|
/*[compact]*/
|
||||||
.jPicker_Picker {
|
.jPicker_Picker {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
height: 24px; /* change this value if using a different sized color picker icon */
|
height: 24px; /* change this value if using a different sized color picker icon */
|
||||||
position: relative; /* make this element an absolute positioning container */
|
position: relative; /* make this element an absolute positioning container */
|
||||||
text-align: left; /* make the zero width children position to the left of container */
|
text-align: left; /* make the zero width children position to the left of container */
|
||||||
width: 25px; /* change this value if using a different sized color picker icon */
|
width: 25px; /* change this value if using a different sized color picker icon */
|
||||||
}
|
}
|
||||||
.jPicker_Color {
|
.jPicker_Color {
|
||||||
display: block;
|
display: block;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
left: 0px;
|
left: 0px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
.jPicker_Icon {
|
.jPicker_Icon {
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
display: block;
|
display: block;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
left: 0px;
|
left: 0px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
.jPicker_Container {
|
.jPicker_Container {
|
||||||
display: none;
|
display: none;
|
||||||
z-index: 10; /* make sure container draws above color picker icon in Firefox/Safari/Chrome/Opera/etc. -
|
z-index: 10; /* make sure container draws above color picker icon in Firefox/Safari/Chrome/Opera/etc. -
|
||||||
IE calculates z-index so this won't work - we will hide all color picker icons placed after the selected one in code when shown in IE */
|
IE calculates z-index so this won't work - we will hide all color picker icons placed after the selected one in code when shown in IE */
|
||||||
}
|
}
|
||||||
.jPicker_table {
|
.jPicker_table {
|
||||||
background-color: #efefef;
|
background-color: #efefef;
|
||||||
border: 1px outset #666;
|
border: 1px outset #666;
|
||||||
font-family: Arial, Helvetica, Sans-Serif;
|
font-family: Arial, Helvetica, Sans-Serif;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
height: 330px;
|
height: 330px;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
width: 550px;
|
width: 550px;
|
||||||
}
|
}
|
||||||
.jPicker_table td {
|
.jPicker_table td {
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
.jPicker_MoveBar {
|
.jPicker_MoveBar {
|
||||||
background-color: #dddddd;
|
background-color: #dddddd;
|
||||||
border: 1px outset #aaa;
|
border: 1px outset #aaa;
|
||||||
cursor: move;
|
cursor: move;
|
||||||
height: 12px;
|
height: 12px;
|
||||||
}
|
}
|
||||||
.jPicker_ColorMap {
|
.jPicker_Title {
|
||||||
border: 2px inset #eee;
|
font-size: 11px !important;
|
||||||
cursor: crosshair;
|
font-weight: bold;
|
||||||
height: 260px; /* IE 6 incorrectly draws border inside the width and height instead of outside - We will fix this to 256px later */
|
margin: -2px 0px 0px 0px;
|
||||||
margin: 12px 5px 0px 5px;
|
padding: 0px;
|
||||||
overflow: hidden; /* hide the overdraw of the Color Map icon when at edge of viewing box */
|
text-align: center;
|
||||||
padding: 0px;
|
width: 100%;
|
||||||
position: relative; /* make this element an absolute positioning container */
|
}
|
||||||
width: 260px; /* IE 6 incorrectly draws border inside the width and height instead of outside - We will fix this to 256px later */
|
.jPicker_ColorMap {
|
||||||
}
|
border: 2px inset #eee;
|
||||||
div[class="jPicker_ColorMap"] {
|
cursor: crosshair;
|
||||||
height: 256px; /* correct to 256px for browsers that support the "[class="xxx"]" selector (IE7+,Firefox,Safari,Chrome,Opera,etc.) */
|
height: 260px; /* IE 6 incorrectly draws border inside the width and height instead of outside - We will fix this to 256px later */
|
||||||
width: 256px; /* correct to 256px for browsers that support the "[class="xxx"]" selector (IE7+,Firefox,Safari,Chrome,Opera,etc.) */
|
margin: 0px 5px 0px 5px;
|
||||||
}
|
overflow: hidden; /* hide the overdraw of the Color Map icon when at edge of viewing box */
|
||||||
.jPicker_ColorMap_l1, .jPicker_ColorMap_l2, .jPicker_ColorMap_l3, .jPicker_ColorBar_l1, .jPicker_ColorBar_l2, .jPicker_ColorBar_l3, .jPicker_ColorBar_l4, .jPicker_ColorBar_l5, .jPicker_AlphaBar_l1, .jPicker_AlphaBar_l2 {
|
padding: 0px;
|
||||||
background-repeat: no-repeat;
|
position: relative; /* make this element an absolute positioning container */
|
||||||
display: block;
|
width: 260px; /* IE 6 incorrectly draws border inside the width and height instead of outside - We will fix this to 256px later */
|
||||||
height: 100%;
|
}
|
||||||
left: 0px;
|
div[class="jPicker_ColorMap"] {
|
||||||
position: absolute;
|
height: 256px; /* correct to 256px for browsers that support the "[class="xxx"]" selector (IE7+,Firefox,Safari,Chrome,Opera,etc.) */
|
||||||
top: 0px;
|
width: 256px; /* correct to 256px for browsers that support the "[class="xxx"]" selector (IE7+,Firefox,Safari,Chrome,Opera,etc.) */
|
||||||
width: 100%;
|
}
|
||||||
}
|
.jPicker_ColorMap_l1, .jPicker_ColorMap_l2, .jPicker_ColorMap_l3, .jPicker_ColorBar_l1, .jPicker_ColorBar_l2, .jPicker_ColorBar_l3, .jPicker_ColorBar_l4, .jPicker_ColorBar_l5, .jPicker_AlphaBar_l1, .jPicker_AlphaBar_l2 {
|
||||||
.jPicker_ColorMap_l1 {
|
background-repeat: no-repeat;
|
||||||
background-color: #000000;
|
display: block;
|
||||||
background-image: none;
|
height: 100%;
|
||||||
}
|
left: 0px;
|
||||||
.jPicker_ColorMap_l2 {
|
position: absolute;
|
||||||
background-color: transparent;
|
top: 0px;
|
||||||
}
|
width: 100%;
|
||||||
.jPicker_ColorMap_l3 {
|
}
|
||||||
background-repeat: repeat;
|
.jPicker_ColorMap_l1 {
|
||||||
}
|
background-color: #000000;
|
||||||
.jPicker_ColorMap_Arrow {
|
background-image: none;
|
||||||
display: block;
|
}
|
||||||
position: absolute;
|
.jPicker_ColorMap_l2 {
|
||||||
}
|
background-color: transparent;
|
||||||
.jPicker_ColorBar {
|
}
|
||||||
border: 2px inset #eee;
|
.jPicker_ColorMap_l3 {
|
||||||
cursor: n-resize;
|
background-repeat: repeat;
|
||||||
height: 260px; /* IE 6 incorrectly draws border inside the width and height instead of outside - We will fix this to 256px later */
|
}
|
||||||
margin: 12px 10px 0px 5px;
|
.jPicker_ColorMap_Arrow {
|
||||||
padding: 0px;
|
display: block;
|
||||||
position: relative;
|
position: absolute;
|
||||||
width: 24px; /* IE 6 incorrectly draws border inside the width and height instead of outside - We will fix this to 20px later */
|
}
|
||||||
}
|
.jPicker_ColorBar {
|
||||||
div[class="jPicker_ColorBar"] {
|
border: 2px inset #eee;
|
||||||
height: 256px; /* correct to 256px for browsers that support the "[class="xxx"]" selector (IE7+,Firefox,Safari,Chrome,Opera,etc.) */
|
cursor: n-resize;
|
||||||
width: 20px; /* correct to 20px for browsers that support the "[class="xxx"]" selector (IE7+,Firefox,Safari,Chrome,Opera,etc.) */
|
height: 260px; /* IE 6 incorrectly draws border inside the width and height instead of outside - We will fix this to 256px later */
|
||||||
}
|
margin: 12px 10px 0px 5px;
|
||||||
.jPicker_ColorBar_l1, .jPicker_ColorBar_l2, .jPicker_ColorBar_l3 {
|
padding: 0px;
|
||||||
background-color: transparent;
|
position: relative;
|
||||||
background-image: none;
|
width: 24px; /* IE 6 incorrectly draws border inside the width and height instead of outside - We will fix this to 20px later */
|
||||||
background-repeat: repeat-x;
|
}
|
||||||
}
|
div[class="jPicker_ColorBar"] {
|
||||||
.jPicker_ColorBar_l4 {
|
height: 256px; /* correct to 256px for browsers that support the "[class="xxx"]" selector (IE7+,Firefox,Safari,Chrome,Opera,etc.) */
|
||||||
background-color: transparent;
|
width: 20px; /* correct to 20px for browsers that support the "[class="xxx"]" selector (IE7+,Firefox,Safari,Chrome,Opera,etc.) */
|
||||||
background-repeat: repeat-x;
|
}
|
||||||
}
|
.jPicker_ColorBar_l1, .jPicker_ColorBar_l2, .jPicker_ColorBar_l3 {
|
||||||
.jPicker_ColorBar_l5 {
|
background-color: transparent;
|
||||||
background-color: transparent;
|
background-image: none;
|
||||||
background-repeat: repeat;
|
background-repeat: repeat-x;
|
||||||
}
|
}
|
||||||
.jPicker_ColorBar_Arrow {
|
.jPicker_ColorBar_l4 {
|
||||||
display: block;
|
background-color: transparent;
|
||||||
left: -10px; /* (arrow width / 2) - (element width / 2) - position arrows' center in elements' center */
|
background-repeat: repeat-x;
|
||||||
position: absolute;
|
}
|
||||||
}
|
.jPicker_ColorBar_l5 {
|
||||||
.jPicker_AlphaBar {
|
background-color: transparent;
|
||||||
border: 2px inset #eee;
|
background-repeat: repeat;
|
||||||
cursor: e-resize;
|
}
|
||||||
display: none;
|
.jPicker_ColorBar_Arrow {
|
||||||
height: 24px; /* IE 6 incorrectly draws border inside the width and height instead of outside - We will fix this to 20px later */
|
display: block;
|
||||||
margin: 10px 5px 4px 5px;
|
left: -10px; /* (arrow width / 2) - (element width / 2) - position arrows' center in elements' center */
|
||||||
padding: 0px;
|
position: absolute;
|
||||||
position: relative;
|
}
|
||||||
width: 260px; /* IE 6 incorrectly draws border inside the width and height instead of outside - We will fix this to 256px later */
|
.jPicker_AlphaBar {
|
||||||
}
|
border: 2px inset #eee;
|
||||||
div[class="jPicker_AlphaBar"] {
|
cursor: e-resize;
|
||||||
height: 20px; /* correct to 20px for browsers that support the "[class="xxx"]" selector (IE7+,Firefox,Safari,Chrome,Opera,etc.) */
|
display: none;
|
||||||
width: 256px; /* correct to 256px for browsers that support the "[class="xxx"]" selector (IE7+,Firefox,Safari,Chrome,Opera,etc.) */
|
height: 24px; /* IE 6 incorrectly draws border inside the width and height instead of outside - We will fix this to 20px later */
|
||||||
}
|
margin: 10px 5px 4px 5px;
|
||||||
.jPicker_AlphaBar_Arrow {
|
padding: 0px;
|
||||||
display: block;
|
position: relative;
|
||||||
top: -10px; /* (arrow height / 2) - (element height / 2) - position arrows' center in elements' center */
|
width: 260px; /* IE 6 incorrectly draws border inside the width and height instead of outside - We will fix this to 256px later */
|
||||||
position: absolute;
|
}
|
||||||
}
|
div[class="jPicker_AlphaBar"] {
|
||||||
.jPicker_EnableAlpha {
|
height: 20px; /* correct to 20px for browsers that support the "[class="xxx"]" selector (IE7+,Firefox,Safari,Chrome,Opera,etc.) */
|
||||||
text-align: left;
|
width: 256px; /* correct to 256px for browsers that support the "[class="xxx"]" selector (IE7+,Firefox,Safari,Chrome,Opera,etc.) */
|
||||||
}
|
}
|
||||||
.jPicker_Preview {
|
.jPicker_AlphaBar_Arrow {
|
||||||
font-size: x-small;
|
display: block;
|
||||||
text-align: center;
|
top: -10px; /* (arrow height / 2) - (element height / 2) - position arrows' center in elements' center */
|
||||||
}
|
position: absolute;
|
||||||
.jPicker_Preview div {
|
}
|
||||||
border: 2px inset #eee;
|
.jPicker_EnableAlpha {
|
||||||
height: 62px;
|
text-align: left;
|
||||||
margin: 0px auto;
|
}
|
||||||
padding: 0px;
|
.jPicker_Preview {
|
||||||
width: 62px;
|
font-size: x-small;
|
||||||
}
|
text-align: center;
|
||||||
.jPicker_Preview div span {
|
}
|
||||||
border: 1px solid #000;
|
.jPicker_Preview div {
|
||||||
display: block;
|
border: 2px inset #eee;
|
||||||
height: 30px;
|
height: 62px;
|
||||||
margin: 0px auto;
|
margin: 0px auto;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
width: 60px;
|
width: 62px;
|
||||||
}
|
}
|
||||||
.jPicker_Preview div span.jPicker_Active {
|
.jPicker_Preview div span {
|
||||||
border-bottom-width: 0px;
|
border: 1px solid #000;
|
||||||
}
|
display: block;
|
||||||
.jPicker_Preview div span.jPicker_Current {
|
height: 30px;
|
||||||
border-top-width: 0px;
|
margin: 0px auto;
|
||||||
cursor: pointer;
|
padding: 0px;
|
||||||
}
|
width: 60px;
|
||||||
.jPicker_OkCancel {
|
}
|
||||||
text-align: center;
|
.jPicker_Preview div span.jPicker_Active {
|
||||||
width: 120px;
|
border-bottom-width: 0px;
|
||||||
}
|
}
|
||||||
.jPicker_OkCancel input {
|
.jPicker_Preview div span.jPicker_Current {
|
||||||
width: 100px;
|
border-top-width: 0px;
|
||||||
}
|
cursor: pointer;
|
||||||
.jPicker_OkCancel input.jPicker_Ok {
|
}
|
||||||
margin: 12px 0px 5px 0px;
|
.jPicker_OkCancel {
|
||||||
}
|
text-align: center;
|
||||||
.jPicker_Spacer {
|
width: 120px;
|
||||||
height: 10px;
|
}
|
||||||
}
|
.jPicker_OkCancel input {
|
||||||
.jPicker_HueText, .jPicker_SaturationText, .jPicker_BrightnessText, .jPicker_RedText, .jPicker_GreenText, .jPicker_BlueText, .jPicker_AlphaText {
|
width: 100px;
|
||||||
background-color: #fff;
|
}
|
||||||
border: 1px inset #aaa;
|
.jPicker_OkCancel input.jPicker_Ok {
|
||||||
margin: 0px 0px 0px 5px;
|
margin: 12px 0px 5px 0px;
|
||||||
width: 30px;
|
}
|
||||||
}
|
.jPicker_Spacer {
|
||||||
.jPicker_EnterHex {
|
height: 10px;
|
||||||
text-align: right;
|
}
|
||||||
}
|
.jPicker_HueText, .jPicker_SaturationText, .jPicker_BrightnessText, .jPicker_RedText, .jPicker_GreenText, .jPicker_BlueText, .jPicker_AlphaText {
|
||||||
.jPicker_HexText {
|
background-color: #fff;
|
||||||
background-color: #fff;
|
border: 1px inset #aaa;
|
||||||
border: 1px inset #aaa;
|
margin: 0px 0px 0px 5px;
|
||||||
margin: 0px 19px 0px 5px;
|
width: 30px;
|
||||||
width: 50px;
|
}
|
||||||
}
|
.jPicker_EnterHex {
|
||||||
td.jPicker_OpacityCol {
|
text-align: right;
|
||||||
padding-top: 12px;
|
}
|
||||||
text-indent: -8px;
|
.jPicker_HexText {
|
||||||
}
|
background-color: #fff;
|
||||||
td.jPicker_OpacityCol * {
|
border: 1px inset #aaa;
|
||||||
display: none;
|
margin: 0px 19px 0px 5px;
|
||||||
}
|
width: 50px;
|
||||||
td.jPicker_HexCol {
|
}
|
||||||
text-align: left;
|
td.jPicker_OpacityCol {
|
||||||
}
|
padding-top: 12px;
|
||||||
.jPicker_Grid {
|
text-indent: -8px;
|
||||||
text-align: center;
|
}
|
||||||
}
|
td.jPicker_OpacityCol * {
|
||||||
.jPicker_QuickColor {
|
display: none;
|
||||||
border: 1px inset #aaa;
|
}
|
||||||
cursor: pointer;
|
td.jPicker_HexCol {
|
||||||
display: block;
|
text-align: left;
|
||||||
float: left;
|
}
|
||||||
height: 12px;
|
.jPicker_Grid {
|
||||||
line-height: 12px;
|
text-align: center;
|
||||||
margin: 2px 3px 1px 3px;
|
}
|
||||||
padding: 0px;
|
.jPicker_QuickColor {
|
||||||
width: 12px;
|
border: 1px inset #aaa;
|
||||||
}
|
cursor: pointer;
|
||||||
|
display: block;
|
||||||
|
float: left;
|
||||||
|
height: 12px;
|
||||||
|
line-height: 12px;
|
||||||
|
margin: 2px 3px 1px 3px;
|
||||||
|
padding: 0px;
|
||||||
|
width: 12px;
|
||||||
|
}
|
File diff suppressed because one or more lines are too long
2
editor/jpicker/jpicker.js → editor/jpicker/jpicker-1.0.9.min.js
vendored
Normal file → Executable file
2
editor/jpicker/jpicker.js → editor/jpicker/jpicker-1.0.9.min.js
vendored
Normal file → Executable file
File diff suppressed because one or more lines are too long
|
@ -2,14 +2,14 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<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" href="jpicker/jpicker.css" type="text/css"/>
|
<link rel="stylesheet" href="jpicker/css/jPicker-1.0.9.css" type="text/css"/>
|
||||||
<link rel="stylesheet" href="svg-editor.css" type="text/css"/>
|
<link rel="stylesheet" href="svg-editor.css" type="text/css"/>
|
||||||
<link rel="stylesheet" href="spinbtn/JQuerySpinBtn.css" type="text/css"/>
|
<link rel="stylesheet" href="spinbtn/JQuerySpinBtn.css" type="text/css"/>
|
||||||
<link rel="stylesheet" href="jgraduate/jgraduate.css" type="text/css"/>
|
<link rel="stylesheet" href="jgraduate/jgraduate.css" type="text/css"/>
|
||||||
<script type="text/javascript" src="jquery.js"></script>
|
<script type="text/javascript" src="jquery.js"></script>
|
||||||
<!--script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script-->
|
<!--script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script-->
|
||||||
<script type="text/javascript" src="js-hotkeys/jquery.hotkeys.min.js"></script>
|
<script type="text/javascript" src="js-hotkeys/jquery.hotkeys.min.js"></script>
|
||||||
<script type="text/javascript" src="jpicker/jpicker.js"></script>
|
<script type="text/javascript" src="jpicker/jpicker-1.0.9.js"></script>
|
||||||
<script type="text/javascript" src="spinbtn/JQuerySpinBtn.js"></script>
|
<script type="text/javascript" src="spinbtn/JQuerySpinBtn.js"></script>
|
||||||
<!--script type="text/javascript" src="spinbtn/JQuerySpinBtn.min.js"></script-->
|
<!--script type="text/javascript" src="spinbtn/JQuerySpinBtn.min.js"></script-->
|
||||||
<script type="text/javascript" src="jgraduate/jquery.jgraduate.js"></script>
|
<script type="text/javascript" src="jgraduate/jquery.jgraduate.js"></script>
|
||||||
|
|
|
@ -11,8 +11,10 @@ var svgWhiteList = {
|
||||||
"defs": [],
|
"defs": [],
|
||||||
"ellipse": ["cx", "cy", "fill", "fill-opacity", "id", "stroke", "rx", "ry", "stroke-opacity", "stroke-width", "stroke-dasharray"],
|
"ellipse": ["cx", "cy", "fill", "fill-opacity", "id", "stroke", "rx", "ry", "stroke-opacity", "stroke-width", "stroke-dasharray"],
|
||||||
"line": ["fill", "fill-opacity", "id", "stroke", "stroke-opacity", "stroke-width", "stroke-dasharray", "x1", "x2", "y1", "y2"],
|
"line": ["fill", "fill-opacity", "id", "stroke", "stroke-opacity", "stroke-width", "stroke-dasharray", "x1", "x2", "y1", "y2"],
|
||||||
|
"linearGradient": ["id", "x1", "x2", "y1", "y2"],
|
||||||
"path": ["d", "fill", "fill-opacity", "id", "stroke", "stroke-opacity", "stroke-width", "stroke-dasharray"],
|
"path": ["d", "fill", "fill-opacity", "id", "stroke", "stroke-opacity", "stroke-width", "stroke-dasharray"],
|
||||||
"rect": ["fill", "fill-opacity", "height", "id", "stroke", "stroke-opacity", "stroke-width", "stroke-dasharray", "width", "x", "y"],
|
"rect": ["fill", "fill-opacity", "height", "id", "stroke", "stroke-opacity", "stroke-width", "stroke-dasharray", "width", "x", "y"],
|
||||||
|
"stop": ["id", "stop-color", "stop-opacity"],
|
||||||
"svg": ["id", "height", "width", "xmlns"],
|
"svg": ["id", "height", "width", "xmlns"],
|
||||||
"text": ["font-family", "font-size", "font-style", "font-weight", "id", "x", "y"],
|
"text": ["font-family", "font-size", "font-style", "font-weight", "id", "x", "y"],
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue