-
-
diff --git a/css/style.css b/css/style.css index 8ef86e8d..ce04f1d1 100644 --- a/css/style.css +++ b/css/style.css @@ -127,6 +127,26 @@ ul, li { z-index: 1; } +.drawing-canvas-container { + float: left; +} + +.tool-paint-bucket .drawing-canvas-container:hover { + cursor: url(../img/tools/paint-bucket.png) 18 17, pointer; +} + +.tool-pen .drawing-canvas-container:hover { + cursor: url(../img/tools/pen.png) 7 21, pointer; +} + +.tool-eraser .drawing-canvas-container:hover { + cursor: url(../img/tools/eraser.png) 5 21, pointer; +} + +/** + * Tool section: + */ + #palette li { display : inline-block; height : 20px; @@ -134,11 +154,55 @@ ul, li { margin : 5px; } +.tools-container { + float: left; +} + +.tools-container .tool-icon { + display: block; + float: left; + margin-right: 2px; +} + +.tool-icon { + width: 30px; + height: 30px; + border: 5px solid #fff; +} + +.tool-icon:hover { + border-color: #; +} + +.tool-icon:hover { + cursor: pointer; + border: 5px solid #eee; +} + +.tool-icon.selected { + cursor: auto; + border: 5px solid #ddd; +} + +.tool-icon.tool-pen { + background: #fff url(../img/tools/pen.png) 3px 3px no-repeat; +} + +.tool-icon.tool-paint-bucket { + background: #fff url(../img/tools/paint-bucket.png) 3px 3px no-repeat; +} + +.tool-icon.tool-eraser { + background: #fff url(../img/tools/eraser.png) 3px 3px no-repeat; +} + #preview-fps { width : 200px; } -/* User messages */ +/** + * User messages + */ .user-message { position: fixed; bottom: 0; diff --git a/img/tools/.DS_Store b/img/tools/.DS_Store new file mode 100644 index 00000000..5008ddfc Binary files /dev/null and b/img/tools/.DS_Store differ diff --git a/img/tools/eraser.png b/img/tools/eraser.png new file mode 100644 index 00000000..b9b7522e Binary files /dev/null and b/img/tools/eraser.png differ diff --git a/img/tools/paint-bucket.png b/img/tools/paint-bucket.png new file mode 100644 index 00000000..4d3e6901 Binary files /dev/null and b/img/tools/paint-bucket.png differ diff --git a/img/tools/pen.png b/img/tools/pen.png new file mode 100644 index 00000000..c6768e89 Binary files /dev/null and b/img/tools/pen.png differ diff --git a/index.html b/index.html index b28787d6..80c61854 100644 --- a/index.html +++ b/index.html @@ -23,12 +23,16 @@