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

 
(78 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
<meta name="viewport" content="width=device-width, initial-scale=1.0">
 
<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" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">
  <link rel="stylesheet" type="text/css" href=""/>
+
 
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
+
<link rel="stylesheet" type="text/css"  
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
+
href="https://2018.igem.org/wiki/index.php?title=Template:Imperial_College/CSS2&action=raw&ctype=text/css" />
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
+
<script type="text/javascript" src="https://2018.igem.org/wiki/index.php?title=Template:Imperial_College/CSS&action=raw&ctype=text/javascript"></script>
 +
<script type="text/javascript" src="https://2018.igem.org/wiki/index.php?title=Template:Imperial_college/script&action=raw&ctype=text/javascript"></script>
 +
<link rel="stylesheet" type="text/css"
 +
href="https://2018.igem.org/wiki/index.php?title=Template:Imperial College/CSS3&action=raw&ctype=text/css" />
 +
<link rel="stylesheet" type="text/css"
 +
href="https://2018.igem.org/wiki/index.php?title=Template:Template:Imperial College/CSS4&action=raw&ctype=text/css" />
 +
<script type="text/javascript" src="https://2018.igem.org/wiki/index.php?title=Template:Imperial_College/javascript&action=raw&ctype=text/javascript"></script>
 +
 
 +
 
  
 
<script>
 
<script>
Line 27: Line 36:
 
         });
 
         });
 
     }
 
     }
(function($) { // Begin jQuery
+
 
    $(function() { // DOM ready
+
    // If a link has a dropdown, add sub menu toggle.
+
      $('nav ul li a:not(:only-child)').click(function(e) {
+
        $(this).siblings('.nav-dropdown').toggle();
+
        // Close one dropdown when selecting another
+
        $('.nav-dropdown').not($(this).siblings()).hide();
+
        e.stopPropagation();
+
      });
+
      // Clicking away from dropdown will remove the dropdown class
+
      $('html').click(function() {
+
        $('.nav-dropdown').hide();
+
      });
+
      // Toggle open and close nav styles on click
+
      $('#nav-toggle').click(function() {
+
        $('nav ul').slideToggle();
+
      });
+
      // Hamburger to X toggle
+
      $('#nav-toggle').on('click', function() {
+
        this.classList.toggle('active');
+
      });
+
    }); // end DOM ready
+
  })(jQuery); // end jQuery
+
  
 
</script>
 
</script>
Line 87: Line 74:
 
.center{
 
.center{
 
     text-align: center;
 
     text-align: center;
 +
}
 +
 +
.floatleft{
 +
  font-size:25px;
 +
  text-align: center;
 +
    margin-top:0 !important;
 +
    float:right !important;
 +
    width:30%;
 +
    font-size:20px;
 +
    margin-bottom:4%;
 +
  font-family: 'Varela Round', sans-serif;
 +
    color:#24305E;
 +
 +
}
 +
.floatright2{
 +
  text-align: center;
 +
    margin-top:0 !important;
 +
    float:right !important;
 +
    width:50%;
 +
    margin-bottom:4%;
 +
  font-family: 'Varela Round', sans-serif;
 +
    color:#24305E;
 +
}
 +
 +
.floatleft2{
 +
  float:left;
 +
  width:50%;
 +
 +
 
 +
}
 +
 +
.underbold{
 +
font-weight: bold;
 +
text-decoration: underline;
 
}
 
}
 
.marginbottom{
 
.marginbottom{
Line 143: Line 164:
 
     color: #24305E;
 
     color: #24305E;
 
     cursor: pointer;
 
     cursor: pointer;
    margin-bottom:4%;
 
 
     padding: 18px;
 
     padding: 18px;
 
     width: 100%;
 
     width: 100%;
Line 152: Line 172:
 
     transition: 0.4s;
 
     transition: 0.4s;
 
     border-radius: 10px;
 
     border-radius: 10px;
 +
    margin-bottom: 4%;
 
}
 
}
  
Line 167: Line 188:
 
     transition: max-height 0.3s linear;
 
     transition: max-height 0.3s linear;
 
     overflow:hidden;
 
     overflow:hidden;
 +
    background:none;
 
}
 
}
  
Line 173: Line 195:
 
     display: none;
 
     display: none;
 
     overflow: hidden;
 
     overflow: hidden;
     background-color: #f1f1f1;
+
     background-color: none;
 
     border-radius: 20px;
 
     border-radius: 20px;
 +
}
 +
 +
.row {
 +
    display: table;
 +
    margin: auto;
 +
    height:100%;
 +
    width: 100%;
 +
    margin: 0;
 +
    padding: 0;
 +
    border: 0;
 +
}
 +
 +
.row [class*="col-"] {
 +
    width: 50%;
 +
    float: none;
 +
    display: table-cell;
 +
    vertical-align: top;
 +
 +
}
 +
 +
 +
#display-pic{
 +
    vertical-align: middle;
 +
    text-align: center;
 +
}
 +
 +
#display-pic img{
 +
    width: 40%;
 +
    margin-right:5%;
 +
    border-radius: 50%;
 +
    border: solid 10px  #A8D0E6;
 +
    box-sizing: border-box;
 +
    transition: border 0.2s ease;
 
      
 
      
 
}
 
}
 +
 +
#display-pic img:hover{
 +
    border:  solid 10px #F5D76E;
 +
    cursor:pointer;
 +
}
 +
 +
 +
.row [class*="col-"]  h2{
 +
    font-size: 20px;
 +
    font-family:"Varela Round", sans-serif;
 +
    color: #374785;
 +
    font-weight: bold;
 +
    transition: color 0.2s ease;
 +
}
 +
 +
.row [class*="col-"]  h2:hover{
 +
    color:#F76C6C;
 +
}
 +
 +
.row [class*="col-"]  p{
 +
    width: 100%;
 +
    font-size: 18px;
 +
    font-family: "Varela Round", sans-serif;
 +
    color:#374785;
 +
    text-align:justify;
 +
 +
}
 +
#guard:hover{
 +
    color:#F76C6C;
 +
}
 +
 +
.display-pic{
 +
    float: right;
 +
    text-align: left;
 +
    clear: both;
 +
}
 +
.display-pic img{
 +
    width: 20%;
 +
    margin-right:5%;
 +
    float: left;
 +
    border-radius: 50%;
 +
    border: solid 10px  #A8D0E6;
 +
    box-sizing: border-box;
 +
    transition: border 0.2s ease;
 +
}
 +
 +
.display-pic img:hover{
 +
    border:  solid 10px #F5D76E;
 +
    cursor:pointer;
 +
}
 +
  
 
/********************************* NAVBAR  ********************************/
 
/********************************* NAVBAR  ********************************/
  
 
.logo{
 
.logo{
 +
    margin-top:1%;
 
     width: 20%;
 
     width: 20%;
 
     float: left;
 
     float: left;
Line 204: Line 311:
  
 
.navigation {
 
.navigation {
 +
  top: 0;
 
   margin:auto;
 
   margin:auto;
 
   height: 70px;
 
   height: 70px;
Line 229: Line 337:
 
     text-align:center;
 
     text-align:center;
 
     background-color:white;
 
     background-color:white;
  font-size:15px;
 
  
 
}
 
}
  
 
nav ul {
 
nav ul {
    margin:auto;
+
    margin:0;
 
     list-style: none;
 
     list-style: none;
 
     padding: 0;
 
     padding: 0;
Line 248: Line 355:
  
 
nav a, a:visited {
 
nav a, a:visited {
    display: block;
 
 
     padding: 0 15px 0;
 
     padding: 0 15px 0;
 
     line-height: 50px;
 
     line-height: 50px;
Line 263: Line 369:
  
 
     dropdown-menu ul li {
 
     dropdown-menu ul li {
        display:block;
 
 
         min-width: 190px;
 
         min-width: 190px;
 
     }
 
     }
Line 272: Line 377:
 
     }
 
     }
 
     dropdown-item :hover{
 
     dropdown-item :hover{
    display:block;
 
 
     color: rgb(248, 59, 122);
 
     color: rgb(248, 59, 122);
 
     text-shadow: lightpink  ;
 
     text-shadow: lightpink  ;
 +
 
     }
 
     }
  
 
.dropdown-menu {
 
.dropdown-menu {
 
   position: absolute;
 
   position: absolute;
   display:block;
+
   display: none;
 
   z-index: 1;
 
   z-index: 1;
 
   box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
 
   box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
Line 286: Line 391:
 
#navbarDropdown{
 
#navbarDropdown{
 
     text-decoration: none;
 
     text-decoration: none;
+
    font-size:15px;
 
}
 
}
 
/* Mobile navigation */
 
/* Mobile navigation */
Line 306: Line 411:
  
 
nav{  
 
nav{  
   
 
 
     width:100%;
 
     width:100%;
 
     height:auto;
 
     height:auto;
Line 314: Line 418:
 
     z-index: 40;
 
     z-index: 40;
 
}
 
}
 +
nav ul{
 +
    display: none;
 +
}
 +
 
a{
 
a{
 
     text-decoration: none;
 
     text-decoration: none;
 
 
           
 
 
}
 
}
 
.nav-list{
 
.nav-list{
 
         margin: auto;
 
         margin: auto;
         display:none;
+
         display: block !important;
   
+
 
      
 
      
 
         }
 
         }
Line 397: Line 502:
 
     margin: auto;
 
     margin: auto;
 
     padding: 20px;
 
     padding: 20px;
     margin-top: 7%;
+
     margin-top: 6%;
 
     font-size: 70px;
 
     font-size: 70px;
 
     background-color:none;
 
     background-color:none;
Line 419: Line 524:
 
}
 
}
 
  h3{
 
  h3{
 +
    font-weight: bold;
 
     text-align: center;
 
     text-align: center;
     font-size: 40px;
+
     font-size: 35px;
 
     margin:3% 2% 2% 2%;
 
     margin:3% 2% 2% 2%;
 
     font-family: 'Varela Round', sans-serif;
 
     font-family: 'Varela Round', sans-serif;
Line 428: Line 534:
  
 
  h4{
 
  h4{
 +
   
 
     font-size: 30px;
 
     font-size: 30px;
 
     font-family: 'Varela Round', sans-serif;
 
     font-family: 'Varela Round', sans-serif;
    color:#24305E;
+
    color:#24305E;
 
     overflow: visible;
 
     overflow: visible;
 
    
 
    
 
}
 
}
 
 
h5{
 
h5{
 
     text-align: left;
 
     text-align: left;
Line 495: Line 601:
 
   <div class="nav-container">
 
   <div class="nav-container">
 
     <div class="logo">
 
     <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="https://2018.igem.org/Team:Imperial_College"> <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>
 
       <a href="#"> <img class="iclogo " src="https://static.igem.org/mediawiki/2018/8/8b/T--Imperial_College--college.png"></a>
 
   </div>
 
   </div>
Line 510: Line 616:
 
           <ul class="dropdown-menu">
 
           <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/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/Mechanisms">DESIGN</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/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/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/Future">FUTURE WORK</a>
 
                   <li><a href="https://2018.igem.org/Team:Imperial_College/Brainstorming">BRAINSTORM</a>
 
                   <li><a href="https://2018.igem.org/Team:Imperial_College/Brainstorming">BRAINSTORM</a>
 +
               
 +
 
                     </li>
 
                     </li>
 
           </ul>
 
           </ul>
Line 540: Line 648:
 
                 <li><a href="https://2018.igem.org/Team:Imperial_College/Wetover">OVERVIEW</a>
 
                 <li><a href="https://2018.igem.org/Team:Imperial_College/Wetover">OVERVIEW</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/Demonstrate">RESULTS</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/Experiments">METHODS</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/Protocols">REFERENCES</a></li>
 
                   <li><a href="https://2018.igem.org/Team:Imperial_College/Parts">PARTS</a></li>
 
                   <li><a href="https://2018.igem.org/Team:Imperial_College/Parts">PARTS</a></li>
 
                     <li><a href="https://2018.igem.org/Team:Imperial_College/Measurement">BASIC</a></li>
 
                     <li><a href="https://2018.igem.org/Team:Imperial_College/Measurement">BASIC</a></li>
 +
                  <li><a href="https://2018.igem.org/Team:Imperial_College/Supplementary">SUPPLEMENTARY</a></li>
 +
 
             </li>   
 
             </li>   
 
           </ul>
 
           </ul>
Line 554: Line 664:
 
           <ul class="dropdown-menu">
 
           <ul class="dropdown-menu">
 
                 <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/Human_Practices">OVERVIEW</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/Communication">COMMUNICATION</a></li>
 
                 <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/IHP">INTEGRATED HP</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/Public_Engagement">OUTREACH</a></li>

Latest revision as of 03:49, 18 October 2018