Template:Team:Paris Saclay/default header

From 2014.igem.org

(Difference between revisions)
m
m
Line 46: Line 46:
         #menups > ul > li {display: inline-block;zoom: 1;vertical-align: middle;position:relative}
         #menups > ul > li {display: inline-block;zoom: 1;vertical-align: middle;position:relative}
         #menups > ul > li > a {padding:0 15px;display: block;text-decoration: none;border:0;color: #e9e9d6;font-family: 'Lobster', cursive;font-size: 1.7em;}
         #menups > ul > li > a {padding:0 15px;display: block;text-decoration: none;border:0;color: #e9e9d6;font-family: 'Lobster', cursive;font-size: 1.7em;}
 +
        .fixedmenups {z-index: 9999;position: fixed;top: 0;width: 80%;}
 +
        .fixedsubmenups {z-index: 9998;position: fixed;width: 11%;left: 12%;top:75px;}
         #submenups {position: absolute; width:15%; left:2%; padding:2%; background:rgba(255, 255, 255, .46); font-family: 'Lato', sans-serif;}
         #submenups {position: absolute; width:15%; left:2%; padding:2%; background:rgba(255, 255, 255, .46); font-family: 'Lato', sans-serif;}
Line 78: Line 80:
     </script>
     </script>
     <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
     <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
 +
 +
    <!-- Menu -->
 +
    <script>
 +
        var nav = $('#menups');
 +
   
 +
        $(window).scroll(function () {
 +
            if ($(this).scrollTop() > 180) {
 +
                nav.addClass("fixedmenups");
 +
            } else {
 +
                nav.removeClass("fixedmenups");
 +
            }
 +
        });
 +
    </script>
     <div id="headerps"><a href="https://2014.igem.org/Team:Paris_Saclay" alt="iGEM Paris Saclay 2014"><img src="https://static.igem.org/mediawiki/2014/9/9b/Paris_Saclay_logo-igem-paris-saclay.png"></a></div>
     <div id="headerps"><a href="https://2014.igem.org/Team:Paris_Saclay" alt="iGEM Paris Saclay 2014"><img src="https://static.igem.org/mediawiki/2014/9/9b/Paris_Saclay_logo-igem-paris-saclay.png"></a></div>

Revision as of 16:02, 17 October 2014