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
38 changes: 27 additions & 11 deletions _includes/navbar.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,33 @@
<div class="menu-wrapper">
<nav>
<a href="{{site.baseurl}}/"> Home</a>
<a


<nav class="menu-wrapper">
<a href="#" > <img
src="{{ 'assets/images/bg/Pyconf-2020-03.svg' | relative_url }}"
alt="Pyconf Hyderabad 2020"
/></a>
<label for="toggle">
<div class="toggle-button">
<span class="bar"></span>
<span class="bar"></span>
<span class="bar"></span>
</div>
</label>
<input type="checkbox" id="toggle"/>
<div class="navbar-links">
<ul>

<li><a href="{{site.baseurl}}/"> Home</a></li>
<li><a
title="Buy tickets"
href="https://www.townscript.com/e/pyconf-hyderabad-2020"
target="_blank"
rel="noopener"
>Tickets</a
>
<a href="{{site.baseurl}}/#schedule">Schedule</a>
<a href="{{site.baseurl}}/#community-partners">Community Partners</a>
<a href="{{site.baseurl}}/job-board.html">Job Board</a>
<a href="{{site.baseurl}}/about.html">About</a>
<a href="{{site.baseurl}}/coc.html">COC</a>
</nav>
></li>
<li> <a href="{{site.baseurl}}/#schedule">Schedule</a></li>
<li> <a href="{{site.baseurl}}/#community-partners">Community Partners</a></li>
<li><a href="{{site.baseurl}}/about.html">About</a></li>
<li><a href="{{site.baseurl}}/coc.html">COC</a></li>
</ul>
</div>
</nav>
121 changes: 95 additions & 26 deletions _sass/_menu-wrapper.scss
Original file line number Diff line number Diff line change
@@ -1,31 +1,100 @@
.menu-wrapper {
width: 100%;
border-bottom: 0.1rem solid orange;
background-color: #032f4e;
top:0;
position: fixed;
height: 5rem;
z-index: 2;
}


.menu-wrapper nav {
display: flex;
justify-content: space-evenly;
flex-direction: row;
flex-wrap: wrap;
}
.menu-wrapper nav a {
padding: 1.5rem 1.8125rem 1.625rem;
font-weight: bold;
font-size: 18px;
line-height: 22px;
color: orange;
.menu-wrapper
{width:100%;justify-content:space-between;align-items:center;border-bottom:0.3rem solid orange;background-color:#032f4e;top:0;position:fixed;z-index:3;display:flex;}
.menu-wrapper img {
display: block;
float: left;
font-size: 2em;
padding: 0px 0px;
height:75px;
width:auto;
margin:.5rem;
text-decoration: none;
}
.navbar-links ul{
margin:0;
padding:0;
display:flex;
}
.navbar-links li{
list-style:none;
font-size:19px;
font-family:"Montserrat", sans-serif;font-style:normal;
font-weight:50px;
}
.navbar-links li a{
text-decoration:none;
color:orange;
padding:1rem;
display:block;
line-height:22px;
font-weight:bold;
}

.toggle-button{
position:absolute;
top:34px;
right:2rem;
display:none;
flex-direction:column;
justify-content:space-between;
width:30px;
height:21px;

}
label{
display:none;
}
#toggle{
display:none;
}
.toggle-button .bar{
height:3px;
width:100%;

background-color:orange;
border-radius:10px;
}

@media (max-width: 768px) {
.menu-wrapper nav a {
padding: 0.5rem 0.3rem;
@media(max-width:900px){
label{
display:flex;
}
.toggle-button{
display:flex;
}
.toggle-button:hover{
cursor: pointer
}
.navbar-links{
display:none;
width:100%;

}
.menu-wrapper{
flex-direction:column;
align-items:flex-start;


}
.navbar-links ul{
width: 100%;
flex-direction: column;


}
.navbar-links li{
text-align: center;
}
.navbar-links li a{
padding: .5rem 1rem;
line-height:23px;
}
.navbar-links li a:hover{
font-size:23px;
}


}
#toggle:checked +.navbar-links {
display:flex;
}