From b0b0136f3417ac29f3f8fe802d28dc2818ed1c35 Mon Sep 17 00:00:00 2001 From: kvakazyambra Date: Wed, 4 Oct 2023 00:52:38 +0300 Subject: [PATCH] Modal style fixes --- .../Nav/AuthModal/AuthModal.module.scss | 10 +++- src/components/Nav/Modal/Modal.module.scss | 29 +++++++++-- src/components/Nav/Modal/Modal.tsx | 49 ++++++++++--------- 3 files changed, 58 insertions(+), 30 deletions(-) diff --git a/src/components/Nav/AuthModal/AuthModal.module.scss b/src/components/Nav/AuthModal/AuthModal.module.scss index 1e097b54..6b8216b5 100644 --- a/src/components/Nav/AuthModal/AuthModal.module.scss +++ b/src/components/Nav/AuthModal/AuthModal.module.scss @@ -87,14 +87,20 @@ .disclaimer { @include font-size(1.2rem); - color: #9fa1a7; margin-bottom: 0; + + a { + color: #fff !important; + + &:hover { + color: rgb(255, 255, 255, 0.6) !important; + } + } } .authActions { @include font-size(1.5rem); - margin-top: 1.6rem; text-align: center; diff --git a/src/components/Nav/Modal/Modal.module.scss b/src/components/Nav/Modal/Modal.module.scss index da5adb45..7f4f3ca1 100644 --- a/src/components/Nav/Modal/Modal.module.scss +++ b/src/components/Nav/Modal/Modal.module.scss @@ -16,18 +16,16 @@ .modal { background: #fff; max-width: 1000px; - padding: 5.4rem 2.4rem 2.4rem; position: relative; width: 100%; @include media-breakpoint-up(sm) { - padding: 4.2rem; width: 80%; } .close { position: absolute; - top: 1.6rem; + top: 2rem; cursor: pointer; height: 18px; width: 16px; @@ -38,7 +36,7 @@ z-index: 1; @include media-breakpoint-up(sm) { - right: 1.6rem; + right: 2rem; } &:hover { @@ -74,9 +72,30 @@ } } +.modalInner { + overflow: auto; + padding: 5.4rem 2.4rem 2.4rem; + position: relative; + + @include media-breakpoint-up(sm) { + padding: 5rem; + } +} + .noPadding { background: none; - padding: 0 2rem; + left: 50%; + padding: 0; + transform: translateX(-50%); + + .modalInner { + padding: 0 2rem; + } + + .close { + right: 2rem; + top: 2rem; + } } .maxHeight { diff --git a/src/components/Nav/Modal/Modal.tsx b/src/components/Nav/Modal/Modal.tsx index 7c3d8e9d..565fc1d8 100644 --- a/src/components/Nav/Modal/Modal.tsx +++ b/src/components/Nav/Modal/Modal.tsx @@ -10,7 +10,7 @@ import { router } from '../../../stores/router' interface Props { name: string - variant: 'narrow' | 'wide' + variant: 'narrow' | 'wide' | 'medium' children: JSX.Element onClose?: () => void noPadding?: boolean @@ -43,28 +43,31 @@ export const Modal = (props: Props) => { return (
-
event.stopPropagation()} - > - {props.children} -
- - - +
+
event.stopPropagation()} + > +
{props.children}
+
+ + + +