Skip to content

Commit

Permalink
Adjust theme toggler button
Browse files Browse the repository at this point in the history
  • Loading branch information
lokeshazad10 committed Oct 6, 2024
1 parent b23a63b commit 95238b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Css-files/mode-toggler.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

.theme-switch {
position: relative;
width: 45px;
width: 50px;
height: 30px;
background-color: #ccc;
border-radius: 20px;
Expand All @@ -44,7 +44,7 @@
font-size: 19px;
position: absolute;
cursor: pointer;
top: 50%;
/* top: 50%; */
transform: translateY(-50%);
transition: opacity 0.5s ease, color 0.5s ease;
}
Expand Down Expand Up @@ -84,6 +84,6 @@
}

.switch-checkbox:checked + .theme-switch .toggle-button {
transform: translateX(13px);
transform: translateX(18px);
/* background-color: #34495e; */
}
5 changes: 2 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,7 @@

</ul>
</div>
<!-- Theme Toggle Icon -->



<span class="slider" style="width: 40px; height: 20px; display: none;"></span>


Expand Down Expand Up @@ -439,6 +437,7 @@
</ul>
</div>
</div>
<!-- Theme Toggle Icon -->
<div id="sun-moon-mode-toggler" class="toggle-container" >
<input type="checkbox" id="themeToggle" class="switch-checkbox" onclick="toggleTheme()">
<label id="themeChangeToggle" class="theme-switch" for="themeToggle">
Expand Down

0 comments on commit 95238b6

Please sign in to comment.