Skip to content

Commit

Permalink
[ui responsivness] added for mobile device.
Browse files Browse the repository at this point in the history
  • Loading branch information
akhilsharmaa committed Feb 2, 2025
1 parent c03a517 commit 5b7b4c5
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 6 deletions.
35 changes: 30 additions & 5 deletions public/styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,7 @@ body{
#container-queryfloating {
background-color: #fff;
position: fixed;
min-height: 60%;
max-height: 70%;
min-height: 60%;
top: 50%;
padding: 30px;
left: 50%;
Expand All @@ -199,9 +198,7 @@ body{

#container-queryfloating::after {
content: '';
position: absolute;
width: 900px;
height: 900px;
position: absolute;
border-radius: 50%;
z-index: -1;
}
Expand Down Expand Up @@ -281,4 +278,32 @@ body{
margin: 20px 0 0;
color: #BABDCB;
font-size: 12px;
}



@media (max-width: 640px) {

#container-queryfloating {
background-color: #fff;
position: fixed;
width: 90%;
display:block;
top: 50%;
padding: 40px;
left: 50%;
}


#container-queryfloating img{
display: none;
}


.container-text {
width: 100%;
padding: 10px 10px;
}


}
2 changes: 1 addition & 1 deletion views/components/numberInputPopup.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
}
// Show the popup every 7 seconds
setInterval(showPopup, 10000);
setInterval(showPopup, 7000);
// Close the popup when the form is submitted
document.getElementById("numberForm").addEventListener("submit", function (e) {
Expand Down

0 comments on commit 5b7b4c5

Please sign in to comment.