Line 44: | Line 44: | ||
$(window).on('scroll',function(){ | $(window).on('scroll',function(){ | ||
if($(window).scrollTop()){ | if($(window).scrollTop()){ | ||
− | $(' | + | $('.igem_2019_team_menu').addClass('black'); |
}else { | }else { | ||
− | $(' | + | $('.igem_2019_team_menu').removeClass('black'); |
} | } | ||
}) | }) | ||
Line 79: | Line 79: | ||
/**************************************************************************************************************************************************************************************************/ | /**************************************************************************************************************************************************************************************************/ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
/*mobile menu bar styling*/ | /*mobile menu bar styling*/ | ||
Line 264: | Line 157: | ||
− | + | igem_2019_team_menu{ | |
position: fixed; | position: fixed; | ||
top:0; | top:0; | ||
Line 276: | Line 169: | ||
opacity: 1; | opacity: 1; | ||
} | } | ||
− | + | igem_2019_team_menu.black{ | |
background: rgba(0,0,0,.8); | background: rgba(0,0,0,.8); | ||
height: 80px; | height: 80px; | ||
Line 282: | Line 175: | ||
} | } | ||
− | + | igem_2019_team_menu a{ | |
text-decoration:none; | text-decoration:none; | ||
color: #fff; | color: #fff; | ||
} | } | ||
− | + | igem_2019_team_menu .logo{ | |
float: left; | float: left; | ||
} | } | ||
− | + | igem_2019_team_menu .logo img{ | |
height: 150px; | height: 150px; | ||
transition: .5s; | transition: .5s; | ||
} | } | ||
− | + | igem_2019_team_menu.black .logo img{ | |
height: 60px; | height: 60px; | ||
} | } | ||
− | + | igem_2019_team_menu ul{ | |
float: right; | float: right; | ||
margin: 0; | margin: 0; | ||
Line 302: | Line 195: | ||
display: flex; | display: flex; | ||
} | } | ||
− | + | igem_2019_team_menu ul li{ | |
list-style: none; | list-style: none; | ||
margin-top: 25px; | margin-top: 25px; | ||
Line 314: | Line 207: | ||
text-shadow: 0 0 4px #000; | text-shadow: 0 0 4px #000; | ||
} | } | ||
− | /* | + | /* igem_2019_team_menu ul li a{ |
line-height: none; | line-height: none; | ||
font-size: 18px; | font-size: 18px; | ||
Line 325: | Line 218: | ||
} */ | } */ | ||
− | /* | + | /* igem_2019_team_menu.black ul li a{ |
color: #fff; | color: #fff; | ||
line-height: 20px; | line-height: 20px; | ||
} */ | } */ | ||
− | + | igem_2019_team_menu.black ul li{ | |
color: #fff; | color: #fff; | ||
line-height: 20px; | line-height: 20px; | ||
} | } | ||
− | /* | + | /* igem_2019_team_menu ul li a.active, |
nav ul li a:hover{ | nav ul li a:hover{ | ||
color: orange; | color: orange; | ||
} */ | } */ | ||
− | + | igem_2019_team_menu ul li.active, | |
− | + | igem_2019_team_menu ul li:hover{ | |
color: #e5e8a2; | color: #e5e8a2; | ||
} | } | ||
Line 694: | Line 587: | ||
− | < | + | <div class="igem_2019_team_menu"> |
<div class="logo"> | <div class="logo"> | ||
<a href="https://2019.igem.org/Team:DTU-Denmark"><img src="https://static.igem.org/mediawiki/2019/thumb/f/fe/T--DTU-Denmark--happylogotemp.png/428px-T--DTU-Denmark--happylogotemp.png" alt="logo"></a> | <a href="https://2019.igem.org/Team:DTU-Denmark"><img src="https://static.igem.org/mediawiki/2019/thumb/f/fe/T--DTU-Denmark--happylogotemp.png/428px-T--DTU-Denmark--happylogotemp.png" alt="logo"></a> | ||
Line 773: | Line 666: | ||
</ul> | </ul> | ||
− | </ | + | </div> |
Line 779: | Line 672: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Revision as of 17:08, 15 July 2019