Difference between revisions of "Team:TUDelft/HeaderGrnbl"

 
(7 intermediate revisions by the same user not shown)
Line 89: Line 89:
 
      
 
      
 
         <style>
 
         <style>
 +
    @media screen and (min-width: 768px){
 +
    CSS
 +
}
 +
    #custom-nav {
 +
    background-color: rgba(0,108,132,1);
 +
    border: 0;
 +
    box-shadow: none;
 +
    z-index: 999;
 +
    -webkit-transition: background .5s ease-in-out, opacity .5s ease;
 +
    -moz-transition: background .5s ease-in-out, opacity .5s ease;
 +
    transition: background .5s ease-in-out, opacity .5s ease;
 +
    margin-right: -15px;
 +
}
 +
    #custom-nav .dropdown-menu {
 +
    border-radius: 0;
 +
    border: none;
 +
    border-top: 5px solid transparent;
 +
    background-color: rgba(0,108,132,1);
 +
    -webkit-box-shadow: none;
 +
    box-shadow: none;
 +
    padding-top: 0;
 +
}
 +
    #custom-nav .container {
 +
    padding-top: 25px;
 +
    padding-bottom: 25px;
 +
    -webkit-transition: padding-top .5s ease, padding-bottom .5s ease;
 +
    -moz-transition: padding-top .5s ease, padding-bottom .5s ease;
 +
    transition: padding-top .5s ease, padding-top .5s ease, padding-bottom .5s ease;
 +
}
 +
    #custom-nav.affix {
 +
    top: 0;
 +
    min-width: 100%;
 +
    background-color: rgba(0,108,132,0.7);
 +
  /* opacity: 0.9; */
 +
    -webkit-transition: background .5s ease-in-out, opacity .5s ease;
 +
    -moz-transition: background .5s ease-in-out, opacity .5s ease;
 +
    transition: background .5s ease-in-out, opacity .5s ease;
 +
margin-right: 15px;
 +
}
 +
    @media screen and (max-width: 767px){
 +
    #wrapwrap {
 +
        padding-top: 50px;
 +
    }
 +
    .navbar-fixed-top {
 +
        z-index: 999;
 +
    }
 +
}
 +
 +
 
      
 
      
/* navbar */
+
/* navbar  
 
.navbar-default {
 
.navbar-default {
 
     background-color: #006C84;
 
     background-color: #006C84;
 
     border-color: #E7E7E7;
 
     border-color: #E7E7E7;
}
+
}*/
 +
 
 
/* Title */
 
/* Title */
 
.navbar-default .navbar-brand {
 
.navbar-default .navbar-brand {
Line 156: Line 206:
 
     .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
 
     .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
 
     .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
 
     .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
           color: #D3D3D3;
+
           color: #FFFFFF;
 
     }
 
     }
 
}
 
}
Line 163: Line 213:
 
      
 
      
 
     </style>
 
     </style>
 +
<script>
 +
$(window).scroll(function() {
 +
    if ($(".navbar").offset().top > 50) {
 +
        $('#custom-nav').addClass('affix');
 +
        $(".navbar-fixed-top").addClass("top-nav-collapse");
 +
    } else {
 +
        $('#custom-nav').removeClass('affix');
 +
        $(".navbar-fixed-top").removeClass("top-nav-collapse");
 +
    } 
 +
});
 +
</script>
  
 
</head>
 
</head>
Line 169: Line 230:
 
<header>
 
<header>
  
<nav class="navbar navbar-default navbar-fixed-top" style="margin:15px;">
+
<nav class="navbar navbar-default navbar-fixed-top" id="custom-nav" style="margin:15px;">
 
<div class="container-fluid">
 
<div class="container-fluid">
  
Line 202: Line 263:
 
     <li><a href="https://2018.igem.org/Team:TUDelft/Results">Results</a></li>
 
     <li><a href="https://2018.igem.org/Team:TUDelft/Results">Results</a></li>
 
     <li><a href="https://2018.igem.org/Team:TUDelft/Demonstrate">Demonstration</a></li>
 
     <li><a href="https://2018.igem.org/Team:TUDelft/Demonstrate">Demonstration</a></li>
     <li><a href="https://2018.igem.org/Team:TUDelft/Medals">Medal Requirements</a></li>
+
     <!-- <li><a href="https://2018.igem.org/Team:TUDelft/Medals">Medal Requirements</a></li>
 +
    <li><a href="https://igem.org/2018_Judging_Form?team=TUDelft">Judging form</a></li>  -->
 
     </ul>
 
     </ul>
 
</li>
 
</li>
Line 224: Line 286:
 
     <li><a href="https://2018.igem.org/Team:TUDelft/Composite_Parts">Composite Parts</a></li>
 
     <li><a href="https://2018.igem.org/Team:TUDelft/Composite_Parts">Composite Parts</a></li>
 
     <li><a href="https://2018.igem.org/Team:TUDelft/Part_Collection">Part Collection</a></li>
 
     <li><a href="https://2018.igem.org/Team:TUDelft/Part_Collection">Part Collection</a></li>
     <li><a href="https://2018.igem.org/Team:TUDelft/Primers">Primers</a></li>
+
     <li><a href="https://2018.igem.org/Team:TUDelft/Primers">Sequences</a></li>
 
   </ul>
 
   </ul>
 
</li>   
 
</li>   
Line 254: Line 316:
 
     <li><a href="https://2018.igem.org/Team:TUDelft/Team">Team Members</a></li>
 
     <li><a href="https://2018.igem.org/Team:TUDelft/Team">Team Members</a></li>
 
     <li><a href="https://2018.igem.org/Team:TUDelft/Collaborations">Collaborations</a></li>
 
     <li><a href="https://2018.igem.org/Team:TUDelft/Collaborations">Collaborations</a></li>
 +
    <li><a href="https://2018.igem.org/Team:TUDelft/Contributions">Contributions</a></li>
 
     <li><a href="https://2018.igem.org/Team:TUDelft/Team_Building">Team Building</a></li>
 
     <li><a href="https://2018.igem.org/Team:TUDelft/Team_Building">Team Building</a></li>
 
   </ul>
 
   </ul>
Line 265: Line 328:
 
   </ul>
 
   </ul>
 
</li>
 
</li>
 +
    <!-- awards -->
 +
<li class="dropdown">
 +
    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="fa fa-trophy"></i><span class="caret"></span></a>
 +
  <ul class="dropdown-menu">
 +
    <li><a href="https://igem.org/2018_Judging_Form?team=TUDelft">Judging form</a></li> 
 +
    <li><a href="https://2018.igem.org/Team:TUDelft/Medals">Medal Requirements</a></li>
 +
    <li><a href="https://2018.igem.org/Team:TUDelft/Awards">Awards</a></li>
 +
  </ul>
 +
</li>
 
</ul>
 
</ul>
 
</div><!-- /.navbar-collapse -->
 
</div><!-- /.navbar-collapse -->

Latest revision as of 11:54, 28 November 2018

ADOPE