Skip to content

Commit

Permalink
Disallow horizontal scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
ffont committed Feb 1, 2024
1 parent a5f413e commit 5c0df49
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions freesound/static/bw-frontend/styles/layout/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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;
Expand Down

0 comments on commit 5c0df49

Please sign in to comment.