Difference between revisions of "Template:MIT/menu"

Line 2: Line 2:
  
 
<html>
 
<html>
<head>
+
<head>
<style>
+
<style>
#home_logo, #sideMenu { display:none; }
+
#home_logo, #sideMenu { display:none; }
#sideMenu, #top_title, .patrollink  {display:none;}
+
#sideMenu, #top_title, .patrollink  {display:none;}
#content { margin:5px; padding:0px; width:100%;}
+
#content { margin:5px; padding:0px; width:100%;}
body {background-color: #fff;}
+
body {background-color: #fff;}
/* Menu Styling */
+
 
ul {
+
/* Menu Styling */
list-style: none;
+
 
font-size: 12px;
+
    ul {
}
+
    list-style: none;
nav {
+
        font-size: 12px;
text-align: center !important;
+
    }
display: flex;
+
 
padding-top: 8px;
+
    nav {
align-items: center;
+
    text-align: center !important;
vertical-align: middle !important;
+
    display: flex;
min-height: 6vH;
+
        padding-top: 8px;
background-color: #c2a593;
+
    align-items: center;
font-family: Tahoma, serif;
+
        vertical-align: middle !important;
position: fixed;
+
    min-height: 6vH;
width: 100%;
+
    background-color: #c2a593;
top: 2px;
+
    font-family: Lato, serif;
left: 0;
+
    position: fixed;
z-index: 999;
+
    width: 100%;
}
+
    top: 2px;
.logolink {
+
    left: 0;
display: inline-block;
+
    z-index: 999;
width: 8%;
+
    }
margin-left: 50px !important;
+
 
margin-top: 300px !important;
+
    .logolink {
margin-bottom: 10px !important;  
+
    display: inline-block;
}
+
    width: 8%;
.Navlogo {
+
    margin-left: 50px !important;
display: inherit;
+
    margin-top: 300px !important;
width: 100%;
+
    margin-bottom: 10px !important;  
}
+
    }
.nav-links {
+
 
display: inline-flex;
+
    .Navlogo {
justify-content: space-around;
+
    display: inherit;
width: 100%;
+
    width: 100%;
}
+
    }
.nav-links am{
+
   
color: #fff;
+
    .nav-links {
text-decoration: none;
+
    display: inline-flex;
letter-spacing: 2px;
+
    justify-content: space-around;
font-weight: bold;
+
    width: 100%;
font-size: 16px;
+
    }
display: block;
+
 
}
+
    .nav-links a{
/*Drop Down Menus for links at Computer Screen*/
+
    color: #fff;
.dropdown am{
+
    text-decoration: none;
padding: 2vh;
+
    letter-spacing: 2px;
}
+
    font-weight: bold;
.dropdowncontent {
+
    font-size: 16px;
cursor: pointer;
+
    display: block;
display: none;
+
    }
position: absolute;
+
 
background-color: #5e5656;
+
    /*Drop Down Menus for links at Computer Screen*/
min-width: 150px;
+
    .dropdown a{
z-index: 1;
+
        padding: 2vh;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
+
    }
}
+
 
.dropdowncontent am{
+
    .dropdowncontent {
color: #fff;
+
    cursor: pointer;
font-size: 12px;
+
    display: none;
text-align: left;
+
    position: absolute;
padding: 10px;
+
    background-color: #5e5656;
transition: all 0.5s ease;
+
    min-width: 150px;
}
+
    z-index: 1;
.dropdown:hover .dropdowncontent{
+
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
display: block;
+
    }
}
+
 
.dropdowncontent am:hover{
+
    .dropdowncontent a{
background-color: #8a8b8c !important;
+
      color: #fff;
}
+
        font-size: 12px;
/*Burger Buns*/
+
      text-align: left;
.burger {
+
      padding: 10px;
display: none;
+
        transition: all 0.5s ease;
cursor: pointer;
+
    }
right: 5px;
+
 
position: fixed;
+
    .dropdown:hover .dropdowncontent{
}
+
    display: block;
.burger div{
+
    }
width: 25px;
+
 
height: 5px;
+
    .dropdowncontent a:hover{
background-color: white;
+
    background-color: #8a8b8c !important;
margin: 5px;
+
    }
transition: background-color 400ms linear;
+
 
transition: all 0.3s ease;
+
    /*Burger Buns*/
}
+
    .burger {
@media screen {
+
    display: none;
body {
+
    cursor: pointer;
margin: auto;
+
    right: 5px;
}
+
    position: fixed;
}
+
    }
/*Mobile Navigation Bar*/
+
 
@media screen and (max-width: 1080px) {
+
    .burger div{
body {
+
    width: 25px;
overflow-x: hidden;
+
    height: 5px;
}
+
    background-color: white;
.logolink {
+
    margin: 5px;
position: relative;
+
    transition: background-color 400ms linear;
display: block;
+
    transition: all 0.3s ease;
width: 20%;
+
    }
}
+
 
.nav-links {
+
    @media screen {
position: fixed;         
+
    body {
display: block;
+
    margin: auto;
height: 100%;
+
    }
right: 0px;
+
    }
top: 10vh;
+
 
background-color: #c2a593;
+
    /*Mobile Navigation Bar*/
width: 30%;
+
 
transform: translateX(150%);
+
    @media screen and (max-width: 1080px) {
transition: transform 0.5s ease-in;
+
    body {
margin: inherit;
+
    overflow-x: hidden;
padding-top: 10vh;
+
    }
z-index: -1;
+
 
}
+
.logolink {
.nav-links li{
+
    position: relative;
opacity: 0;
+
    display: block;
display: block;
+
    width: 20%;
}
+
    }
.nav-links am{
+
 
font-size:15px;
+
.nav-links {
}
+
position: fixed;         
.burger {
+
display: block;
display: block;
+
height: 100%;
}
+
right: 0px;
.dropdown {
+
top: 10vh;
padding-top: 20px;
+
background-color: #c2a593;
}
+
width: 30%;
.dropdowncontent {
+
transform: translateX(150%);
display: none;
+
transition: transform 0.5s ease-in;
position: relative;
+
margin: inherit;
}
+
padding-top: 10vh;
.dropdowncontent am{
+
z-index: -1;
font-size: 10px;
+
}
padding: 10px;
+
 
}
+
.nav-links li{
}
+
opacity: 0;
.nav-active {
+
display: block;
transform: translateX(0%);
+
}
padding-left: 0px;
+
 
}
+
    .nav-links a{
@keyframes navLinkFade {
+
        font-size:15px;
from {
+
    }
opacity: 0;
+
 
transform: translateX(25px);
+
.burger {
}
+
display: block;
to {
+
}
opacity: 1;
+
 
transform: translateX(0px);
+
.dropdown {
}
+
    padding-top: 20px;
}
+
}
.toggle .line1{
+
 
background-color: #E2D264;
+
.dropdowncontent {
transform: rotate(180deg);
+
display: none;
}
+
position: relative;
.toggle .line2{
+
}
background-color: #E73C7E;
+
.dropdowncontent a{
transform: rotate(180deg);
+
font-size: 10px;
}
+
padding: 10px;
.toggle .line3{
+
}
background-color: #3E4A9E;
+
}
transform: rotate(180deg);
+
 
}
+
.nav-active {
</style>
+
transform: translateX(0%);
</head>
+
padding-left: 0px;
 +
}
 +
 
 +
 
 +
@keyframes navLinkFade {
 +
from {
 +
opacity: 0;
 +
transform: translateX(25px);
 +
}
 +
to {
 +
opacity: 1;
 +
transform: translateX(0px);
 +
}
 +
}
 +
 
 +
.toggle .line1{
 +
background-color: #E2D264;
 +
transform: rotate(180deg);
 +
}
 +
 
 +
.toggle .line2{
 +
background-color: #E73C7E;
 +
transform: rotate(180deg);
 +
}
 +
 
 +
.toggle .line3{
 +
background-color: #3E4A9E;
 +
transform: rotate(180deg);
 +
}
 +
</style>
 +
</head>
  
 
     <body>
 
     <body>
 
<nav>
 
<nav>
<ul class="nav-links">
+
<ul class="nav-links">
 
+
 
<li class="dropdown">   
 
<li class="dropdown">   
            <am><a style="color: white; text-decoration: none;" href="https://2021.igem.org/Team:MIT">Home </a></am>
+
            <a href="https://2021.igem.org/Team:MIT">Home </a>
 
</li>
 
</li>
  
 
<li class="dropdown">   
 
<li class="dropdown">   
    <am> Team </am>
+
    <a> Team </a>
    <div class="dropdowncontent">
+
        <div class="dropdowncontent">
                <am href="https://2021.igem.org/Team:MIT/Team">Team </am>
+
                    <a href="https://2021.igem.org/Team:MIT/Team">Team </a>
                        <am href="https://2021.igem.org/Team:MIT/Attributions"> Attributions </am>
+
                            <a href="https://2021.igem.org/Team:MIT/Attributions"> Attributions </a>
    </div>
+
        </div>
 
</li>
 
</li>
  
 
<li class="dropdown">  
 
<li class="dropdown">  
                     <am> Project </am>
+
                     <a> Project </a>
 
    <div class="dropdowncontent">
 
    <div class="dropdowncontent">
                         <am class="link" href="https://2021.igem.org/Team:MIT/Description"> Description </am>
+
                         <a class="link" href="https://2021.igem.org/Team:MIT/Description"> Description </a>
                <am href="https://2021.igem.org/Team:MIT/Design"> Design </am>
+
                <a href="https://2021.igem.org/Team:MIT/Design"> Design </a>
                <am href="https://2021.igem.org/Team:MIT/Experiments"> Experiments </am>
+
                <a href="https://2021.igem.org/Team:MIT/Experiments"> Experiments </a>
                <am href="https://2021.igem.org/Team:MIT/Model"> Model </am>
+
                <a href="https://2021.igem.org/Team:MIT/Model"> Model </a>
                <am href="https://2021.igem.org/Team:MIT/Results"> Results </am>
+
                <a href="https://2021.igem.org/Team:MIT/Results"> Results </a>
                <am href="https://2021.igem.org/Team:MIT/Engineering"> Engineering Success </am>
+
                <a href="https://2021.igem.org/Team:MIT/Engineering"> Engineering Success </a>
                <am href="https://2021.igem.org/Team:MIT/Contribution"> Contribution </am>
+
                <a href="https://2021.igem.org/Team:MIT/Contribution"> Contribution </a>
 
    </div>
 
    </div>
 
</li>
 
</li>
  
 
<li class="dropdown">   
 
<li class="dropdown">   
<am> Parts </am>
+
<a> Parts </a>
 
    <div class="dropdowncontent">
 
    <div class="dropdowncontent">
            <am href="https://2021.igem.org/Team:MIT/Parts"> Parts Overview </am>
+
            <a href="https://2021.igem.org/Team:MIT/Parts"> Parts Overview </a>
            <am href="https://2021.igem.org/Team:MIT/Basic_Part"> Basic Parts </am>
+
            <a href="https://2021.igem.org/Team:MIT/Basic_Part"> Basic Parts </a>
            <am href="https://2021.igem.org/Team:MIT/Composite_Part"> Composite Parts </am>
+
            <a href="https://2021.igem.org/Team:MIT/Composite_Part"> Composite Parts </a>
 
    </div>
 
    </div>
 +
    </li>
 +
    <li class="dropdown"> 
 +
<a> Safety </a>
 +
<div class="dropdowncontent">
 +
        <a href="https://2021.igem.org/Team:MIT/Safety"> Safety </a>
 +
        <a href="https://2021.igem.org/Team:MIT/Implementation"> Implementation </a>
 +
               
 +
</div>
 
</li>
 
</li>
 +
<li class="dropdown"> 
 +
<a> Human Practices </a>
 +
<div class="dropdowncontent">
 +
        <a href="https://2021.igem.org/Team:MIT/Human_Practices">Human Practices</a>
 +
        <a href="https://2021.igem.org/Team:MIT/Education"> Outreach & Engagement </a>
  
<li class="dropdown"> 
+
               
<am> Safety </am>
+
</div>
<div class="dropdowncontent">
+
        <am href="https://2021.igem.org/Team:MIT/Safety"> Safety </am>
+
        <am href="https://2021.igem.org/Team:MIT/Implementation"> Implementation </am>
+
</div>
+
 
</li>
 
</li>
 
 
<li class="dropdown">   
 
<li class="dropdown">   
<am> Human Practices </am>
+
        <a href="https://2021.igem.org/Team:MIT/Collaborations"> MIT Microbiome Meetup  </a>
<div class="dropdowncontent">
+
        <am href="https://2021.igem.org/Team:MIT/Human_Practices">Human Practices</am>
+
        <am href="https://2021.igem.org/Team:MIT/Education"> Outreach & Engagement </am>
+
</div>
+
 
</li>
 
</li>
</ul>
+
    </ul>
 +
 +
<div class="burger">
 +
<div class="line1"></div>
 +
<div class="line2"></div>
 +
<div class="line3"></div>
 +
</div>
 
</nav>
 
</nav>
</body>
+
</div>
 +
 
 +
 
  
 
     <script>
 
     <script>
Line 252: Line 293:
 
             });
 
             });
 
         }
 
         }
    navSlide();
+
    navSlide();
 
     </script>
 
     </script>
 +
    </body>
 +
 
</html>
 
</html>

Revision as of 13:05, 12 October 2021