Difference between revisions of "Team:Cambridge-JIC/TestHome"
(4 intermediate revisions by the same user not shown) | |||
Line 12: | Line 12: | ||
#sidebar { | #sidebar { | ||
position:fixed; | position:fixed; | ||
− | top: | + | top:130px; |
− | + | right:20px; | |
width: 23px; | width: 23px; | ||
+ | z-index:1; | ||
} | } | ||
Line 43: | Line 44: | ||
$(window).on("resize", function(){ | $(window).on("resize", function(){ | ||
− | $("#sidebar").offset({ | + | $("#sidebar").offset({right: $(".cam-container section:first-of-type div").offset().right - 30}) |
if($(".navbar-collapse").is(":visible")) { | if($(".navbar-collapse").is(":visible")) { | ||
$(".downarrow").show() | $(".downarrow").show() | ||
+ | $("#sidebar").show() | ||
} else { | } else { | ||
$(".downarrow").hide() | $(".downarrow").hide() | ||
+ | $("#sidebar").hide() | ||
} | } | ||
Latest revision as of 02:18, 4 August 2015