Skip to content

Commit

Permalink
fixed UI icons for small device
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishu Singh committed Oct 26, 2024
1 parent 5c80e1c commit 2a2d8c3
Show file tree
Hide file tree
Showing 4 changed files with 259 additions and 189 deletions.
17 changes: 2 additions & 15 deletions css/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ body {

background-color: #22406e;
border: 1px solid #213d67;
padding: 10px;
padding: 5px;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
position: fixed;
top: 650px;
bottom: 10px;
left: 20px;
z-index: 1000;

Expand Down Expand Up @@ -95,16 +95,3 @@ body {
scrollbar-color: #888 #234271;
}

#google_translate_element {

background-color: #22406e;
border: 1px solid #213d67;
padding: 10px;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
position: fixed;
top: 650px;
left: 20px;
z-index: 1000;

}
79 changes: 65 additions & 14 deletions css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -627,34 +627,77 @@ body, .cyberfit-cyber-container, .cyberfit-cyber-container1, .cyberfit-cyber-con
}


.kids-icon {

.icon-toggle-button {
display: none;
}

.icon-toggle-label {
display: inline-block;
padding: 10px;
background-color: #333;
cursor: pointer;
border-radius: 5px;
position: fixed;
top: 120px;
left: 30px;
width: 45px; /* Adjust size as needed */
height: 45px; /* Adjust size as needed */
cursor: pointer;
z-index: 1000; /* Ensure it is on top of other elements */
top: 50px;
left: 30px;
width: 20px;
height: 20px;
z-index: 1001;
background: url('/public/menu.png') no-repeat center center;
background-size: contain;
}

.icon-container {
display: none;
position: fixed;
top: 95px;
left: 20px;
z-index: 1000;
background-color: #1a273c;
height: 260px;
width:45px ;
padding: 10px;
border-radius: 20px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
user-select: none;
}

.icon-toggle-button:checked + .icon-toggle-label + .icon-container {
display: block;
}

.icon-container img {
display: block;
margin-bottom: 10px;
}

.multiplayer-icon {

position: fixed;
top: 50px;
top: 100px;
left: 30px;
width: 45px; /* Adjust size as needed */
height: 45px; /* Adjust size as needed */
cursor: pointer;
z-index: 1000; /* Ensure it is on top of other elements */
}

.kids-icon {
position: fixed;
top: 170px;
left: 30px;
width: 45px; /* Adjust size as needed */
height: 45px; /* Adjust size as needed */
cursor: pointer;
z-index: 1000; /* Ensure it is on top of other elements */
}


.reward-icon {

position: fixed;
top: 200px;
top: 250px;
left: 30px;
width: 40px; /* Adjust size as needed */
height: 40px; /* Adjust size as needed */
Expand All @@ -666,7 +709,7 @@ body, .cyberfit-cyber-container, .cyberfit-cyber-container1, .cyberfit-cyber-con
.video-icon {

position: fixed;
top: 270px;
top: 320px;
left: 30px;
width: 40px; /* Adjust size as needed */
height: 40px; /* Adjust size as needed */
Expand Down Expand Up @@ -705,19 +748,27 @@ body, .cyberfit-cyber-container, .cyberfit-cyber-container1, .cyberfit-cyber-con

.scroll_top {
position: fixed;
right: 90px;
right: 80px;
bottom: 20px;
cursor: pointer;
border-radius: 50%;
width: 50px;
width: 45px;
/* Define a fixed size for the button */
height: 50px;
height: 45px;
/* Ensure it's square */
overflow: hidden;
/* Ensure the image doesn't overflow */
display: flex;
display: none;
justify-content: center;
align-items: center;
outline: none;
border: none;
transition: 0.2s ease-in-out;

}

.scroll_top:hover{
transform: scale(1.08);
}

#to_top {
Expand Down
Loading

0 comments on commit 2a2d8c3

Please sign in to comment.