Skip to content

Commit

Permalink
fix navbar adjustment on large or desktop screen
Browse files Browse the repository at this point in the history
  • Loading branch information
lokeshazad10 committed Oct 5, 2024
1 parent ff9924b commit b23a63b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
6 changes: 3 additions & 3 deletions Css-files/mode-toggler.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
.toggle-container {
/* .toggle-container {
transform: translate(-50%, -50%);
display: flex;
align-items: center;
justify-content: center;
right: -4px;
top: 15px;
/* position: fixed; */
position: fixed;
top: 40px;
right: 20%;
z-index: 100;
Expand All @@ -16,7 +16,7 @@
width: 40px;
height: 20px;
margin-top: 10px;
}
} */


/* Hidden Checkbox */
Expand Down
18 changes: 8 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@

<!-- Centered Navbar Links -->
<div
style=" margin-left: 25vw;"
style=" margin-left: 20vw;"
class="collapse navbar-collapse hamburgeritems centerdiv order-2 order-lg-0">
<ul class="navbar-nav center-links">
<li class="nav-item">
Expand Down Expand Up @@ -363,15 +363,6 @@

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


<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">
<div class="toggle-button">
</div>
</label>
</div>


<!-- Navbar Toggler -->

Expand Down Expand Up @@ -448,6 +439,13 @@
</ul>
</div>
</div>
<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">
<div class="toggle-button">
</div>
</label>
</div>
</nav>


Expand Down

0 comments on commit b23a63b

Please sign in to comment.