From c186b05a300ca67a4deb246fbe007b22d0e436d0 Mon Sep 17 00:00:00 2001 From: aoki ken Date: Sun, 9 Aug 2020 02:07:05 +0900 Subject: [PATCH] Update SplashViz.scss fixed centering .splash-viz__modules --- src/components/SplashViz/SplashViz.scss | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/SplashViz/SplashViz.scss b/src/components/SplashViz/SplashViz.scss index 91ca4995b9b7..98185f59623e 100644 --- a/src/components/SplashViz/SplashViz.scss +++ b/src/components/SplashViz/SplashViz.scss @@ -27,15 +27,13 @@ &__modules { position: absolute; - left: 0; - right: 0; - top: 50%; // vertical center - bottom: 0; + top: 50%; + left: 50%; width: 75vw; min-width: 550px; max-width: map-get($screens, large); margin: 0 auto; - transform: translateY(-50%); // vertical center + transform: translate(-50%, -50%); display: none; @include break {