From: Joe Wreschnig Date: Mon, 6 Oct 2014 23:00:07 +0000 (+0200) Subject: Adjust HTML and shrink canvas. X-Git-Url: https://git.yukkurigames.com/?p=yuu.git;a=commitdiff_plain;h=5b9d123e1cf7547bc4a9138687d43c7e2adfbac0 Adjust HTML and shrink canvas. --- 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 index 4c61cdd..0000000 Binary files a/src/data/images/icons.iconset/icon_32x32@2x.png and /dev/null differ diff --git a/src/index.html b/src/index.html index 2abf2a8..686b5e5 100644 --- a/src/index.html +++ b/src/index.html @@ -7,25 +7,26 @@ content='user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1, minimal-ui'> - - - - - - - - - - - - - - - - + content=black-translucent> + + + + + + + + + + + + + + + + + diff --git a/src/main.css b/src/main.css index 423a1a0..5436780 100644 --- a/src/main.css +++ b/src/main.css @@ -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; diff --git a/src/main.js b/src/main.js index 15e4bfa..801a5f2 100644 --- a/src/main.js +++ b/src/main.js @@ -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); }, diff --git a/src/yuu/data/yuu.css b/src/yuu/data/yuu.css index 4e2eb23..a7b3354 100644 --- a/src/yuu/data/yuu.css +++ b/src/yuu/data/yuu.css @@ -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 {