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

Revision as of 13:03, 12 October 2021