From 79108f8770926943f980cb02e31c34f8a71c6b11 Mon Sep 17 00:00:00 2001 From: LoveEevee Date: Sun, 14 Oct 2018 14:49:23 +0300 Subject: [PATCH] Hide overflow for root element --- public/src/css/main.css | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/public/src/css/main.css b/public/src/css/main.css index 225619d..c188c95 100644 --- a/public/src/css/main.css +++ b/public/src/css/main.css @@ -12,9 +12,10 @@ body{ width: 100%; height: 100%; background: #fe7839; - position: relative; + position: absolute; user-select: none; touch-action: none; + overflow: hidden; } #screen{ width: 100%; @@ -233,10 +234,10 @@ kbd{ } @keyframes bgscroll{ from{ - background-position: 0 center; + background-position: 0 top; } to{ - background-position: calc(-100vh / 720 * 512) center; + background-position: calc(-100vh / 720 * 512) top; } } #song-select{ @@ -251,9 +252,7 @@ kbd{ } #song-sel-canvas{ position: absolute; - top: 0; right: 0; - bottom: 0; left: 0; margin: auto; }