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

Add a dropdown as SOCIETIES #386

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
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
10 changes: 9 additions & 1 deletion _includes/static/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,19 @@
</div>
</form>
</div>
<div class="col-sm-8">
<div class="column col-sm-8">
<ul class="navbar-nav">
<li class="nav-item"><a href="../../" class="nav-link nav-btn-hover">Home</a></li>
<li class="nav-item"><a href="../../history/" class="nav-link nav-btn-hover">History</a></li>
<li class="nav-item"><a href="../../contact_us/" class="nav-link nav-btn-hover">Contact Us</a></li>
<div class="dropdown nav-btn-hover">
<button class="dropbtn">Societies <svg xmlns="http://www.w3.org/2000/svg" width="8" height="8" fill="currentColor" class="bi bi-caret-down-fill" viewBox="0 0 16 16">
<path d="M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z"/>
</svg></button>
<div class="dropdown-content">
<a class="dropdown-items" href="../../acf/">Computer Fraternity</a>
</div>
</div>
</ul>
</div>
</div>
Expand Down
57 changes: 57 additions & 0 deletions assets/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,60 @@
color: #00316A;
}

.dropbtn {
color: #495057;
padding: 13px;
font-size: 12px;
border: none;
border-radius: 3px;
text-transform: uppercase;
background-color: #fcfcfc;
}

.dropdown {
position: relative;
display: inline-block;
width: 100%;
border-radius: 3px;
}

.dropdown-content {
background-color: rgb(253, 253, 253);
display: none;
position: absolute;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
min-width: 9.5rem;
padding: 6px;
border-radius: 3px;
}

.dropdown-content a {
color: #212529;
text-align: center;
text-decoration: none;
display: block;
border-radius: 0.25rem;
padding: 6px 10px;
font-size: 13px;
height: 35px;
background-color: rgb(245, 245, 245);
}

.dropdown-content a:hover {
background-color: #00c8e2;
color: white;
box-shadow: 0px 1px 8px 0px #00bcd4;
}

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

.dropdown:hover .dropbtn {
background-color: #dedede;
}

.contact-us .google-map {
position: relative;
bottom: 8px;
Expand Down Expand Up @@ -112,6 +166,9 @@
z-index: 99;
}

.dropdown-content {
width: 100%;
}
}

.page-header .btn-primary{
Expand Down
1 change: 1 addition & 0 deletions assets/css/material-kit.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.