From 47a37e69b7192d0aad80e08b55880fede91ec77a Mon Sep 17 00:00:00 2001 From: Sharyn Date: Tue, 17 Jul 2018 15:07:17 +0200 Subject: [PATCH] Updating modal --- components/modal/index.js | 4 +++- components/modal/style.scss | 29 +++++++++++++++-------------- 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/components/modal/index.js b/components/modal/index.js index 0a22fc8..de1d290 100644 --- a/components/modal/index.js +++ b/components/modal/index.js @@ -6,7 +6,9 @@ const Modal = props => (
{ props.children } -
x
{/* eslint-disable-line */} +
+ close +
{/* eslint-disable-line */}
); diff --git a/components/modal/style.scss b/components/modal/style.scss index abc4bfd..76ce854 100644 --- a/components/modal/style.scss +++ b/components/modal/style.scss @@ -44,31 +44,32 @@ width: 100%; height: 100%; padding-top: calculateRem(24); + position: relative; @media (min-width: $tablet) { - padding-top: calculateRem(48); - } - - &.container { - max-width: calculateRem(1024); + padding-top: calculateRem(40); } } .modal-close { - position: fixed; + position: absolute; top: calculateRem(16); right: calculateRem(16); - padding: calculateRem(4); - background-color: #cfcfcf; - text-align: center; - width: calculateRem(32); - height: calculateRem(32); - border-radius: 50%; cursor: pointer; outline: none; z-index: 4; - &:hover { - background-color: #c1c1c1; + @media (min-width: $desktop) { + top: calculateRem(72); + right: calculateRem(-20); + + svg { + width: calculateRem(30); + height: calculateRem(30); + } + } + + &:hover svg path:last-child { + fill: $dark-red; } }