From fcc93bf4fff84a0d12b14989139daea7c9cedede Mon Sep 17 00:00:00 2001 From: Aryan Ramesh Jain <138214350+jainaryan04@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:46:53 +0530 Subject: [PATCH] Fixes #674: Registration popup for mobile --- Css-files/popup.css | 83 ++++++++++++++++++++++++++++++++++++--------- 1 file changed, 67 insertions(+), 16 deletions(-) diff --git a/Css-files/popup.css b/Css-files/popup.css index b429412f..fb0e240e 100644 --- a/Css-files/popup.css +++ b/Css-files/popup.css @@ -1,5 +1,6 @@ /* Styling for the pop-up */ + @media screen and (min-width: 768px) { .popup { display: none; position: fixed; @@ -12,7 +13,6 @@ align-items: center; z-index: 1000; } - .popup-content { display: flex; background-color: #feaea5; @@ -23,36 +23,92 @@ position: relative; box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); } + .popup-left img { + width: 100%; + height: 100%; + object-fit: cover; + } + .popup-right { + padding: 20px; + width: 50%; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + } + .popup h1 { + font-size: 31px; + color: #8B4513; + margin-bottom: 10px; + margin-top: 45px; + padding-top: 10px; + } + .popup-right p{ + color: #4B3B2A; + margin-bottom: 30px; + } +} - .popuplogo{ - position: absolute; +@media screen and (max-width: 768px) { + .popup { + display: none; + position: fixed; top: 0; - right: 12px; - height: 50px; + left: 0; + width: 100%; + height: 100%; + background-color: rgba(0, 0, 0, 0.7); + justify-content: center; + align-items: center; + z-index: 1000; + } + .popup-content { + display: flex; + flex-direction: column; + background-color: #feaea5; + border-radius: 10px; + max-width: 400px; + height: 810px; + overflow: hidden; + position: relative; + box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); } - .popup-left img { width: 100%; height: 100%; object-fit: cover; } - .popup-right { padding: 20px; - width: 50%; + width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; } - .popup h1 { font-size: 31px; color: #8B4513; margin-bottom: 10px; - margin-top: 45px; + margin-top: 15px; padding-top: 10px; } + .popup-right p{ + color: #4B3B2A; + font-size: 20px; + } +} + + .popuplogo{ + position: absolute; + top: 0; + right: 12px; + height: 50px; + } + + + + #h2{ font-size: 18px; @@ -66,11 +122,7 @@ color: #4B3B2A; } */ - .popup-right p{ - margin-bottom: 26px; - color: #4B3B2A; - margin-bottom: 30px; - } + input[type="email"] { width: 100%; @@ -117,7 +169,6 @@ } .terms { - margin-top: 15px; font-size: 10px; color: #4B3B2A; }