Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
151 changes: 0 additions & 151 deletions Responsive Navigation Bar /style.css

This file was deleted.

95 changes: 95 additions & 0 deletions Responsive Navigation Bar/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
* {
margin: 0;
padding: 0;
}

nav {
display: flex;
align-items: center;
height: 7vh;
justify-content: space-between;
background-color: blueviolet;
color: white;
}

/* Combined the duplicate .navbar-list blocks here */
.navbar-list {
display: flex;
gap: 18px;
}

/* Combined the duplicate .navbar-list > li blocks here */
.navbar-list > li {
display: inline;
font-size: 2rem;
}

.sec {
display: flex;
width: 100vw;
height: 100vh;
background-color: rgb(183, 217, 13);
align-items: center;
justify-content: center;
color: white;
}

.mobile-navbar-btn {
display: none;
gap: 12px;
color: black;
cursor: pointer; /* Removed the duplicate cursor line here */
margin: 0px 45px;
}

.mobile-nav-icon {
font-size: 2em;
line-height: .03125em;
}

.mobile-nav-icon[name="close-outline"] {
display: none;
}

@media screen and (max-width:600px) {
.mobile-navbar-btn {
display: flex;
justify-content: right;
position: absolute;
top: 0;
padding: 12px; /* Fixed: Changed '12px 12px' to just '12px' */
width: 100%;
gap: 12px;
background-color: rgb(211, 35, 35);
}

.mobile-navbar-btn > ion-icon {
margin-right: 30px;
border: 2px solid black;
}

.mobile-navbar-btn > i {
padding: 5px;
margin-right: 30px;
border: 2px solid black;
}

.logo {
display: none;
}

nav {
position: absolute;
width: 100%;
align-items: center;
justify-content: center;
height: auto;
top: 0;
left: 0;
}

.navbar-list {
display: none;
flex-direction: column;
}
}