Added secondary color support.

Added :
- second color picker
- removed automatic switch to eraser when using right click
- colors are automatically added to palette when selected
This commit is contained in:
juliandescottes
2012-09-06 22:37:19 +02:00
parent f2b1e433c0
commit 4c1c96095f
5 changed files with 61 additions and 34 deletions

View File

@@ -9,6 +9,7 @@
.tool-icon {
float: left;
cursor : pointer;
width: 30px;
height: 30px;
background-color: transparent;
@@ -74,17 +75,25 @@
}
.tool-icon:hover {
cursor: pointer;
background-color: #eee;
}
.tool-color-picker {
padding: 5px 0 0 5px;
cursor : default;
}
.tool-color-picker input {
width: 12px; height: 12px;
width: 8px; height: 8px;
border: 1px solid black;
padding: 1px;
background: white;
margin: 7px 0 0 7px;
cursor: pointer;
position : relative;
}
#secondary-color-picker {
top : 8px;
}
.tool-palette {