Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated header and added a dropdown to the navbar #133

Closed
wants to merge 1 commit into from
Closed
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
17 changes: 11 additions & 6 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,17 @@
</button>
<div class="collapse navbar-toggleable-md" id="exCollapsingNavbar">
<a class="nav-link" href="/activities/">Activities</a>
<a class="nav-link" href="/about/">About Clubs</a>
<a class="nav-link" href="/get-started/">Get Started</a>
<a class="nav-link" href="/resources/">Resources</a>
<a class="nav-link" href="/connect/">Connect</a>
<a class="nav-link" href="/report/#">Report</a>
<a class="nav-link" href="/faq/">FAQ</a>
<div class="dropdown dropdown-club-corner">
<a class="nav-link dropdown-toggle dropdown-club-corner" href="#" href="#" id="navbarDropdownMenuLink" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Club's Corner</a>
<div class="dropdown-menu dropdown-content" aria-labelledby="navbarDropdownMenuLink">
<a class="dropdown-item nav-link" href="/get-started/">Get Started</a>
<a class="dropdown-item nav-link" href="/resources/">Resources</a>
<a class="dropdown-item nav-link" href="/connect/">Connect</a>
<a class="dropdown-item nav-link" href="/report/#">Report</a>
<a class="dropdown-item nav-link" href="/faq/">FAQ</a>
</div>
</div>
<a class="nav-link" href="/about/">About</a>
</div>

<div id="tabzilla" class="hidden-lg-down">
Expand Down
34 changes: 34 additions & 0 deletions static/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,40 @@ nav a:hover {
margin-top: 20px;
}

/* ----------------Updated header with new dropdown---------------- */

.dropdown-club-corner {
position: relative;
display: inline-block;
}

.dropdown-content {
display: none;
position: absolute;
background-color:#3bba99;
min-width: 160px;
top:100%;
z-index: 1;
margin:0;
width:100%;
}

.dropdown-content a {
display: block;
background-color:#3bba99;
padding: 12px 16px;
text-decoration: none;
font-size: 1.0em;
}

.dropdown-club-corner:hover .dropdown-content {
display: block;
}

.dropdown-item:hover {
background-color: #1c9878;
}

@media all and (min-width: 992px) {
.navbar-toggleable-md {
display: inline-block !important;
Expand Down