From 02974aa00cad864b84740f21c21e8609b6bd0d0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Sun, 29 Mar 2020 19:44:00 +0200 Subject: [PATCH] Photo: Fix Number parallax and Location margins --- src/animations/Photo.js | 2 +- src/style/organisms/_photos.scss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/animations/Photo.js b/src/animations/Photo.js index 6174c4e..a900a19 100644 --- a/src/animations/Photo.js +++ b/src/animations/Photo.js @@ -46,7 +46,7 @@ export const animateIn = scope => { const nbParallax = nbParallaxMedia => { if (nbParallaxMedia.matches) { const scroll = ScrollOut({ - targets: scope.querySelector('.photo_number span'), + targets: scope.querySelector('.photo__number span'), onShown (el) { const translate = anime({ targets: el, diff --git a/src/style/organisms/_photos.scss b/src/style/organisms/_photos.scss index 61cf25a..9bd4a0e 100644 --- a/src/style/organisms/_photos.scss +++ b/src/style/organisms/_photos.scss @@ -198,7 +198,7 @@ h2 { font-size: rem(28px); - margin-top: 28px; + margin-top: 24px; white-space: normal; }