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 2abf2a87652715b5f98aabeeb078e8486981a98f..686b5e52b8209f6aa39b9f46b1d573cf4c6f6269 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=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>
index 423a1a0f2bc353f281469f89fd7207008f462fc3..543678096c4a6613ddba4420651004a9d4664106 100644 (file)
@@ -437,7 +437,7 @@ input {
 #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;
index 15e4bfa8c06c6bbce2fa8aeec123a013d605085f..801a5f29cf5360c238baf9801e81e5d090cfa93f 100644 (file)
@@ -49,7 +49,7 @@ var FollowScene = yT(yuu.Scene, {
 
     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);
         },
index 4e2eb23cfb32720356173d26a581eb1f206b0113..a7b3354eae5822cce66f7051f35560945b895544 100644 (file)
@@ -196,6 +196,10 @@ pre#yuu-licensing {
     -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 {
@@ -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;
+    width: 95%;
 }
 
 input[type=range][data-yuu-command]::-moz-range-track {