Difference between revisions of "Team:Imperial College/Templates/NavBar"

Line 1: Line 1:
 +
 
<html>
 
<html>
 
<head>
 
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
+
<meta name="viewport" content="width=device-width, initial-scale=1">
 
<link href="https://fonts.googleapis.com/css?family=Varela+Round" rel="stylesheet">
 
<link href="https://fonts.googleapis.com/css?family=Varela+Round" rel="stylesheet">
 
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"  
 
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"  
 
     integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
 
     integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
  <link href="https://cdnjs.cloudflare.com/ajax/libs/balloon-css/0.3.0/balloon.css" rel="stylesheet">
 
  <link rel="stylesheet" type="text/css" href=""/>
 
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
 
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
 
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
 
  
 
<script>
 
<script>
Line 27: Line 23:
 
         });
 
         });
 
     }
 
     }
 
  
 
</script>
 
</script>
Line 71: Line 66:
  
 
hr{
 
hr{
    margin:auto;
+
      margin:auto;
    margin-top:2%;
+
      margin-top:2%;
    border-top: 4px dashed #F5D76E;
+
border-top: 4px dashed #F5D76E;
 
}
 
}
 +
  
 
.container{
 
.container{
Line 156: Line 152:
  
 
/********************************* NAVBAR  ********************************/
 
/********************************* NAVBAR  ********************************/
 +
 +
nav{
 +
 +
        width:100%;
 +
        height:auto;
 +
        background:white;
 +
        margin-bottom: 2%;
 +
        position:fixed;
 +
        z-index: 40;
 +
}
  
 
.logo{
 
.logo{
Line 161: Line 167:
 
     float: left;
 
     float: left;
 
     height: 80px;
 
     height: 80px;
     background-color:white;
+
     background-color:none;
    margin-right:5%;
+
 
     box-sizing: border-box;
 
     box-sizing: border-box;
 
}
 
}
Line 180: Line 185:
 
}
 
}
  
.navigation {
+
.dropdown {
  margin:auto;
+
  height: 70px;
+
  background: white;
+
  position:fixed;
+
}
+
 
+
.nav-container {
+
width: 100%;
+
margin: 0 auto;
+
height:auto;
+
background:white;
+
margin-bottom: 0;
+
position:fixed;
+
z-index: 40;
+
}
+
 
+
 
+
nav {
+
    margin:auto;
+
 
     float: right;
 
     float: right;
    padding-top:2%;
+
     width: 80%;
     width: 65%;
+
     text-align: center;
     text-align:center;
+
     background-color:none;
     background-color:white;
+
 
+
 
}
 
}
  
nav ul {
+
.dropdown ul {
    margin:auto;
+
    margin:0;
     list-style: none;
+
     padding-top:45px;
     padding: 0;
+
list-style: none;
 
+
     background-color:none;
 
+
   
 
}
 
}
nav li {
+
.dropdown ul li {
 
     float: left;
 
     float: left;
 +
    cursor:pointer;
 +
    color:white;
 +
    font-size: 14px;
 +
    background-color:none;
 +
    padding-right:8px;
 +
    width:150px;
 +
    height:30px;
 
     position: relative;
 
     position: relative;
 
+
    margin-top:5px;
 
+
 
}
 
}
  
nav a, a:visited {
+
.dropdown ul li a{
 +
    padding:0;
 +
    color: #24305E ;
 +
    background-color: none;
 +
    text-decoration: none;
 +
    position: relative;
 
     display: block;
 
     display: block;
    padding: 0 15px 0;
 
    line-height: 50px;
 
    color: #24305E;
 
 
     text-shadow: 1px 1px lightgrey;
 
     text-shadow: 1px 1px lightgrey;
 
     transition:0.65s;
 
     transition:0.65s;
    text-decoration: none;
 
 
}
 
}
  
nav ul li a:hover {
+
.dropdown ul ul li a{
        text-shadow:1px 1px #D0FADE;
+
     padding:0;
        color:  #7EF397;
+
     background-color: none;
     }
+
 
+
    dropdown-menu ul li {
+
        min-width: 190px;
+
    }
+
    dropdown-menu  a {
+
            padding: 15px;
+
            line-height: 20px;
+
 
+
     }
+
    dropdown-item :hover{
+
    color: rgb(248, 59, 122);
+
    text-shadow: lightpink  ;
+
    }
+
 
+
.dropdown-menu {
+
  position: absolute;
+
  display:none;
+
  z-index: 1;
+
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
+
 
}
 
}
  
#navbarDropdown{
+
.dropdown ul ul{
     text-decoration: none;
+
     margin:0;
+
    padding:0;
 +
    top:30px;
 +
list-style: none;
 +
    background-color:white;
 +
    box-shadow: 0px 5px 5px rgba(0,0,0,0.4);
 +
    position: absolute;
 +
    display: none;
 
}
 
}
/* Mobile navigation */
 
  
.nav-mobile {
 
  display: none;
 
  position: absolute;
 
  top: 0;
 
  right: 0;
 
  background: white;
 
  height: 70px;
 
  width: 70px;
 
}
 
@media only screen and (max-width: 798px) {
 
  
  .nav-mobile {
 
    display: block;
 
  }
 
  
nav{  
+
.dropdown ul ul a{
      
+
     background-color:none;
 
     width:100%;
 
     width:100%;
     height:auto;
+
     text-align: left;
     background:white;
+
     margin:0;
     margin-bottom: 2%;
+
     padding-left:2px;
     position:fixed;
+
     box-sizing: border-box;
    z-index: 40;
+
 
}
 
}
a{
+
ul.sub1 li {
     text-decoration: none;
+
     background-color:none;
 
+
    margin-left: 25%;
           
+
    width:110px;
 +
}
 +
ul.sub2 li {
 +
    background-color: none;
 +
    margin-left: 5%;
 +
    padding:0;
 +
    width: 180px;
 
}
 
}
.nav-list{
 
        margin: auto;
 
        display: none;
 
   
 
        }
 
  
.nav-list li {
+
ul.sub3 li {
     
+
    background-color:none;
        float: none;
+
    margin-left: 25%;
       
+
    width:80px;
        }
+
}
.nav-list  a {
+
            padding: 15px;
+
            line-height: 25px;
+
   
+
        }
+
nav ul li a {
+
            padding-left: 30px;
+
        }
+
  
  .dropdown-menu {
+
.dropdown ul li a:hover{
     position: static;
+
     color: #7EF397;
  }
+
    text-shadow: 1px 1px #D0FADE;
 
}
 
}
  
@media screen and (min-width: 768px) {
+
.dropdown ul li ul li a:hover{
  .nav-list {
+
     color: rgb(248, 59, 122);
     display: block !important;
+
    text-shadow: lightpink;
  }
+
 
}
 
}
  
#nav-toggle {
+
.dropdown ul li:hover > ul {
  position: absolute;
+
    display:block;
  left: 18px;
+
  top: 22px;
+
  cursor: pointer;
+
  padding: 10px 35px 16px 0px;
+
 
}
 
}
#nav-toggle span,
+
 
  span:before,
+
  span:after {
+
    cursor: pointer;
+
    border-radius: 1px;
+
    height: 5px;
+
    width: 35px;
+
    background: white;
+
    position: absolute;
+
    display: block;
+
    content: '';
+
    transition: all 300ms ease-in-out;
+
  }
+
  #nav-toggle span:before {
+
    top: -10px;
+
  }
+
  #nav-toggle span:after {
+
    bottom: -10px;
+
  }
+
  #nav-toggle.active span {
+
    background-color: transparent;
+
  }
+
    #nav-toggle:before,
+
    #nav-toggle:after {
+
      top: 0;
+
    }
+
    #nav-toggle:before {
+
      transform: rotate(45deg);
+
    }
+
    #nav-toggle:after {
+
      transform: rotate(-45deg);
+
    }
+
 
+
  
 
/********************************* CONTENT OF THE PAGE ********************************/
 
/********************************* CONTENT OF THE PAGE ********************************/
Line 370: Line 288:
 
     padding: 20px;
 
     padding: 20px;
 
     margin-top: 12%;
 
     margin-top: 12%;
     font-size: 70px;
+
     font-size: 85px;
 
     background-color:none;
 
     background-color:none;
 
     text-align: center;
 
     text-align: center;
 
     font-family: 'Varela Round', sans-serif !important;
 
     font-family: 'Varela Round', sans-serif !important;
    color:#24305E;
+
  color:#24305E;
 
     overflow: visible;
 
     overflow: visible;
 
  }
 
  }
Line 392: Line 310:
 
  h3{
 
  h3{
 
     text-align: center;
 
     text-align: center;
     font-size: 40px;
+
     font-size: 42px;
 
     margin:3% 2% 2% 2%;
 
     margin:3% 2% 2% 2%;
 
     font-family: 'Varela Round', sans-serif;
 
     font-family: 'Varela Round', sans-serif;
Line 441: Line 359:
 
  p2{
 
  p2{
 
     width:30%;
 
     width:30%;
     font-size: 22px;
+
     font-size: 25px;
     line-height: 24px;
+
     line-height: 40px;
 
     text-align: center;
 
     text-align: center;
 
     background: none;
 
     background: none;
Line 461: Line 379:
  
 
</head>
 
</head>
 +
<!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
 +
<!--- THIS IS WHERE THE HTML BEGINS --->
 +
<!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
  
<body>
 
<section class="navigation">
 
  <div class="nav-container">
 
    <div class="logo">
 
      <a href="#"> <img class="pixcell" src="https://static.igem.org/mediawiki/2018/8/80/T--Imperial_College--pixcell.png"></a>
 
      <a href="#"> <img class="iclogo " src="https://static.igem.org/mediawiki/2018/8/8b/T--Imperial_College--college.png"></a>
 
  </div>
 
  
    <nav>
 
      <div class="nav-mobile"><a id="nav-toggle" href="#!"><span></span></a></div>
 
      <div class="menu">
 
      <ul class="nav-list">
 
            <li class="nav-item dropdown">
 
                    <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
 
                      PROJECT<i class="fa fa-caret-down" aria-hidden="true"></i>
 
                    </a>
 
   
 
          <ul class="dropdown-menu">
 
                <li><a href="https://2018.igem.org/Team:Imperial_College/Project">DESCRIPTION</a>
 
                    <li><a href="https://2018.igem.org/Team:Imperial_College/Mechanisms">MECHANISMS</a>
 
                      <li><a href="https://2018.igem.org/Team:Imperial_College/Applied_Design">APPLICATIONS</a>
 
                    <li><a href="https://2018.igem.org/Team:Imperial_College/Achievements">ACHIEVEMENTS</a>
 
                    <li><a href="https://2018.igem.org/Team:Imperial_College/Future">FUTURE WORK</a>
 
                  <li><a href="https://2018.igem.org/Team:Imperial_College/Brainstorming">BRAINSTORM</a>
 
                    </li>
 
          </ul>
 
        </li>
 
        <li>
 
  
        <li class="nav-item dropdown">
+
<!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
                 <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
+
<!--- Menu --->
                    DRY LAB
+
<!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
                    <i class="fa fa-caret-down" aria-hidden="true"></i>
+
 
                </a>
+
<body>
       
+
<div class="nav">
          <ul class="dropdown-menu">
+
                 <div class="logo">
                <li><a href="https://2018.igem.org/Team:Imperial_College/Dryover">OVERVIEW</a>
+
                    <a href="#"> <img class="pixcell" src= "https://static.igem.org/mediawiki/2018/8/80/T--Imperial_College--pixcell.png" ></a>
                    <li><a href=" https://2018.igem.org/Team:Imperial_College/Model">MODELLING</a>
+
                    <a href="#"> <img class="iclogo "src="https://static.igem.org/mediawiki/2018/8/8b/T--Imperial_College--college.png" ></a>
                  <li><a href="https://2018.igem.org/Team:Imperial_College/Hardware">HARDWARE</a>
+
                </div>
                    <li><a href="https://2018.igem.org/Team:Imperial_College/Software">SOFTWARE</a>
+
           
          </ul>
+
                <div class="dropdown">
        <li>
+
                    <ul>
                <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
+
                        <li><a href="#">PROJECT<i class="fa fa-caret-down" aria-hidden="true"></i></a>
                        WET LAB
+
                        <ul class= "sub1">
                        <i class="fa fa-caret-down" aria-hidden="true"></i>
+
                              <li><a href="https://2018.igem.org/Team:Imperial_College/Project"">DESCRIPTION</a>
                    </a>
+
                              <li><a href="https://2018.igem.org/Team:Imperial_College/Mechanisms">MECHANISMS</a>
          <ul class="dropdown-menu">
+
                                <li><a href="https://2018.igem.org/Team:Imperial_College/Applications">APPLICATIONS</a>
                <li><a href="https://2018.igem.org/Team:Imperial_College/Wetover">OVERVIEW</a>
+
                              <li><a href="https://2018.igem.org/Team:Imperial_College/Achievements">ACHIEVEMENTS</a>
                    <li><a href=" https://2018.igem.org/Team:Imperial_College/Demonstrate">RESULTS</a></li>
+
                              <li><a href="https://2018.igem.org/Team:Imperial_College/Future">FUTURE WORK</a>
                    <li><a href="https://2018.igem.org/Team:Imperial_College/Experiments">EXPERIMENTS</a></li>
+
                            <li><a href="https://2018.igem.org/Team:Imperial_College/Brainstorming">BRAINSTORM</a>
                    <li><a href="https://2018.igem.org/Team:Imperial_College/Protocols">PROTOCOLS</a></li>
+
                        </ul>
                  <li><a href="https://2018.igem.org/Team:Imperial_College/Parts">PARTS</a></li>
+
                      </li>
                    <li><a href="https://2018.igem.org/Team:Imperial_College/Measurement">BASIC</a></li>
+
 
            </li>
+
                      <li><a href="#">DRY LAB<i class="fa fa-caret-down" aria-hidden="true"></i></a>
          </ul>
+
                        <ul class= "sub1">
        </li>
+
                                <li><a href="https://2018.igem.org/Team:Imperial_College/Dryover">OVERVIEW</a>
        <li>
+
                                <li><a href="https://2018.igem.org/Team:Imperial_College/Modelling">MODELLING</a>
                <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
+
                              <li><a href="https://2018.igem.org/Team:Imperial_College/Hardware">HARDWARE</a>
                        HUMAN PRACTICES
+
                          </ul>
                        <i class="fa fa-caret-down" aria-hidden="true"></i>
+
                      </li>
                    </a>
+
                        <li><a href="#">WET LAB<i class="fa fa-caret-down" aria-hidden="true"></i></a>
          <ul class="dropdown-menu">
+
                            <ul class= "sub1">
                <li><a href="https://2018.igem.org/Team:Imperial_College/Human_Practices">OVERVIEW</a></li>
+
                                    <li><a href="https://2018.igem.org/Team:Imperial_College/Wetover">OVERVIEW</a>
                <li><a href="https://2018.igem.org/Team:Imperial_College/IHP">INTEGRATED HP</a></li>
+
                                  <li><a href="https://2018.igem.org/Team:Imperial_College/Results">RESULTS</a></li>
              <li><a href="https://2018.igem.org/Team:Imperial_College/Communication">COMMUNICATION</a></li>
+
                                  <li><a href="https://2018.igem.org/Team:Imperial_College/Experiments">EXPERIMENTS</a></li>
              <li><a href="https://2018.igem.org/Team:Imperial_College/Public_Engagement">OUTREACH</a></li>
+
                                  <li><a href="https://2018.igem.org/Team:Imperial_College/Protocols">PROTOCOLS</a></li>
              <li><a href="https://2018.igem.org/Team:Imperial_College/Collaborations">COLLABORATIONS</a></li>
+
                                <li><a href="Parts">PARTS</a></li>
          </ul>
+
                               
        </li>
+
                            </ul>
        <li>
+
                            </li>
                <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
+
                   
                      PEOPLE
+
                        <li><a href="#">HUMAN PRACTICES<i class="fa fa-caret-down" aria-hidden="true"></i></a>
                        <i class="fa fa-caret-down" aria-hidden="true"></i>
+
                            <ul class= "sub2">
                    </a>
+
                                <li><a href="https://2018.igem.org/Team:Imperial_College/HP">OVERVIEW</a></li>
          <ul class="dropdown-menu">
+
                                  <li><a href="https://2018.igem.org/Team:Imperial_College/IHP">INTEGRATED HP</a></li>
                <li><a href="https://2018.igem.org/Team:Imperial_College/Team">TEAM</a></li>
+
                                <li><a href="https://2018.igem.org/Team:Imperial_College/Communication">COMMUNICATION</a></li>
                <li><a href="https://2018.igem.org/Team:Imperial_College/Attributions">ATTRIBUTIONS</a></li>
+
                                <li><a href="https://2018.igem.org/Team:Imperial_College/Outreach">OUTREACH</a></li>
                <li><a href="https://2018.igem.org/Team:Imperial_College/Sponsors">SPONSORS</a></li>
+
                                <li><a href="https://2018.igem.org/Team:Imperial_College/Collaborations">COLLABORATIONS</a></li>
          </ul>
+
                                </ul>
        </li>
+
                              </li>
        <li>
+
                       
          <a id="navbarDropdown" href="https://2018.igem.org/Team:Imperial_College/Judges">FOR JUDGES</a>
+
                        <li><a href="#">PEOPLE<i class="fa fa-caret-down" aria-hidden="true"></i></a>
        </li>
+
                          <ul class= "sub3">
        <li>
+
                                <li><a href="https://2018.igem.org/Team:Imperial_College/Team">TEAM</a></li>
          <a id="navbarDropdown" href="https://2018.igem.org/Team:Imperial_College/Journal">JOURNAL</a>
+
                                <li><a href="https://2018.igem.org/Team:Imperial_College/Attributions">ATTRIBUTIONS</a></li>
        </li>
+
                                <li><a href="https://2018.igem.org/Team:Imperial_College/Sponsors">SPONSORS</a></li>
      </ul>
+
                              </ul>
    </div>
+
                            </li>
    </nav>
+
                        <li><a href="https://2018.igem.org/Team:Imperial_College/Judges">FOR JUDGES</a></li>
  </div>
+
                        <li><a href="https://2018.igem.org/Team:Imperial_College/Journal">JOURNAL</a></li>
</section>
+
                    </ul>
 +
                </div>
 +
              </div>
 
    
 
    
 
</body>
 
</body>
 
  
 
<!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
 
<!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
 
<!--- Content of the page  --->
 
<!--- Content of the page  --->
 
<!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
 
<!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->

Revision as of 21:55, 13 October 2018