From 7601fe8b44a3596c5df8158267b7354160dc6048 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Sat, 4 Apr 2020 18:13:13 +0200 Subject: [PATCH] Fix global horizontal overflow --- src/style/_base.scss | 1 - src/style/layouts/_main.scss | 3 ++- src/style/organisms/_photos.scss | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/style/_base.scss b/src/style/_base.scss index 02e102c..6a8c58d 100644 --- a/src/style/_base.scss +++ b/src/style/_base.scss @@ -8,7 +8,6 @@ body { background: $color-primary; color: #fff; cursor: default; - overflow-x: hidden; } *, *:before, *:after { box-sizing: border-box; diff --git a/src/style/layouts/_main.scss b/src/style/layouts/_main.scss index a8d88a4..b70e32d 100644 --- a/src/style/layouts/_main.scss +++ b/src/style/layouts/_main.scss @@ -1,9 +1,10 @@ // Main page .housesof { + overflow: hidden; position: absolute; top: 0; left: 0; - right: 0; + width: 100%; transition: opacity 0.4s $ease-quart; will-change: opacity; diff --git a/src/style/organisms/_photos.scss b/src/style/organisms/_photos.scss index b06b5cd..9bd4a0e 100644 --- a/src/style/organisms/_photos.scss +++ b/src/style/organisms/_photos.scss @@ -1,5 +1,4 @@ .photos { - overflow: hidden; position: relative; margin-top: -22px; background-color: #fff;