Adjust HTML and shrink canvas.
authorJoe Wreschnig <joe.wreschnig@gmail.com>
Mon, 6 Oct 2014 23:00:07 +0000 (01:00 +0200)
committerJoe Wreschnig <joe.wreschnig@gmail.com>
Mon, 6 Oct 2014 23:00:07 +0000 (01:00 +0200)
src/data/images/icons.iconset/icon_32x32@2x.png [deleted file]
src/index.html
src/main.css
src/main.js
src/yuu/data/yuu.css

diff --git a/src/data/images/icons.iconset/icon_32x32@2x.png b/src/data/images/icons.iconset/icon_32x32@2x.png
deleted file mode 100644 (file)
index 4c61cdd..0000000
Binary files a/src/data/images/icons.iconset/icon_32x32@2x.png and /dev/null differ
index 2abf2a8..686b5e5 100644 (file)
@@ -7,25 +7,26 @@
           content='user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1, minimal-ui'>
     <meta name=apple-mobile-web-app-capable content=yes>
     <meta name=apple-mobile-web-app-status-bar-style
           content='user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1, minimal-ui'>
     <meta name=apple-mobile-web-app-capable content=yes>
     <meta name=apple-mobile-web-app-status-bar-style
-          content=black-translucent />
-    <link rel=icon href='data/images/icons.ico'
-          sizes='32x32 64x64 256x256'>
-    <link rel=icon href='data/images/icons.icns'
-          sizes='32x32 64x64 256x256'>
-    <link rel=stylesheet href='yuu/data/yuu.css'>
-    <link rel=stylesheet href='main.css'>
-    <script src='ext/gl-matrix.js'></script>
-    <script src='ext/hammer.js'></script>
-    <script src='yuu/pre.js'></script>
-    <script src='yuu/yf.js'></script>
-    <script src='yuu/yT.js'></script>
-    <script src='yuu/core.js'></script>
-    <script src='yuu/input.js'></script>
-    <script src='yuu/ce.js'></script>
-    <script src='yuu/gfx.js'></script>
-    <script src='yuu/rdr.js'></script>
-    <script src='yuu/director.js'></script>
-    <script src='main.js'></script>
+          content=black-translucent>
+    <meta name=mobile-web-app-capable content=yes>
+    <link rel=icon href=data/images/icons.iconset/icon_32x32.png
+          sizes=32x32>
+    <link rel=icon href=data/images/icons.iconset/icon_256x256.png
+          sizes=256x256>
+    <link rel=stylesheet href=yuu/data/yuu.css>
+    <link rel=stylesheet href=main.css>
+    <script src=ext/gl-matrix.js></script>
+    <script src=ext/hammer.js></script>
+    <script src=yuu/pre.js></script>
+    <script src=yuu/yf.js></script>
+    <script src=yuu/yT.js></script>
+    <script src=yuu/core.js></script>
+    <script src=yuu/input.js></script>
+    <script src=yuu/ce.js></script>
+    <script src=yuu/gfx.js></script>
+    <script src=yuu/rdr.js></script>
+    <script src=yuu/director.js></script>
+    <script src=main.js></script>
   </head>
   
   <body>
   </head>
   
   <body>
index 423a1a0..5436780 100644 (file)
@@ -437,7 +437,7 @@ input {
 #yuu-canvas {
     margin: 1em auto;
     width: 100%;
 #yuu-canvas {
     margin: 1em auto;
     width: 100%;
-    height: 20em;
+    height: 12em;
     position: static;
     border: solid rgba(206, 132, 242, 0.5) 2px;
     border-radius: 2em;
     position: static;
     border: solid rgba(206, 132, 242, 0.5) 2px;
     border-radius: 2em;
index 15e4bfa..801a5f2 100644 (file)
@@ -49,7 +49,7 @@ var FollowScene = yT(yuu.Scene, {
 
     inputs: {
         resize: function () {
 
     inputs: {
         resize: function () {
-            var base = new yuu.AABB(-1.5, -1.5, 1.5, 1.5);
+            var base = new yuu.AABB(-0.5, -0.5, 0.5, 0.5);
             var vp = base.matchAspectRatio(yuu.viewport);
             this.layer0.resize(vp.x0, vp.y0, vp.w, vp.h);
         },
             var vp = base.matchAspectRatio(yuu.viewport);
             this.layer0.resize(vp.x0, vp.y0, vp.w, vp.h);
         },
index 4e2eb23..a7b3354 100644 (file)
@@ -196,6 +196,10 @@ pre#yuu-licensing {
     -webkit-transition: -webkit-transform 0.3s, opacity 0.3s;
 }
 
     -webkit-transition: -webkit-transform 0.3s, opacity 0.3s;
 }
 
+noscript .yuu-overlay {
+    display: block;
+}
+
 /* Overlays are focusable but should not show it - they are always
    somewhere in the event tree when visible. */
 .yuu-overlay:focus {
 /* Overlays are focusable but should not show it - they are always
    somewhere in the event tree when visible. */
 .yuu-overlay:focus {
@@ -294,6 +298,7 @@ input[type=checkbox][data-yuu-command]:focus + label[for] {
 input[type=range][data-yuu-command] {
     -webkit-appearance: none;
     background-color: gray;
 input[type=range][data-yuu-command] {
     -webkit-appearance: none;
     background-color: gray;
+    width: 95%;
 }
 
 input[type=range][data-yuu-command]::-moz-range-track {
 }
 
 input[type=range][data-yuu-command]::-moz-range-track {