Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed login page not visible on mobile screen #966

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 42 additions & 6 deletions assets/css/popup.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
/* The Modal (background) */
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
position: fixed;
z-index: 1; /* Sit on top */
padding-top: 100px; /* Location of the box */
left: 0;
top: 0;
width: 100%; /* Full width */
Expand All @@ -16,11 +14,14 @@
/* Modal Content */
.modal-content {
background-color: #fefefe;
margin: auto;
margin: 10% auto; /* Adjusted for better vertical centering */
padding: 20px;
border: 1px solid #888;
width: 450px;
text-align: center; /* Added */
width: 90%; /* Use percentage for responsiveness */
max-width: 450px; /* Maximum width from your original CSS */
text-align: center;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* The Close Button */
Expand All @@ -29,11 +30,46 @@
float: right;
font-size: 28px;
font-weight: bold;
cursor: pointer;
}

.close:hover,
.close:focus {
color: #000;
text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 575px) {
.modal-content {
margin: 5% auto; /* Less top margin on small screens */
width: 95%; /* Slightly wider on very small screens */
padding: 15px;
}
}

/* Additional styles for form elements */
.form-group {
margin-bottom: 15px;
}

.form-control {
width: 100%;
padding: 8px;
border: 1px solid #ccc;
border-radius: 4px;
}

.main-btn {
width: 100%;
padding: 10px;
background-color: #007bff;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}

.main-btn:hover {
background-color: #0056b3;
}
9 changes: 6 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
<div class="container">
<div class="row">
<div class="col-lg-12">
<nav class="navbar navbar-expand-lg">
<nav class="navbar navbar-expand-lg " style="display: flex;">
<!-- <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="toggler-icon"></span>
Expand Down Expand Up @@ -257,10 +257,10 @@
</li>
</ul>
</div>
<div class="navbar-btn d-none d-sm-inline-block">
<div class="">
<!-- Login Modal -->
<div id="myModal" class="modal">
<div class="modal-content">
<div class="modal-content" >
<span class="close" style="display: flex; justify-content: right;">&times;</span>
<div class="mt-3">
<h3 class="join"><i class="fa-solid fa-right-to-bracket"></i> Login to join us....</h3>
Expand Down Expand Up @@ -1775,6 +1775,9 @@ <h4 class="title custom-margin">Contact Us</h4>
document.getElementById("copyright-year").textContent = new Date().getFullYear();
</script>
<script>



// Get the modals
var loginModal = document.getElementById('myModal');
var registerModal = document.getElementById('registerModal');
Expand Down