Difference between revisions of "Template:BioMarvel"

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>
+
  
 
<style type="text/css">
 
<style type="text/css">
Line 270: Line 283:
  
 
img.mTitle-logo {
 
img.mTitle-logo {
width: 20%;
+
height: 80px;
margin-top: 10px;
+
 
}
 
}
  
 
/*************** 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;
 
}
 
}
  
.mLogo {
 
width: 196px;
 
height: 77px;
 
float: left;
 
background: url(https://2018.igem.org/File:T--Biomarvel--Logo.png) center center no-repeat;
 
font-size: 0;
 
margin-left:2%;
 
}
 
  
#topMenu{
+
.mBtn-menu {
width: 100%;
+
width: 64px;
padding: 2% 0%;
+
height: 64px;
border-top: solid 1px skyblue;
+
float: right;
margin-top: 20px;
+
text-align: center;
}
+
color: white;
#topMenu a {
+
border-radius: 56px;
text-decoration: none;
+
cursor: pointer;
}
+
background: #FF3366;
#topMenu ul {
+
margin-top: 15px;
list-style-type: none;
+
margin-right: 15px;
margin: 0px;
+
font-size: 45px;
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: 150%;
+
 
}
 
}
  
.topMenuLi:hovor .menuLink {
 
color: #888888 !important;
 
}
 
.submenuLink {
 
color: black !important;
 
margin-top: -1px;
 
text-align: left;
 
}
 
.longLink {
 
width: 250px;
 
}
 
.submenuC {
 
position: absolute;
 
height: 0px;
 
overflow: hidden;
 
transition: height .2s;
 
font-family: sans-serif;
 
font-size: 120%;
 
}
 
.submenuC a {
 
text-decoration: none;
 
}
 
.topMenuLi:hover .submenuC {
 
height: 250px;
 
}
 
.submenuLink:hover {
 
color: #888888 !important;
 
}
 
  
.mMenu_left{
 
width: 45%;
 
float: left;
 
}
 
  
.mMenu_logo{
+
/* mobile */
width: 10%;
+
 
float: left;
+
@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;
 +
}
 +
 
 +
 
 
}
 
}
  
.mMenu_right{
+
 
width: 45%;
+
/* 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: 500px;
+
width: 45%;
 
float: left;
 
float: left;
 
}
 
}
 
.mHomeRightBox{
 
.mHomeRightBox{
width: 500px;
+
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">&#8801;</button>
 
</div>
 
</div>
 
<nav id="topMenu">
 
<nav id="topMenu">
 
<div class="mMenu_left">
 
<div class="mMenu_left">
 
<ul>
 
<ul>
<li class="topMenuLi" style="float: left; margin-left: 20px">
+
<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" style="margin-left: 18%; margin-right: auto;">
+
<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" style="float: right; margin-right: 20px">
+
<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>
</ul>
+
<li class="topMenuLi">
</div>
+
<div class="mMenu_logo">
+
<a href="https://2018.igem.org/Team:BioMarvel" style="margin-left: 25px;"><img src="https://static.igem.org/mediawiki/2018/b/b3/T--Biomarvel--Logo.png" style="height: 60px"></a>
+
</div>
+
<div class="mMenu_right">
+
<ul>
+
<li class="topMenuLi" style="float: left; margin-left: 20px">
+
 
<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" style="margin-left: 20%; margin-right: auto;">
+
<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" style="float: right; margin-right: 20px"><a class="menuLink" href="https://2018.igem.org/Team:BioMarvel/Achievement">Achievement</a></li>
+
<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