Skip to content

Commit

Permalink
Merge pull request #124 from Prince-kushwaha-2004/nevbar
Browse files Browse the repository at this point in the history
Added responsiveness to navbar
  • Loading branch information
Kritika30032002 authored Feb 2, 2024
2 parents 37cc017 + 41c221c commit a767cb4
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .env.example

This file was deleted.

40 changes: 37 additions & 3 deletions public/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,14 @@ body {
.menu-toggle.show {
display: block;
}
#toogleicon{
position: absolute;
right: 20px;
}
.navbar-logo{
position: absolute;
left: 20px;
}
}
.navbar-nav li a::before {
content: "";
Expand Down Expand Up @@ -129,7 +137,6 @@ body {
background-repeat: no-repeat;
color: #555;
}

.compose {
margin: 20px;
padding: 15px;
Expand Down Expand Up @@ -297,13 +304,40 @@ body.dark-mode .moon-icon {
#toogleicon {
display: block;
}
}
.menu {
display: none;

position: absolute;
top: 60px;
left: 0;
width: 100%;
background-color: rgba(70, 69, 69, 0.95);
z-index: 1;
}
.menu.show {
display: flex;
margin-top: 50px;
border-radius: 3px;
}
.menu li a {
text-align: center;
}
.menu-toggle {
display: block;
text-align: center;
}
.navbar-brand {
text-align: center;
}
.menu-toggle.show {
display: block;
}
}
.contact {
padding: 20px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.contact.dark-mode {
box-shadow: 0 0 10px rgba(255, 255, 255, 0.36);
}
}

0 comments on commit a767cb4

Please sign in to comment.