Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lets you draw with touches. There's also a manifest.webapp for open web apps (such as for Firefox OS). Modernizr is used for detecting whether the device supports touches, but this is _not_ 100% reliable, yet: Modernizr/Modernizr#548 Currently, the points are 15px off on the Y axis.
- Loading branch information
Showing
6 changed files
with
1,483 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
// General styles | ||
body | ||
margin 2em | ||
padding 0 | ||
margin 0 | ||
#sceitse | ||
position relative | ||
display block | ||
height 100% | ||
color #555 | ||
font-family sans-serif | ||
background-color cornsilk | ||
canvas | ||
display block | ||
margin auto | ||
margin 15px | ||
background-color white | ||
box-shadow 0px 2px 10px 1px rgba(0, 0, 0, 0.4) | ||
cursor crosshair | ||
|
||
canvas#sceitse | ||
display block | ||
margin auto | ||
background-color white | ||
box-shadow 0px 2px 10px 1px rgba(0, 0, 0, 0.4) | ||
cursor crosshair | ||
|
||
.touch-enabled | ||
canvas#sceite | ||
width 100% | ||
height 100% | ||
// Overrides for touch-enabled devices | ||
//@media (max-width: 320px) |
Oops, something went wrong.