Skip to content

Commit

Permalink
Update Navbar styles for small viewports
Browse files Browse the repository at this point in the history
  • Loading branch information
vvu060 committed Jan 18, 2024
1 parent 5233ebe commit 6d8d378
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/theme/Navbar/Content/styles.module.css
Original file line number Diff line number Diff line change
@@ -1,24 +1,32 @@
/*
Hide color mode toggle in small viewports
*/
@media (max-width: 996px) {
@media (min-width: 996px) {
.colorModeToggle {
display: none;
}
}

@media screen and (min-width: 760px) {
@media screen and (min-width: 996px) {
.searchInput {
width: 600px;
}

.overlay {
display: none;
}

.modal {
display: none;
}
}

.overlay {
background-color: var(--ifm-color-brand-light);
position: fixed;
top: 0;
left: 0;
width: 110vh;
width: 100%;
height: 100%;
z-index: 1;
backdrop-filter: blur(3px);
Expand Down

0 comments on commit 6d8d378

Please sign in to comment.