Line 102: | Line 102: | ||
width: 150px; | width: 150px; | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
/* The wrapper for the nav menu*/ | /* The wrapper for the nav menu*/ | ||
.nav { | .nav { | ||
Line 120: | Line 115: | ||
position: relative; | position: relative; | ||
z-index: 3; | z-index: 3; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
/* the dropdwn class is given to any button which require a dropdown menu...which is all*/ | /* the dropdwn class is given to any button which require a dropdown menu...which is all*/ | ||
− | .nav . | + | .nav .dropdwn{ |
display: inline-block; | display: inline-block; | ||
overflow: hidden; | overflow: hidden; | ||
Line 153: | Line 124: | ||
} | } | ||
+ | /* The dropdwn-content class contains the hidden content (sub-menu) */ | ||
+ | .nav .dropdwn .dropdwn-content{ | ||
+ | display: none; | ||
+ | position: absolute; | ||
+ | /*Change this to change the color of the background that houses the dropdown menu content. The last number affects the opacity of the color*/ | ||
+ | background-color: rgba(255, 255, 255, 0.9); | ||
+ | text-align: left; | ||
+ | max-width: 250px; | ||
+ | z-index: 3; | ||
+ | } | ||
/* This configures the main button (Project, Hardware, Team, blah blah) */ | /* This configures the main button (Project, Hardware, Team, blah blah) */ | ||
− | .nav . | + | |
+ | .nav .dropdwn button{ | ||
font-family: "Montserrat"; | font-family: "Montserrat"; | ||
font-weight: 400; | font-weight: 400; | ||
Line 167: | Line 149: | ||
display: flex; | display: flex; | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
/* This styles the links within the dropdwn-content */ | /* This styles the links within the dropdwn-content */ | ||
− | .nav . | + | .nav .dropdwn .dropdwn-content a{ |
float: none; | float: none; | ||
padding: 5px; auto; | padding: 5px; auto; | ||
Line 193: | Line 163: | ||
letter-spacing: 0.2em; | letter-spacing: 0.2em; | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
/* Add the hover colors and the reveal of the menu */ | /* Add the hover colors and the reveal of the menu */ | ||
− | . | + | .dropdwn:hover { |
background-color: #dddddd; | background-color: #dddddd; | ||
} | } | ||
− | + | .dropdwn:hover .dropdwn-content { | |
− | . | + | |
display: block; | display: block; | ||
− | } | + | } |
− | + | .dropdwn-content a:hover{ | |
− | . | + | |
background-color: #dddddd; | background-color: #dddddd; | ||
} | } | ||
− | |||
/* A sticky class cause this fking mediawiki doesn't have one */ | /* A sticky class cause this fking mediawiki doesn't have one */ | ||
.sticky{ | .sticky{ | ||
Line 218: | Line 179: | ||
left: 0; | left: 0; | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
/* Positioning and sizing of the social media icons */ | /* Positioning and sizing of the social media icons */ | ||
.instalogo{ | .instalogo{ | ||
Line 293: | Line 218: | ||
color: black; | color: black; | ||
} | } | ||
− | |||
/*Responsive Design*/ | /*Responsive Design*/ | ||
Line 302: | Line 226: | ||
##Screen = B/w 768px to 1024px | ##Screen = B/w 768px to 1024px | ||
*/ | */ | ||
− | + | ||
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) { | @media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) { | ||
} | } | ||
− | + | ||
/* | /* | ||
##Device = Most of the Smartphones Mobiles (Portrait) | ##Device = Most of the Smartphones Mobiles (Portrait) | ||
Line 313: | Line 237: | ||
##Screen = B/w 768px to 1024px | ##Screen = B/w 768px to 1024px | ||
*/ | */ | ||
− | + | ||
@media (min-width: 0px) and (max-width: 1024px) { | @media (min-width: 0px) and (max-width: 1024px) { | ||
/* | /* | ||
/*Basics*/ | /*Basics*/ | ||
− | + | p { | |
font-size: 13px; | font-size: 13px; | ||
} | } | ||
Line 327: | Line 251: | ||
} | } | ||
*/ | */ | ||
− | + | .dropdown-content { | |
min-width: 10px; | min-width: 10px; | ||
box-shadow: 0px 4px 6px 0px rgba(0,0,0,0.2); | box-shadow: 0px 4px 6px 0px rgba(0,0,0,0.2); | ||
Line 335: | Line 259: | ||
padding: 8px; | padding: 8px; | ||
} | } | ||
− | |||
/************************************************** Back to top button style **************************************************/ | /************************************************** Back to top button style **************************************************/ | ||
− | |||
#BacktoTopBtn { | #BacktoTopBtn { | ||
display: none; | display: none; | ||
Line 409: | Line 331: | ||
</script> | </script> | ||
</head> | </head> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
Line 428: | Line 371: | ||
<div style="text-align:center;"><a href="https://2018.igem.org/Team:NUS_Singapore-A"><img class='nus-logo' src='https://static.igem.org/mediawiki/2018/2/2a/T--NUS_Singapore-A--TeamLogo.png' alt='nus logo'></a> | <div style="text-align:center;"><a href="https://2018.igem.org/Team:NUS_Singapore-A"><img class='nus-logo' src='https://static.igem.org/mediawiki/2018/2/2a/T--NUS_Singapore-A--TeamLogo.png' alt='nus logo'></a> | ||
</div> | </div> | ||
− | + | <div class="nav"> | |
− | <div class="nav | + | <div class="dropdwn"> |
− | + | <button>PROJECT</button> | |
− | + | <div class="dropdwn-content"> | |
− | <div class=" | + | |
− | + | ||
− | <div class=" | + | |
<a href="https://2018.igem.org/Team:NUS_Singapore-A/Description">Description</a> | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Description">Description</a> | ||
<a href="https://2018.igem.org/Team:NUS_Singapore-A/Design">Design</a> | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Design">Design</a> | ||
Line 441: | Line 381: | ||
</div> | </div> | ||
</div> | </div> | ||
− | <div class=" | + | <div class="dropdwn"> |
− | + | <button>LAB</button> | |
− | + | <div class="dropdwn-content"> | |
<a href="https://2018.igem.org/Team:NUS_Singapore-A/Notebook">Notebook</a> | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Notebook">Notebook</a> | ||
<a href="https://2018.igem.org/Team:NUS_Singapore-A/Safety">Safety</a> | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Safety">Safety</a> | ||
<a href="https://2018.igem.org/Team:NUS_Singapore-A/InterLab">InterLab Study</a> | <a href="https://2018.igem.org/Team:NUS_Singapore-A/InterLab">InterLab Study</a> | ||
<a href="https://2018.igem.org/Team:NUS_Singapore-A/Measurement">Measurement</a> | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Measurement">Measurement</a> | ||
− | + | </div> | |
</div> | </div> | ||
− | <div class=" | + | <div class="dropdwn"> |
− | + | <button>PARTS</button> | |
− | + | <div class="dropdwn-content"> | |
<a href="https://2018.igem.org/Team:NUS_Singapore-A/Basic_Part">Basic Parts</a> | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Basic_Part">Basic Parts</a> | ||
<a href="https://2018.igem.org/Team:NUS_Singapore-A/Composite_Part">Composite Parts</a> | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Composite_Part">Composite Parts</a> | ||
<a href="https://2018.igem.org/Team:NUS_Singapore-A/Improve">Improved Parts</a> | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Improve">Improved Parts</a> | ||
− | + | </div> | |
</div> | </div> | ||
− | <div class=" | + | <div class="dropdwn"> |
− | + | <button>MODELLING</button> | |
− | <div class=" | + | <div class="dropdwn-content"> |
<a href="https://2018.igem.org/Team:NUS_Singapore-A/Model">Modelling</a> | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Model">Modelling</a> | ||
<!-- <a href="https://2018.igem.org/Team:NUS_Singapore-A/Model/Data">Data</a> --> | <!-- <a href="https://2018.igem.org/Team:NUS_Singapore-A/Model/Data">Data</a> --> | ||
</div> | </div> | ||
</div> | </div> | ||
− | + | <div class="dropdwn"> | |
− | <div class=" | + | <button>HARDWARE</button> |
− | + | <div class="dropdwn-content"> | |
− | <div class=" | + | |
<a href="https://2018.igem.org/Team:NUS_Singapore-A/Hardware">Overview</a> | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Hardware">Overview</a> | ||
<a href="https://2018.igem.org/Team:NUS_Singapore-A/Hardware/PDF-LA!">PDF-LA!</a> | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Hardware/PDF-LA!">PDF-LA!</a> | ||
Line 478: | Line 417: | ||
</div> | </div> | ||
</div> | </div> | ||
− | + | <div class="dropdwn"> | |
− | <div class=" | + | <button>HUMAN PRACTICES</button> |
− | + | <div class="dropdwn-content"> | |
− | <div class=" | + | |
<a href="https://2018.igem.org/Team:NUS_Singapore-A/Human_Practices">Integrated Human Practices</a> | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Human_Practices">Integrated Human Practices</a> | ||
<a href="https://2018.igem.org/Team:NUS_Singapore-A/Public_Engagement">Education & Public Engagement</a> | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Public_Engagement">Education & Public Engagement</a> | ||
Line 487: | Line 425: | ||
</div> | </div> | ||
</div> | </div> | ||
− | + | <div class="dropdwn"> | |
− | <div class=" | + | <button>TEAM</button> |
− | <button | + | <div class="dropdwn-content"> |
− | <div class=" | + | |
<a href="https://2018.igem.org/Team:NUS_Singapore-A/Team">Members</a> | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Team">Members</a> | ||
<a href="https://2018.igem.org/Team:NUS_Singapore-A/Supervisors">Supervisors</a> | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Supervisors">Supervisors</a> | ||
Line 499: | Line 436: | ||
</div> | </div> | ||
</div> | </div> | ||
− | + | <div class="dropdwn"> | |
− | <div class=" | + | <button>AWARDS</button> |
− | + | <div class="dropdwn-content"> | |
− | + | ||
<a href="https://2018.igem.org/Team:NUS_Singapore-A/Medals">Medals</a> | <a href="https://2018.igem.org/Team:NUS_Singapore-A/Medals">Medals</a> | ||
− | |||
</div> | </div> | ||
− | + | </div> | |
− | + | ||
</div> | </div> | ||
</div> | </div> | ||
Line 526: | Line 460: | ||
} | } | ||
}); | }); | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</script> | </script> |
Revision as of 21:31, 15 October 2018
CONNECT WITH US