piskel/css/tools.css

200 lines
3.8 KiB
CSS
Raw Normal View History

2012-09-05 01:48:02 +04:00
.tools-group {
float: left;
height: 30px;
2012-09-16 06:33:26 +04:00
border-left: 1px solid #ccc;
2012-09-05 01:48:02 +04:00
padding: 0 3px;
}
.tool-icon {
float: left;
cursor : pointer;
2012-09-05 01:48:02 +04:00
width: 30px;
height: 30px;
background-color: transparent;
background-repeat: no-repeat;
background-position: 7px 7px;
}
2012-09-16 02:48:20 +04:00
/*
* Framesheet level actions:
*/
2012-09-05 01:48:02 +04:00
.tool-icon.tool-save {
2012-09-16 06:33:26 +04:00
background-image: url(../img/actions/save.png);
2012-09-05 01:48:02 +04:00
}
.tool-icon.tool-export {
background-image: url(../img/actions/image-export.png);
background-position: 6px 3px;
}
2012-09-05 01:48:02 +04:00
.tool-icon.tool-add-frame {
2012-09-16 06:33:26 +04:00
background-image: url(../img/actions/add.png);
2012-09-05 01:48:02 +04:00
}
2012-09-16 02:48:20 +04:00
/*
* Tool icons:
*/
2012-09-05 01:48:02 +04:00
.tool-icon.tool-pen {
2012-09-16 06:33:26 +04:00
background-image: url(../img/tools/pen.png);
2012-09-05 01:48:02 +04:00
}
.tool-icon.tool-vertical-mirror-pen {
2012-09-16 06:33:26 +04:00
background-image: url(../img/tools/vertical-mirror-pen.png);
}
2012-09-05 01:48:02 +04:00
.tool-icon.tool-paint-bucket {
2012-09-16 06:33:26 +04:00
background-image: url(../img/tools/paint-bucket.png);
2012-09-05 01:48:02 +04:00
}
.tool-icon.tool-eraser {
2012-09-16 06:33:26 +04:00
background-image: url(../img/tools/eraser.png);
2012-09-05 01:48:02 +04:00
}
.tool-icon.tool-stroke {
2012-09-16 06:33:26 +04:00
background-image: url(../img/tools/stroke.png);
2012-09-05 01:48:02 +04:00
}
.tool-icon.tool-rectangle {
2012-09-16 06:33:26 +04:00
background-image: url(../img/tools/rectangle.png);
2012-09-05 01:48:02 +04:00
}
2012-09-15 00:20:00 +04:00
.tool-icon.tool-circle {
2012-09-16 06:33:26 +04:00
background-image: url(../img/tools/circle.png);
2012-09-15 00:20:00 +04:00
}
2012-09-07 03:08:25 +04:00
.tool-icon.tool-move {
2012-09-16 06:33:26 +04:00
background-image: url(../img/tools/hand.png);
2012-09-07 03:08:25 +04:00
}
2012-09-14 22:12:21 +04:00
.tool-icon.tool-rectangle-select {
2012-09-16 06:33:26 +04:00
background-image: url(../img/tools/select.png);
2012-09-14 00:57:32 +04:00
}
2012-09-14 22:12:21 +04:00
.tool-icon.tool-shape-select {
2012-09-16 06:33:26 +04:00
background-image: url(../img/tools/wand.png);
2012-09-14 22:12:21 +04:00
}
2012-09-05 01:48:02 +04:00
/*.tool-icon.tool-palette {
2012-09-16 06:33:26 +04:00
background-image: url(../img/tools/color-palette.png);
2012-09-05 01:48:02 +04:00
}*/
2012-09-16 02:48:20 +04:00
/*
* Tool cursors:
*/
2012-09-05 01:48:02 +04:00
.tool-paint-bucket .drawing-canvas-container:hover {
2012-09-16 06:33:26 +04:00
cursor: url(../img/tools/paint-bucket.png) 14 12, pointer;
2012-09-05 01:48:02 +04:00
}
.tool-vertical-mirror-pen .drawing-canvas-container:hover {
2012-09-16 06:33:26 +04:00
cursor: url(../img/tools/vertical-mirror-pen.png) 14 12, pointer;
}
2012-09-05 01:48:02 +04:00
.tool-pen .drawing-canvas-container:hover {
2012-09-16 06:33:26 +04:00
cursor: url(../img/tools/pen.png) 2 21, pointer;
2012-09-05 01:48:02 +04:00
}
.tool-eraser .drawing-canvas-container:hover {
2012-09-16 06:33:26 +04:00
cursor: url(../img/tools/eraser.png) 2 21, pointer;
2012-09-05 01:48:02 +04:00
}
.tool-stroke .drawing-canvas-container:hover {
2012-09-16 06:33:26 +04:00
cursor: url(../img/tools/pen.png) 2 21, pointer;
2012-09-05 01:48:02 +04:00
}
.tool-rectangle .drawing-canvas-container:hover {
2012-09-16 06:33:26 +04:00
cursor: url(../img/tools/rectangle.png) 4 21, pointer;
2012-09-05 01:48:02 +04:00
}
2012-09-15 00:20:00 +04:00
.tool-circle .drawing-canvas-container:hover {
2012-09-16 06:33:26 +04:00
cursor: url(../img/tools/circle.png) 4 21, pointer;
2012-09-15 00:20:00 +04:00
}
2012-09-07 03:14:51 +04:00
.tool-move .drawing-canvas-container:hover {
2012-09-16 06:33:26 +04:00
cursor: url(../img/tools/hand.png) 14 12, pointer;
2012-09-07 03:08:25 +04:00
}
2012-09-14 22:12:21 +04:00
.tool-rectangle-select .drawing-canvas-container:hover {
2012-09-16 06:33:26 +04:00
cursor: url(../img/tools/select.png) 14 12, pointer;
2012-09-14 00:57:32 +04:00
}
2012-09-14 22:12:21 +04:00
.tool-shape-select .drawing-canvas-container:hover {
2012-09-16 06:33:26 +04:00
cursor: url(../img/tools/wand.png) 14 12, pointer;
2012-09-14 22:12:21 +04:00
}
.tool-grid,
.tool-grid label,
.tool-grid input {
line-height: 2.5;
cursor: pointer;
}
2012-09-05 01:48:02 +04:00
.tool-icon.selected {
cursor: auto;
background-color: #eee;
}
.tool-icon:hover {
background-color: #eee;
}
.tool-color-picker {
padding: 5px 0 0 5px;
2012-09-16 06:33:26 +04:00
height: 25px;
cursor : default;
}
2012-09-05 01:48:02 +04:00
.tool-color-picker input {
width: 8px; height: 8px;
2012-09-05 01:48:02 +04:00
border: 1px solid black;
padding: 1px;
background: white;
cursor: pointer;
position : relative;
}
2012-09-16 06:33:26 +04:00
.secondary-color-picker {
top : 8px;
2012-09-05 01:48:02 +04:00
}
.tool-palette {
width: auto;
}
.tool-palette .palette li {
float: left;
}
.palette .palette-color {
cursor: pointer;
display : inline-block;
height : 20px;
width : 20px;
margin : 5px;
}
.palette .palette-color.transparent-color {
background-color: white;
height : 16px;
width : 16px;
border: 2px solid #000;
background-image: -webkit-gradient(
linear,
left top,
right bottom,
color-stop(0, #fff),
color-stop(0.45, #fff),
color-stop(0.5, #ff0000),
color-stop(0.55, #fff),
color-stop(1, #fff)
);
background-image: -moz-linear-gradient(
left top,
#fff 0%,
#fff 45%,
#f00 50%,
#fff 55%,
#fff 100%
);
}