-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
auto-close navbar when link is selected #1
- Loading branch information
1 parent
1cafc6d
commit fb4d6c6
Showing
3 changed files
with
58 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
.navbar { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
padding: 1rem 2rem; | ||
background-color: #2c3e50; | ||
color: white; | ||
} | ||
|
||
.navbar-logo { | ||
display: flex; | ||
align-items: center; | ||
gap: 0.5rem; | ||
} | ||
|
||
.navbar-logo img { | ||
width: 40px; | ||
height: 40px; | ||
} | ||
|
||
.navbar-toggle { | ||
display: none; /* Hidden by default */ | ||
background: none; | ||
border: none; | ||
color: white; | ||
font-size: 1.5rem; | ||
cursor: pointer; | ||
} | ||
|
||
/* Default Full-Width Navbar */ | ||
.navbar-collapse { | ||
display: flex; | ||
} | ||
|
||
.navbar-collapse ul { | ||
list-style: none; | ||
display: flex; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
.navbar-collapse a { | ||
color: white; | ||
text-decoration: none; | ||
font-weight: bold; | ||
} | ||
|
||
.navbar-collapse a:hover { | ||
color: lightgray; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters