Difference between revisions of "Template:MIT/menu"

Line 1: Line 1:
 
<html>
 
<html>
<head>
+
<head>
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Nunito" />
+
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Nunito" />
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Lato" />
+
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Lato" />
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Tahoma" />
+
<meta charset="utf-8">
<meta charset="utf-8">
+
<meta name="HandheldFriendly" content="True">
<meta name="HandheldFriendly" content="True">
+
<meta name="MobileOptimized" content="320">
<meta name="MobileOptimized" content="320">
+
<meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1">
<meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1">
+
    <script src="../../js/ios-orientationchange-fix.min.js"></script>
<script src="../../js/ios-orientationchange-fix.min.js"></script>
+
 
</head>
+
+
 
<style>
 
<style>
*{
+
*{
  font-family: Tahoma, Nunito, Lato, !important;
+
font-family: Tahoma, Nunito, Lato, !important;
}
+
}
 +
 
 +
#content {
 +
padding: 0% 0 0 0;
 +
style = 'background-color: #808080';
 +
}
 
 
#content {
+
p {
  padding: 0% 0 0 0;
+
font-family: Tahoma, Nunito, serif !important;
  style = 'background-color: #808080';
+
text-align: justified !important;
}
+
font-size: 18px;
 +
}
 +
 
 +
b {
 +
font-family: Tahoma, Nunito, serif !important;
 +
font-weight: 700;
 +
text-align: justified !important;
 +
font-size: 18px;
 +
}
 +
 
 +
.narration_bold {font-weight: 700;
 +
font-size: 3;}
 +
 
 +
.narration_bold {
 +
font-family: Tahoma, Nunito, serif
 +
!important;
 +
font-weight: 700;
 +
text-align: justified !important;
 +
font-size: 18px;}
 
 
p {
+
.bold_text {
font-family: Tahoma, Nunito, serif !important;
+
font-weight: 700;
text-align: justified !important;
+
}
font-size: 18px;
+
  }
+
+
  b {
+
font-family: Tahoma, Nunito, serif !important;
+
font-weight: 700;
+
text-align: justified !important;
+
font-size: 18px;
+
  }
+
  
  .narration_bold {font-weight: 700;
+
h1, h2, h3, h4 {
font-size: 3;}
+
font-family: Tahoma, Lato, serif !important;
+
font-size: 16px;
    .narration_bold {
+
text-align: justify;
font-family: Tahoma, Nunito, serif  
+
line-height: 1.5;
!important;
+
font-weight: bold;
font-weight: 700;
+
}
text-align: justified !important;
+
font-size: 18px;}
+
 
+
.bold_text {
+
font-weight: 700;
+
}
+
  
    h1, h2, h3, h4 {
+
ul, ol {
  font-family: Tahoma, Lato, serif !important;
+
font-family: Tahoma, Nunito, serif !important;
  font-size: 16px;
+
vertical-align: middle !important;
  text-align: justify;
+
font-size: 16px;
  line-height: 1.5;
+
text-align: justify;
font-weight: bold;
+
line-height: 1.5;
}
+
}
  
ul, ol {
+
body {
font-family: Tahoma, Nunito, serif !important;
+
font-size: 16px;
  vertical-align: middle !important;
+
padding: 0 0%;
  font-size: 16px;
+
box-sizing: border-box;
  text-align: justify;
+
}
  line-height: 1.5;
+
}
+
+
body {
+
  font-size: 16px;
+
  padding: 0 0%;
+
  box-sizing: border-box;
+
}
+
+
img {
+
max-width: 100%;
+
height: auto;
+
}
+
  
{
+
img {
box-sizing: border-box;
+
max-width: 100%;
}
+
height: auto;
 +
}
  
.bulleted_list {  
+
{
  list-style-type: square;
+
box-sizing: border-box;
}
+
}
  
#home_logo, #sideMenu { display:none; }
+
.bulleted_list {  
#sideMenu, #top_title, .patrollink  {display:none;}
+
list-style-type: square;
#content { margin:5px; padding:0px; width:100%;}
+
}
body {background-color: #fff;}
+
  
/* Menu Styling */
+
#home_logo, #sideMenu { display:none; }
 +
#sideMenu, #top_title, .patrollink  {display:none;}
 +
#content { margin:0px; padding:0px; width:100%;}
 +
body {background-color: #fff;}
  
ul {
+
*{
list-style: none;
+
      font-family: Nunito, Lato, !important;
font-size: 12px;
+
    }
}
+
  
nav {
+
    #content {
text-align: center !important;
+
      padding: 4% 0 0 0;
display: flex;
+
    }
padding-top: 10px;
+
   
align-items: center;
+
    p {
vertical-align: middle !important;
+
      font-family: Nunito, serif !important;
min-height: 6vH;
+
      font-size: 16px !important;
background-color: #E1E1E1;
+
      text-align: justify;
font-family: Tahoma, Lato, serif;
+
      line-height: 1.5;
position: fixed;
+
    }
width: 100%;
+
top: 2px;
+
left: 0;
+
z-index: 999;
+
}
+
  
.logolink {
+
    center {
display: inline-block;
+
      font-family: Nunito, serif !important;
width: 8%;
+
      line-height: 1.5;
margin-left: 50px !important;
+
    }
margin-top: 300px !important;
+
margin-bottom: 10px !important;  
+
}
+
  
.Navlogo {
+
  h1, h2, h3, h4 {
display: inherit;
+
      font-family: Lato, serif !important;
width: 100%;
+
      text-align: justify;
}
+
      line-height: 1.5;
+
      font-weight: bold;
.nav-links {
+
    }
display: inline-flex;
+
justify-content: space-around;
+
                text-decoration: none;
+
                color: #fff;
+
width: 100%;
+
}
+
  
.nav-links a{
+
    ul, ol {
color: #fff;
+
    font-family: Nunito, serif !important;
text-decoration: none;
+
      font-size: 16px !important;
letter-spacing: 2px;
+
      text-align: justify;
font-weight: bold;
+
      line-height: 1.5;
font-size: 16px;
+
    }
display: block;
+
}
+
  
/*Drop Down Menus for links at Computer Screen*/
+
    body {
.dropdown a{
+
      font-size: 16px !important;
padding: 2vh;
+
      padding: 0 10%;
}
+
      box-sizing: border-box;
 +
    }
  
.dropdowncontent {
+
    img {
cursor: pointer;
+
max-width: 100%;
display: none;
+
height: auto;
position: absolute;
+
    }
background-color: #5e5656;
+
min-width: 150px;
+
z-index: 1;
+
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
+
}
+
  
.dropdowncontent a{
+
    {
color: #fff;
+
        box-sizing: border-box;
font-size: 12px;
+
    }
text-align: left;
+
padding: 10px;
+
transition: all 0.5s ease;
+
}
+
  
.dropdown:hover .dropdowncontent{
+
    .bulleted_list {  
display: block;
+
      list-style-type: square;
}
+
    }
  
.dropdowncontent a:hover{
+
ul {
background-color: #8a8b8c !important;
+
list-style: none;
}
+
}
  
/*Burger Buns*/
+
nav {
.burger {
+
text-align: center;
display: none;
+
display: flex;
cursor: pointer;
+
align-items: center;
right: 5px;
+
min-height: 6vH;
position: fixed;
+
background-color: #993233;
}
+
font-family: Lato, serif;
 +
position: fixed;
 +
width: 100%;
 +
top: 2px;
 +
left: 0;
 +
z-index: 999;
 +
}
  
.burger div{
+
.logolink {
width: 25px;
+
display: inline-block;
height: 5px;
+
width: 8%;
background-color: white;
+
margin-left: 50px !important;
margin: 5px;
+
margin-top: 300px !important;
transition: background-color 400ms linear;
+
margin-bottom: 10px !important;  
transition: all 0.3s ease;
+
}
}
+
  
@media screen {
+
.Navlogo {
body {
+
display: inherit;
margin: auto;
+
width: 100%;
}
+
}
}
+
  
/*Mobile Navigation Bar*/
+
.nav-links {
@media screen and (max-width: 1080px) {
+
display: inline-flex;
body {
+
justify-content: space-around;
overflow-x: hidden;
+
width: 100%;
}
+
}
  
.logolink {
+
.nav-links a{
position: relative;
+
color: #fff;
display: block;
+
text-decoration: none;
width: 20%;
+
letter-spacing: 2px;
}
+
font-weight: bold;
 +
font-size: 20px;
 +
display: block;
 +
}
  
.nav-links {
+
/*Drop Down Menus for links at Computer Screen*/
position: fixed;       
+
display: block;
+
height: 100%;
+
right: 0px;
+
top: 10vh;
+
background-color: #c2a593;
+
width: 30%;
+
transform: translateX(150%);
+
transition: transform 0.5s ease-in;
+
margin: inherit;
+
padding-top: 10vh;
+
z-index: -1;
+
}
+
  
.nav-links li{
+
.dropdown a{
opacity: 0;
+
padding: 5px;
display: block;
+
}
}
+
  
.nav-links a{
+
.dropdowncontent {
font-size:15px;
+
cursor: pointer;
}
+
display: none;
 +
position: absolute;
 +
background-color: #424242;
 +
min-width: 150px;
 +
z-index: 1;
 +
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
 +
}
  
.burger {
+
.dropdowncontent a{
display: block;
+
color: #fff;
}
+
font-size: 16px;
 +
text-align: left;
 +
padding: 10px;
 +
transition: all 0.5s ease;
 +
}
 +
.dropdown:hover .dropdowncontent{
 +
display: block;
  
.dropdown {
+
}
padding-top: 20px;
+
}
+
  
.dropdowncontent {
+
.dropdowncontent a:hover{
display: none;
+
background-color: #8a8b8c !important;
position: relative;
+
 
}
+
 
.dropdowncontent a{
+
 
font-size: 10px;
+
}
padding: 10px;
+
 
}
+
/*Burger Buns*/
 +
 
 +
.burger {
 +
display: none;
 +
cursor: pointer;
 +
right: 5px;
 +
position: fixed;
 +
}
 +
 
 +
.burger div{
 +
width: 25px;
 +
height: 5px;
 +
background-color: white;
 +
margin: 5px;
 +
transition: background-color 400ms linear;
 +
transition: all 0.3s ease;
 +
}
 +
 
 +
@media screen {
 +
body {
 +
margin: auto;
 
}
 
}
 +
}
  
.nav-active {
+
/*Mobile Navigation Bar*/
transform: translateX(0%);
+
 
padding-left: 0px;
+
@media screen and (max-width: 1080px) {
 +
body {
 +
overflow-x: hidden;
 
}
 
}
  
@keyframes navLinkFade {
+
.logolink {
from {
+
position: relative;
opacity: 0;
+
display: block;
transform: translateX(25px);
+
width: 20%;
}
+
to {
+
opacity: 1;
+
transform: translateX(0px);
+
}
+
 
}
 
}
  
.toggle .line1{
+
.nav-links {
background-color: #E2D264;
+
position: fixed;
transform: rotate(180deg);
+
display: block;
 +
height: 100%;
 +
right: 0px;
 +
top: 12vh;
 +
background-color: #993233;
 +
width: 30%;
 +
transform: translateX(150%);
 +
transition: transform 0.5s ease-in;
 +
margin: inherit;
 +
padding-top: 10vh;
 +
z-index: -1;
 
}
 
}
 +
 +
.nav-links li{
 +
opacity: 0;
 +
display: block;
 +
}
 +
 +
        .nav-links a{
 +
              font-size:15px;
 +
        }
  
.toggle .line2{
+
.burger {
background-color: #E73C7E;
+
display: block;
transform: rotate(180deg);
+
 
}
 
}
  
.toggle .line3{
+
.dropdown {
background-color: #3E4A9E;
+
padding-top: 20px;
transform: rotate(180deg);
+
 
}
 
}
  
</style>
+
.dropdowncontent {
<body>
+
display: none;
<nav>
+
position: relative;
<ul class="nav-links">
+
}
<li class="dropdown"> 
+
.dropdowncontent a{
<a style="color: white; text-decoration: None;" class="link" href="https://2021.igem.org/Team:MIT">Home </a>
+
font-size: 10px;
</li>
+
padding: 10px;
 +
}
 +
}
  
<li class="dropdown"> 
+
.nav-active {
<a> Team </a>
+
transform: translateX(0%);
<div class="dropdowncontent">
+
padding-left: 0px;
<a style="color: white; text-decoration: None;" href="https://2021.igem.org/Team:MIT/Team">Team </a>
+
}
<a style="color: white; text-decoration: None;" href="https://2021.igem.org/Team:MIT/Attributions"> Attributions </a>
+
</div>
+
</li>
+
  
<li class="dropdown">
 
<a> Project </a>
 
<div class="dropdowncontent">
 
<a style="color: white; text-decoration: None;" class="link" href="https://2021.igem.org/Team:MIT/Description"> Description </a>
 
<a style="color: white; text-decoration: None;" href="https://2021.igem.org/Team:MIT/Design"> Design </a>
 
<a style="color: white; text-decoration: None;" href="https://2021.igem.org/Team:MIT/Experiments"> Experiments </a>
 
<a style="color: white; text-decoration: None;" href="https://2021.igem.org/Team:MIT/Model"> Model </a>
 
<a style="color: white; text-decoration: None;" href="https://2021.igem.org/Team:MIT/Results"> Results </a>
 
<a style="color: white; text-decoration: None;" href="https://2021.igem.org/Team:MIT/Engineering"> Engineering Success </a>
 
<a style="color: white; text-decoration: None;" href="https://2021.igem.org/Team:MIT/Contribution"> Contribution </a>
 
</div>
 
</li>
 
  
<li class="dropdown"> 
+
@keyframes navLinkFade {
<a> Parts </a>
+
from {
<div class="dropdowncontent">
+
opacity: 0;
<a style="color: white; text-decoration: None;" href="https://2021.igem.org/Team:MIT/Parts"> Parts Overview </a>
+
transform: translateX(25px);
<a style="color: white; text-decoration: None;" href="https://2021.igem.org/Team:MIT/Basic_Part"> Basic Parts </a>
+
}
<a style="color: white; text-decoration: None;" href="https://2021.igem.org/Team:MIT/Composite_Part"> Composite Parts </a>
+
to {
</div>
+
opacity: 1;
</li>
+
transform: translateX(0px);
<li class="dropdown">   
+
}
<a> Safety </a>
+
}
 +
 
 +
.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>
 +
<nav>
 +
<ul class="nav-links">
 +
<li class="dropdown">
 +
<a style="color: white; text-decoration: None;" class="link" href="https://2021.igem.org/Team:MIT">Home </a>
 +
</li>
 +
 
 +
<li class="dropdown">   
 +
<a> Team </a>
 
<div class="dropdowncontent">
 
<div class="dropdowncontent">
<a style="color: white; text-decoration: None;" href="https://2021.igem.org/Team:MIT/Safety"> Safety </a>
+
<a style="color: white; text-decoration: None;" href="https://2021.igem.org/Team:MIT/Team">Team </a>
<a style="color: white; text-decoration: None;" href="https://2021.igem.org/Team:MIT/Implementation"> Implementation </a>
+
<a style="color: white; text-decoration: None;" href="https://2021.igem.org/Team:MIT/Attributions"> Attributions </a>
 
</div>
 
</div>
</li>
+
</li>
  
<li class="dropdown">
+
<li class="dropdown">  
<a> Human Practices </a>
+
<a> Project </a>
 
<div class="dropdowncontent">
 
<div class="dropdowncontent">
<a style="color: white; text-decoration: None;" href="https://2021.igem.org/Team:MIT/Human_Practices">Human Practices</a>
+
<a style="color: white; text-decoration: None;" class="link" href="https://2021.igem.org/Team:MIT/Description"> Description </a>
<a style="color: white; text-decoration: None;" href="https://2021.igem.org/Team:MIT/Education"> Outreach & Engagement </a>
+
<a style="color: white; text-decoration: None;" href="https://2021.igem.org/Team:MIT/Design"> Design </a>
 +
<a style="color: white; text-decoration: None;" href="https://2021.igem.org/Team:MIT/Experiments"> Experiments </a>
 +
<a style="color: white; text-decoration: None;" href="https://2021.igem.org/Team:MIT/Model"> Model </a>
 +
<a style="color: white; text-decoration: None;" href="https://2021.igem.org/Team:MIT/Results"> Results </a>
 +
<a style="color: white; text-decoration: None;" href="https://2021.igem.org/Team:MIT/Engineering"> Engineering Success </a>
 +
<a style="color: white; text-decoration: None;" href="https://2021.igem.org/Team:MIT/Contribution"> Contribution </a>
 +
</div>
 +
</li>
 +
 
 +
<li class="dropdown"> 
 +
<a> Parts </a>
 +
<div class="dropdowncontent">
 +
<a style="color: white; text-decoration: None;" href="https://2021.igem.org/Team:MIT/Parts"> Parts Overview </a>
 +
<a style="color: white; text-decoration: None;" href="https://2021.igem.org/Team:MIT/Basic_Part"> Basic Parts </a>
 +
<a style="color: white; text-decoration: None;" href="https://2021.igem.org/Team:MIT/Composite_Part"> Composite Parts </a>
 
</div>
 
</div>
 
</li>
 
</li>
 +
<li class="dropdown"> 
 +
<a> Safety </a>
 +
<div class="dropdowncontent">
 +
<a style="color: white; text-decoration: None;" href="https://2021.igem.org/Team:MIT/Safety"> Safety </a>
 +
<a style="color: white; text-decoration: None;" href="https://2021.igem.org/Team:MIT/Implementation"> Implementation </a>
 +
</div>
 +
</li>
  
<div class="burger">
+
<li class="dropdown">
<div class="line1"></div>
+
<a> Human Practices </a>
<div class="line2"></div>
+
<div class="dropdowncontent">
<div class="line3"></div>
+
<a style="color: white; text-decoration: None;" href="https://2021.igem.org/Team:MIT/Human_Practices">Human Practices</a>
 +
<a style="color: white; text-decoration: None;" href="https://2021.igem.org/Team:MIT/Education"> Outreach & Engagement </a>
 
</div>
 
</div>
 +
</li>
 +
 +
<div class="burger">
 +
<div class="line1"></div>
 +
<div class="line2"></div>
 +
<div class="line3"></div>
 +
</div>
 +
 +
</u1>
 +
</nav>
 +
</body>
  
</u1>
 
</nav>
 
</body>
 
  
 
<script>
 
<script>
console.log("Menu Script Loaded");
+
/*Toggle Nav*/
/*Toggle Nav*/
+
 
const navSlide = () => {
 
const navSlide = () => {
 
const burger = document.querySelector ('.burger');
 
const burger = document.querySelector ('.burger');
Line 353: Line 406:
 
burger.addEventListener('click', () => {
 
burger.addEventListener('click', () => {
 
nav.classList.toggle('nav-active');
 
nav.classList.toggle('nav-active');
/*Animate Menu links*/
+
/*Animate Menu links*/
navLinks.forEach((link,index) => {
+
navLinks.forEach((link,index) => {
if(link.style.animation) {
+
if(link.style.animation) {
link.style.animation = '';
+
link.style.animation = '';
}
+
}
else {
+
else {
link.style.animation = `navLinkFade 0.5s ease forwards ${index / 5 + 0.05}s`;
+
link.style.animation = `navLinkFade 0.5s ease forwards ${index / 5 + 0.05}s`;
}
+
}
 +
});
 +
/*Burger Animation*/
 +
burger.classList.toggle('toggle');
 +
 
 +
 
});
 
});
/*Burger Animation*/
+
 
burger.classList.toggle('toggle');
+
 
});
+
}
}
+
 
navSlide();
+
navSlide();
</script>
+
 
 +
</script>
 +
 
 
</html>
 
</html>

Revision as of 01:15, 14 October 2021