From 5c0df494bb8382b1df60f17238d4348866ac53f9 Mon Sep 17 00:00:00 2001 From: ffont Date: Thu, 1 Feb 2024 16:05:08 +0100 Subject: [PATCH] Disallow horizontal scrolling --- freesound/static/bw-frontend/styles/layout/global.scss | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/freesound/static/bw-frontend/styles/layout/global.scss b/freesound/static/bw-frontend/styles/layout/global.scss index 200d7536e..51caf51b6 100644 --- a/freesound/static/bw-frontend/styles/layout/global.scss +++ b/freesound/static/bw-frontend/styles/layout/global.scss @@ -6,6 +6,10 @@ html { background-color: $html-bg; scroll-behavior:smooth; scroll-padding-top: 110px; + + /* disallow horizontal scrolling */ + max-width: 100%; + overflow-x: hidden; } body { @@ -18,6 +22,10 @@ body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-weight: 400; /* designer sugegsted overall font weight 500, but we're making it 400 as otherwise it felt too heavy */ + + /* disallow avoid horizontal scrolling */ + max-width: 100%; + overflow-x: hidden; @include md-and-above { font-size: $base-size;