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">
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
 
<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 23: Line 27:
 
         });
 
         });
 
     }
 
     }
=
+
 
 
+
  
 
</script>
 
</script>
Line 68: Line 71:
  
 
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 154: Line 156:
  
 
/********************************* NAVBAR  ********************************/
 
/********************************* NAVBAR  ********************************/
 
.nav{
 
 
width:100%;
 
      height:auto;
 
background:white;
 
margin-bottom: 2%;
 
        position:fixed;
 
        z-index: 40;
 
}
 
  
 
.logo{
 
.logo{
Line 169: Line 161:
 
     float: left;
 
     float: left;
 
     height: 80px;
 
     height: 80px;
     background-color:none;
+
     background-color:white;
 +
    margin-right:5%;
 
     box-sizing: border-box;
 
     box-sizing: border-box;
 
}
 
}
Line 187: Line 180:
 
}
 
}
  
.dropdown {
+
.navigation {
 +
  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;
     width: 80%;
+
    padding-top:2%;
     text-align: center;
+
     width: 65%;
     background-color:none;
+
     text-align:center;
 +
     background-color:white;
 +
 
 
}
 
}
  
.dropdown ul {
+
nav ul {
    margin:0;
+
    margin:auto;
     padding-top:45px;
+
     list-style: none;
list-style: none;
+
     padding: 0;
     background-color:none;
+
 
   
+
 
 
}
 
}
.dropdown ul li {
+
nav 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;
+
 
 +
 
 
}
 
}
  
.dropdown ul li a{
+
nav a, a:visited {
    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;
 
}
 
}
  
.dropdown ul ul li a{
+
nav ul li a:hover {
     padding:0;
+
        text-shadow:1px 1px #D0FADE;
     background-color: none;
+
        color:  #7EF397;
 +
     }
 +
 
 +
    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);
 
}
 
}
  
.dropdown ul ul{
+
#navbarDropdown{
     margin:0;
+
     text-decoration: none;
    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;
 +
  }
  
.dropdown ul ul a{
+
nav{  
     background-color:none;
+
      
 
     width:100%;
 
     width:100%;
     text-align: left;
+
     height:auto;
     margin:0;
+
     background:white;
     padding-left:2px;
+
     margin-bottom: 2%;
     box-sizing: border-box;
+
     position:fixed;
 +
    z-index: 40;
 
}
 
}
ul.sub1 li {
+
a{
     background-color:none;
+
     text-decoration: 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;
 +
   
 +
        }
  
ul.sub3 li {
+
.nav-list li {
    background-color:none;
+
     
    margin-left: 25%;
+
        float: none;
    width:80px;
+
       
}
+
        }
 +
.nav-list  a {
 +
            padding: 15px;
 +
            line-height: 25px;
 +
   
 +
        }
 +
nav ul li a {
 +
            padding-left: 30px;
 +
        }
  
.dropdown ul li a:hover{
+
  .dropdown-menu {
     color: #7EF397;
+
     position: static;
    text-shadow: 1px 1px #D0FADE;
+
  }
 
}
 
}
  
.dropdown ul li ul li a:hover{
+
@media screen and (min-width: 799px) {
    color: rgb(248, 59, 122);
+
  .nav-list {
     text-shadow: lightpink;
+
     display: block !important;
 +
  }
 
}
 
}
  
.dropdown ul li:hover > ul {
+
#nav-toggle {
    display:block;
+
  position: absolute;
 +
  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 294: Line 374:
 
     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 312: Line 392:
 
  h3{
 
  h3{
 
     text-align: center;
 
     text-align: center;
     font-size: 42px;
+
     font-size: 40px;
 
     margin:3% 2% 2% 2%;
 
     margin:3% 2% 2% 2%;
 
     font-family: 'Varela Round', sans-serif;
 
     font-family: 'Varela Round', sans-serif;
Line 361: Line 441:
 
  p2{
 
  p2{
 
     width:30%;
 
     width:30%;
     font-size: 20px;
+
     font-size: 22px;
     line-height: 30px;
+
     line-height: 24px;
 
     text-align: center;
 
     text-align: center;
 
     background: none;
 
     background: none;
Line 381: Line 461:
  
 
</head>
 
</head>
<!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
 
<!--- THIS IS WHERE THE HTML BEGINS --->
 
<!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
 
 
 
 
<!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
 
<!--- Menu --->
 
<!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
 
 
 
<body>
 
<body>
<div class="nav">
+
<section class="navigation">
                <div class="logo">
+
  <div class="nav-container">
                    <a href="#"> <img class="pixcell" src= "https://static.igem.org/mediawiki/2018/8/80/T--Imperial_College--pixcell.png" ></a>
+
    <div class="logo">
                    <a href="#"> <img class="iclogo "src="https://static.igem.org/mediawiki/2018/8/8b/T--Imperial_College--college.png" ></a>
+
      <a href="#"> <img class="pixcell" src="https://static.igem.org/mediawiki/2018/8/80/T--Imperial_College--pixcell.png"></a>
                </div>
+
      <a href="#"> <img class="iclogo " src="https://static.igem.org/mediawiki/2018/8/8b/T--Imperial_College--college.png"></a>
           
+
  </div>
                <div class="dropdown">
+
                    <ul>
+
                        <li><a href="#">PROJECT<i class="fa fa-caret-down" aria-hidden="true"></i></a>
+
                        <ul class= "sub1">
+
                              <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>
+
                        </ul>
+
                      </li>
+
  
                      <li><a href="#">DRY LAB<i class="fa fa-caret-down" aria-hidden="true"></i></a>
+
    <nav>
                        <ul class= "sub1">
+
      <div class="nav-mobile"><a id="nav-toggle" href="#!"><span></span></a></div>
                                <li><a href="https://2018.igem.org/Team:Imperial_College/Dryover">OVERVIEW</a>
+
      <div class="menu">
                                <li><a href=" https://2018.igem.org/Team:Imperial_College/Model">MODELLING</a>
+
      <ul class="nav-list">
                              <li><a href="https://2018.igem.org/Team:Imperial_College/Hardware">HARDWARE</a>
+
            <li class="nav-item dropdown">
                                <li><a href="https://2018.igem.org/Team:Imperial_College/Software">SOFTWARE</a>
+
                    <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>
  
                          </ul>
+
        <li class="nav-item dropdown">
                      </li>
+
                <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                        <li><a href="#">WET LAB<i class="fa fa-caret-down" aria-hidden="true"></i></a>
+
                    DRY LAB
                            <ul class= "sub1">
+
                    <i class="fa fa-caret-down" aria-hidden="true"></i>
                                    <li><a href="https://2018.igem.org/Team:Imperial_College/Wetover">OVERVIEW</a>
+
                </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/Experiments">EXPERIMENTS</a></li>
+
          <ul class="dropdown-menu">
                                  <li><a href="https://2018.igem.org/Team:Imperial_College/Protocols">PROTOCOLS</a></li>
+
                <li><a href="https://2018.igem.org/Team:Imperial_College/Dryover">OVERVIEW</a>
                                <li><a href="https://2018.igem.org/Team:Imperial_College/Parts">PARTS</a></li>
+
                    <li><a href=" https://2018.igem.org/Team:Imperial_College/Model">MODELLING</a>
                                  <li><a href="https://2018.igem.org/Team:Imperial_College/Measurement">PROTOCOLS</a></li>
+
                  <li><a href="https://2018.igem.org/Team:Imperial_College/Hardware">HARDWARE</a>
                            </ul>
+
                    <li><a href="https://2018.igem.org/Team:Imperial_College/Software">SOFTWARE</a>
                            </li>
+
          </ul>
                   
+
        <li>
                        <li><a href="#">HUMAN PRACTICES<i class="fa fa-caret-down" aria-hidden="true"></i></a>
+
                <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                            <ul class= "sub2">
+
                        WET LAB
                                <li><a href="https://2018.igem.org/Team:Imperial_College/Human_Practices">OVERVIEW</a></li>
+
                        <i class="fa fa-caret-down" aria-hidden="true"></i>
                                  <li><a href="https://2018.igem.org/Team:Imperial_College/IHP">INTEGRATED HP</a></li>
+
                    </a>
                                <li><a href="https://2018.igem.org/Team:Imperial_College/Communication">COMMUNICATION</a></li>
+
          <ul class="dropdown-menu">
                                <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/Wetover">OVERVIEW</a>
                                <li><a href="https://2018.igem.org/Team:Imperial_College/Collaborations">COLLABORATIONS</a></li>
+
                    <li><a href=" https://2018.igem.org/Team:Imperial_College/Demonstrate">RESULTS</a></li>
                                </ul>
+
                    <li><a href="https://2018.igem.org/Team:Imperial_College/Experiments">EXPERIMENTS</a></li>
                              </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/Parts">PARTS</a></li>
                        <li><a href="#">PEOPLE<i class="fa fa-caret-down" aria-hidden="true"></i></a>
+
                    <li><a href="https://2018.igem.org/Team:Imperial_College/Measurement">BASIC</a></li>
                          <ul class= "sub3">
+
            </li> 
                                <li><a href="https://2018.igem.org/Team:Imperial_College/Team">TEAM</a></li>
+
          </ul>
                                <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>
+
        <li>
                              </ul>
+
                <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                            </li>
+
                        HUMAN PRACTICES
                        <li><a href="https://2018.igem.org/Team:Imperial_College/Judges">FOR JUDGES</a></li>
+
                        <i class="fa fa-caret-down" aria-hidden="true"></i>
                        <li><a href="https://2018.igem.org/Team:Imperial_College/Journal">JOURNAL</a></li>
+
                    </a>
                    </ul>
+
          <ul class="dropdown-menu">
                </div>
+
                <li><a href="https://2018.igem.org/Team:Imperial_College/Human_Practices">OVERVIEW</a></li>
              </div>
+
                <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/Communication">COMMUNICATION</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/Collaborations">COLLABORATIONS</a></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
 +
                        <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/Team">TEAM</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/Sponsors">SPONSORS</a></li>
 +
          </ul>
 +
        </li>
 +
        <li>
 +
          <a id="navbarDropdown" href="https://2018.igem.org/Team:Imperial_College/Judges">FOR JUDGES</a>
 +
        </li>
 +
        <li>
 +
          <a id="navbarDropdown" href="https://2018.igem.org/Team:Imperial_College/Journal">JOURNAL</a>
 +
        </li>
 +
      </ul>
 +
    </div>
 +
    </nav>
 +
  </div>
 +
</section>
 
    
 
    
 
</body>
 
</body>
 +
  
 
<!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
 
<!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
 
<!--- Content of the page  --->
 
<!--- Content of the page  --->
 
<!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
 
<!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->

Revision as of 21:18, 13 October 2018