From cc264cc0780b9f983bd25030ea1db14ef44eb192 Mon Sep 17 00:00:00 2001 From: Alexis Gousseau Date: Tue, 7 Jun 2022 15:17:10 +0200 Subject: [PATCH] Ticket 865 : centering of text --- resources/sass/front/pages/_home.scss | 10 ++-------- resources/sass/front/pages/brand/index.scss | 19 ++----------------- 2 files changed, 4 insertions(+), 25 deletions(-) diff --git a/resources/sass/front/pages/_home.scss b/resources/sass/front/pages/_home.scss index 097e8292..cb19fec9 100644 --- a/resources/sass/front/pages/_home.scss +++ b/resources/sass/front/pages/_home.scss @@ -554,17 +554,11 @@ border-radius: 14px; position: absolute; bottom: -14px; - left: 22%; + left: 50%; + transform: translateX(-50%); box-shadow: -4px 7px 0px 0px #ffffff, 4px 7px 0px 0px #ffffff; cursor: pointer; - - @include max-width( $mobile) { - left: 0; - right: 0; - bottom: -16px; - text-align: center; - } } } } diff --git a/resources/sass/front/pages/brand/index.scss b/resources/sass/front/pages/brand/index.scss index 12545cce..151492e4 100644 --- a/resources/sass/front/pages/brand/index.scss +++ b/resources/sass/front/pages/brand/index.scss @@ -282,13 +282,11 @@ border-radius: 14px; position: absolute; bottom: -14px; - left: 22%; + left: 50%; + transform: translateX(-50%); box-shadow: -4px 7px 0px 0px #ffffff, 4px 7px 0px 0px #ffffff; cursor: pointer; - @include max-width($desktop) { - left: 14%; - } } picture { width: auto; @@ -311,24 +309,11 @@ width: 100%; .txtOui { width: 80%; - a { - left: 50%; - transform: translateX(-50%); - text-align: center; - } - - } } @include max-width($mobile) { .txtOui { width: 100%; - a { - left: 50%; - transform: translateX(-50%); - text-align: center; - width: 96%; - } picture { top: -90px; img {