Line 2: | Line 2: | ||
<head> | <head> | ||
<meta charset="UTF-8"> | <meta charset="UTF-8"> | ||
+ | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
+ | |||
<style type="text/css"> | <style type="text/css"> | ||
Line 230: | Line 232: | ||
} | } | ||
+ | </style> | ||
+ | <script src="http://code.jquery.com/jquery-1.11.2.min.js"></script> | ||
+ | <script type="text/javascript"> | ||
+ | |||
+ | $(document).ready(function(){ | ||
+ | $(".mBtn-menu").on('click', function() { | ||
+ | $("#topMenu").slideToggle('slow'); | ||
+ | }); | ||
+ | $(".mMenu_left ul li").click(function(){ | ||
+ | $("ul",this).slideToggle('fast'); | ||
+ | }); | ||
+ | }); | ||
− | + | </script> | |
− | </ | + | |
<style type="text/css"> | <style type="text/css"> | ||
Line 270: | Line 283: | ||
img.mTitle-logo { | img.mTitle-logo { | ||
− | + | height: 80px; | |
− | + | ||
} | } | ||
/*************** MENU *************/ | /*************** MENU *************/ | ||
.mHeader{ | .mHeader{ | ||
− | width: 1280px; | + | width: auto; |
+ | max-width: 1280px; | ||
+ | min-width: 480px; | ||
height: 300px; | height: 300px; | ||
padding: 2% 0%; | padding: 2% 0%; | ||
Line 285: | Line 299: | ||
.mHeader_logo_box{ | .mHeader_logo_box{ | ||
+ | width: auto; | ||
+ | min-height: 90px; | ||
+ | margin-left: 15px; | ||
+ | border-bottom: solid 1px skyblue; | ||
+ | padding-bottom: 20px; | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | .mBtn-menu { | |
− | width: | + | width: 64px; |
− | + | height: 64px; | |
− | + | float: right; | |
− | + | text-align: center; | |
− | + | color: white; | |
− | + | border-radius: 56px; | |
− | text- | + | cursor: pointer; |
− | + | background: #FF3366; | |
− | + | margin-top: 15px; | |
− | + | margin-right: 15px; | |
− | + | font-size: 45px; | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | background | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | font-size: | + | |
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | /* mobile */ | |
− | width: | + | |
− | + | @media screen and (max-width: 1279px){ | |
+ | #topMenu { | ||
+ | width: auto; | ||
+ | display: none; | ||
+ | position: relative; | ||
+ | padding: 2% 0%; | ||
+ | } | ||
+ | |||
+ | #topMenu a { | ||
+ | text-decoration: none; | ||
+ | } | ||
+ | #topMenu ul { | ||
+ | list-style-type: none; | ||
+ | margin: 0px; | ||
+ | padding: 0px; | ||
+ | } | ||
+ | #topMenu ul li { | ||
+ | list-style: none; | ||
+ | color: black; | ||
+ | background-color: rgba(0,0,0,0.0); | ||
+ | line-height: 30px; | ||
+ | vertical-align: middle; | ||
+ | text-align: left; | ||
+ | position: relative; | ||
+ | } | ||
+ | #topMenu li{ | ||
+ | margin-left: 20px; | ||
+ | } | ||
+ | .menuLink, .submenuLink { | ||
+ | text-decoration: none; | ||
+ | display: block; | ||
+ | font-weight: bold; | ||
+ | } | ||
+ | .menuLink { | ||
+ | color: black; | ||
+ | font-family: sans-serif; | ||
+ | font-size: 170%; | ||
+ | margin-right: 70px; | ||
+ | } | ||
+ | .topMenuUl{ | ||
+ | |||
+ | } | ||
+ | li.topMenuLi{ | ||
+ | margin-bottom: 15px; | ||
+ | } | ||
+ | .topMenuLi:hovor .menuLink { | ||
+ | color: #888888 !important; | ||
+ | } | ||
+ | .submenuLink { | ||
+ | color: black !important; | ||
+ | margin-top: -1px; | ||
+ | text-align: left; | ||
+ | } | ||
+ | ul.submenuC { | ||
+ | display: none; | ||
+ | font-family: sans-serif; | ||
+ | font-size: 140%; | ||
+ | } | ||
+ | .submenuC a { | ||
+ | text-decoration: none; | ||
+ | } | ||
+ | .mMenu_left{ | ||
+ | width: 100%; | ||
+ | float: right; | ||
+ | display: inline-flex; | ||
+ | justify-content: center; | ||
+ | } | ||
+ | .submenuLink:hover { | ||
+ | color: #888888 !important; | ||
+ | } | ||
+ | |||
+ | |||
} | } | ||
− | . | + | |
− | width: | + | /* desktops */ |
− | float: right; | + | @media screen and (min-width: 1280px) { |
+ | .header {padding: 1% 0%;} | ||
+ | |||
+ | .mBtn-menu {display: none;} | ||
+ | |||
+ | #topMenu { | ||
+ | width: 1280px; | ||
+ | display: block !important; | ||
+ | position: relative; | ||
+ | padding: 2% 0%; | ||
+ | } | ||
+ | |||
+ | #topMenu a { | ||
+ | text-decoration: none; | ||
+ | } | ||
+ | #topMenu ul { | ||
+ | list-style-type: none; | ||
+ | margin: 0px; | ||
+ | padding: 0px; | ||
+ | } | ||
+ | #topMenu ul li { | ||
+ | list-style: none; | ||
+ | color: black; | ||
+ | background-color: rgba(0,0,0,0.0); | ||
+ | float: left; | ||
+ | line-height: 30px; | ||
+ | vertical-align: middle; | ||
+ | text-align: left; | ||
+ | position: relative; | ||
+ | } | ||
+ | .menuLink, .submenuLink { | ||
+ | text-decoration: none; | ||
+ | display: block; | ||
+ | font-weight: bold; | ||
+ | } | ||
+ | .menuLink { | ||
+ | color: black; | ||
+ | font-family: sans-serif; | ||
+ | font-size: 170%; | ||
+ | margin-right: 70px; | ||
+ | } | ||
+ | .topMenuUl{ | ||
+ | |||
+ | } | ||
+ | .topMenuLi:hovor .menuLink { | ||
+ | color: #888888 !important; | ||
+ | } | ||
+ | .submenuLink { | ||
+ | color: black !important; | ||
+ | margin-top: -1px; | ||
+ | text-align: left; | ||
+ | } | ||
+ | .longLink { | ||
+ | width: 250px; | ||
+ | } | ||
+ | ul.submenuC { | ||
+ | position: absolute; | ||
+ | height: 0px; | ||
+ | overflow: hidden; | ||
+ | transition: height .2s; | ||
+ | font-family: sans-serif; | ||
+ | font-size: 140%; | ||
+ | } | ||
+ | .submenuC a { | ||
+ | text-decoration: none; | ||
+ | } | ||
+ | .topMenuLi:hover .submenuC { | ||
+ | height: 250px; | ||
+ | } | ||
+ | .submenuLink:hover { | ||
+ | color: #888888 !important; | ||
+ | } | ||
+ | |||
+ | .mMenu_left{ | ||
+ | width: 100%; | ||
+ | float: left; | ||
+ | display: inline-flex; | ||
+ | flex-direction: row; | ||
+ | justify-content: center; | ||
+ | } | ||
} | } | ||
+ | |||
.mMainBox{ | .mMainBox{ | ||
− | width: 1080px; | + | width: auto; |
+ | max-width: 1080px; | ||
+ | min-width: 480px; | ||
margin-left: auto; | margin-left: auto; | ||
margin-right: auto; | margin-right: auto; | ||
Line 382: | Line 493: | ||
} | } | ||
.mHomeLeftBox{ | .mHomeLeftBox{ | ||
− | width: | + | width: 45%; |
float: left; | float: left; | ||
} | } | ||
.mHomeRightBox{ | .mHomeRightBox{ | ||
− | width: | + | width: 45%; |
float: right; | float: right; | ||
} | } | ||
.myimg{ | .myimg{ | ||
+ | width: 95%; | ||
max-width: 1000px; | max-width: 1000px; | ||
margin-left: auto; | margin-left: auto; | ||
Line 402: | Line 514: | ||
<div class="mHeader_logo_box"> | <div class="mHeader_logo_box"> | ||
<a href="https://2018.igem.org/Team:BioMarvel"><img class="mTitle-logo" src="https://static.igem.org/mediawiki/2018/e/ec/T--Biomarvel--TitleLogo.png" herf="https://2018.igem.org/Team:BioMarvel"></a> | <a href="https://2018.igem.org/Team:BioMarvel"><img class="mTitle-logo" src="https://static.igem.org/mediawiki/2018/e/ec/T--Biomarvel--TitleLogo.png" herf="https://2018.igem.org/Team:BioMarvel"></a> | ||
+ | <button class="mBtn-menu">≡</button> | ||
</div> | </div> | ||
<nav id="topMenu"> | <nav id="topMenu"> | ||
<div class="mMenu_left"> | <div class="mMenu_left"> | ||
<ul> | <ul> | ||
− | <li class="topMenuLi | + | <li class="topMenuLi"> |
<a class="menuLink">PROJECT</a> | <a class="menuLink">PROJECT</a> | ||
<ul class="submenuC"> | <ul class="submenuC"> | ||
Line 417: | Line 530: | ||
</ul> | </ul> | ||
</li> | </li> | ||
− | <li class="topMenuLi | + | <li class="topMenuLi"> |
<a class="menuLink">WET LAB</a> | <a class="menuLink">WET LAB</a> | ||
<ul class="submenuC"> | <ul class="submenuC"> | ||
Line 426: | Line 539: | ||
</ul> | </ul> | ||
</li> | </li> | ||
− | <li class="topMenuLi | + | <li class="topMenuLi"> |
<a class="menuLink">HUMAN PRACTICES</a> | <a class="menuLink">HUMAN PRACTICES</a> | ||
<ul class="submenuC"> | <ul class="submenuC"> | ||
Line 435: | Line 548: | ||
</ul> | </ul> | ||
</li> | </li> | ||
− | + | <li class="topMenuLi"> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | <li class="topMenuLi | + | |
<a class="menuLink">NOTEBOOK</a> | <a class="menuLink">NOTEBOOK</a> | ||
<ul class="submenuC"> | <ul class="submenuC"> | ||
Line 449: | Line 555: | ||
</ul> | </ul> | ||
</li> | </li> | ||
− | <li class="topMenuLi | + | <li class="topMenuLi"> |
<a class="menuLink">PEOPLE</a> | <a class="menuLink">PEOPLE</a> | ||
<ul class="submenuC"> | <ul class="submenuC"> | ||
Line 457: | Line 563: | ||
</ul> | </ul> | ||
</li> | </li> | ||
− | <li class="topMenuLi | + | <li class="topMenuLi"> |
+ | <a class="menuLink" href="https://2018.igem.org/Team:BioMarvel/Achievement">Achievement</a> | ||
+ | </li> | ||
</ul> | </ul> | ||
</div> | </div> |
Revision as of 02:46, 12 September 2018