Difference between revisions of "Template:Marburg"

 
(45 intermediate revisions by the same user not shown)
Line 1: Line 1:
<html>
+
<html lang="en">
 +
<meta name="viewport" content="width=device-width, initial-scale=1.0">  
 
<link href="https://fonts.googleapis.com/css?family=Roboto:300" rel="stylesheet">
 
<link href="https://fonts.googleapis.com/css?family=Roboto:300" rel="stylesheet">
<style>
+
<link rel="stylesheet" type="text/css" href="https://2018.igem.org/Template:Marburg/style?action=raw&ctype=text/css" />
/*        DEFAULT OVERRIDES                */
+
<script type="text/javascript" src="https://2018.igem.org/Template:Marburg/javascript?action=raw&ctype=text/javascript"></script>
#top_title {
+
display:none;
+
}
+
html {
+
height:100%;
+
}
+
body {
+
height:100%;
+
background-color: white;
+
}
+
ul{
+
list-style-type:none;
+
list-style-image:none;
+
}
+
#globalWrapper {
+
height:100%;
+
padding:0;
+
}
+
#content {
+
position:absolute;
+
top:18px;
+
height:calc(100% - 18px);
+
width:100%;
+
margin:0;
+
padding:0;
+
}
+
#HQ_page {
+
height:100%;
+
}
+
#HQ_page h1, h2, h3, h4, h5, h6 {
+
font-family: unset;
+
font-size:150%;
+
}
+
#HQ_page p {
+
margin-top:18px;
+
margin-bottom:18px;
+
border: 0;
+
font-size: 100%;
+
font: inherit;
+
}
+
#bodyContent {
+
height:100%;
+
}
+
#mw-content-text {
+
position:absolute;
+
top:0;
+
height:100%;
+
width:100%;
+
font-family: Roboto;
+
line-height: normal;
+
}
+
#mw-content-text ul {
+
margin:0;
+
}
+
a {
+
text-decoration: none;
+
padding-right: 0px !important;
+
}
+
a:hover {
+
text-decoration: none;
+
}
+
#canvas {
+
position: fixed;
+
top:0;
+
left:0;
+
z-index:-1;
+
}
+
/* - - - - - - -  HEADER - - - - - - - */
+
header {
+
position: fixed;
+
top:16px;
+
min-width: 300px;
+
width: 100%;
+
height: 80px;
+
text-align: center;
+
background-color:rgba(170,170,170,0.9);
+
box-shadow: 0 0 50px 0 rgba(0,0,0,0.35);
+
text-align: center;
+
z-index: 10;
+
}
+
#h_wrapper {
+
display: inline-block;
+
height: 100%;
+
}
+
  
#h_logo {
 
position: absolute;
 
height: 100%;
 
width: 167px;
 
color:white;
 
font-weight: bold;
 
font-size:32px;
 
line-height: 80px;
 
animation: logo_fadeIn 1.0s ease-in-out;
 
}
 
#burger {
 
display: none;
 
position: absolute;
 
width: 40px;
 
height: 40px;
 
  top: calc(100% / 2 - 20px);
 
left: 15px;
 
opacity: 0.65;
 
background-repeat: no-repeat;
 
background-size: cover;
 
background-position: center;
 
background-image: url(img/burger.svg);
 
cursor:pointer;
 
}
 
@keyframes logo_fadeIn { from { opacity: 0; margin-left: -50px; } to { opacity: 1; margin-left: 0px; }}
 
 
/* - - - - - - -  DROP DOWN - - - - - - - */
 
 
.menu {
 
position: relative;
 
margin: 0;
 
padding: 0;
 
height: 100%;
 
font-size: 18px;
 
font-weight: bold;
 
}
 
.menu::before {
 
float:left;
 
position: relative;
 
content:"";
 
width: 250px;
 
height: 100px;
 
}
 
/* Button */
 
.menu li {
 
position: relative;
 
float: left;
 
height: 100%;
 
line-height: 80px;
 
list-style-type: none;
 
transition: background-color 0.2s ease-in-out;
 
}
 
.menu li a {
 
display: block;
 
color:black;
 
        text-decoration: none;
 
padding: 0 15px 0 15px !important;
 
}
 
.menu li:hover {
 
background-color: rgba(165,255,55,0.5);
 
 
}
 
 
.menu li:hover ul {
 
visibility: visible;
 
  max-height: 700px;
 
opacity: 1.0;
 
}
 
 
/* Container */
 
.menu li ul {
 
visibility: hidden;
 
max-height: 0;
 
opacity: 0.0;
 
font-weight: normal;
 
position: absolute;
 
left:0;
 
padding:0;
 
background-color: rgba(200,200,200, 0.87);
 
text-align: left;
 
overflow:hidden;
 
box-shadow: 0px 9px 20px 0px rgba(0,0,0,0.2), inset 0px 35px 45px -35px rgba(0,0,0,0.5);
 
transition: all 0.3s ease-in-out;
 
}
 
 
/* Element */
 
.menu li ul li {
 
display: block;
 
padding: 0;
 
width: 100%;
 
min-width: 250px;
 
line-height: 55px;
 
white-space: nowrap;
 
}
 
.menu li ul li:hover {
 
background-color:unset;
 
}
 
.menu li ul li a {
 
transition: background-color 0.17s ease-in-out;
 
}
 
.menu li ul li a:hover {
 
background-color: rgba(165,255,55,0.5);
 
}
 
 
/* - - - - - - -  MAIN - - - - - - - */
 
main {
 
width: 100%;
 
min-height: 100%;
 
}
 
 
main h1,h2,h3,h4,h5,h6 {
 
  font-weight: normal;
 
  font-style: normal;
 
}
 
 
section:first-child {
 
 
}
 
 
section {
 
width: 100%;margin-top: 190px;
 
text-align: center;
 
}
 
 
section:not(:last-child) {
 
border-bottom:10px solid rgb(220,220,220);
 
}
 
.m_wrapper {
 
max-width: 900px;
 
display:inline-block;
 
}
 
.m_logo {
 
position: relative;
 
width: 100%;
 
height: 0;
 
padding-bottom: 57%;
 
margin-left: auto;
 
margin-right: auto;
 
margin-top: -80px;
 
margin-bottom: 50px;
 
background-position: center;
 
background-size: 100%;
 
background-repeat: no-repeat;
 
background-image: url(https://static.igem.org/mediawiki/2018/b/b5/T--Marburg--m_logo.png);
 
  animation: ml_fadeIn 1.5s ease-in-out;
 
text-align: center;
 
}
 
 
.m_team {
 
background-position: center;
 
width: 100%;
 
height: 0;
 
padding-bottom:77%;
 
border-radius: 30px 30px 30px 30px;
 
background-size: 100%;
 
background-repeat: no-repeat;
 
background-image: url(https://static.igem.org/mediawiki/2018/8/84/T--Marburg--team.jpg);
 
animation: ml_fadeIn 1.0s ease-in-out;
 
}
 
@keyframes ml_fadeIn { from { opacity: 0; } to { opacity: 1; }}
 
 
.m_txt {
 
display: inline-block;
 
width: calc(100% - 20px);
 
font-size: 24px;
 
text-align: left;
 
margin-bottom: 40px;
 
padding:10px;
 
}
 
 
 
/* - - - - - - -  FOOTER - - - - - - - */
 
footer {
 
width: 100%;
 
height: 100px;
 
margin-bottom: -19px;
 
background-color:rgb(180,180,180);
 
text-align: center;
 
}
 
 
#f_wrapper {
 
position: relative;
 
  max-width: 900px;
 
height: 100px;
 
display:inline-block;
 
text-align: left;
 
margin-bottom: -4px;
 
}
 
#f_social {
 
float:right;
 
}
 
footer img {
 
float:left;
 
width: 50px;
 
opacity: 0.5;
 
margin: 27px 8px 0 8px;
 
transition: all 0.2s ease-in-out;
 
}
 
footer img:hover {
 
margin: 22px 8px 0 8px;
 
opacity: 1.0;
 
}
 
 
/* - - - - - - -  MOBILE - - - - - - - */
 
@media only screen and (max-width: 992px) {
 
.menu::before {
 
content: unset;
 
}
 
.menu {
 
display: none;
 
margin: 0 0 0 0;
 
height: unset;
 
}
 
.menu li {
 
width: 100%;
 
}
 
.menu >li>a{
 
background-color: gray;
 
border-bottom: 2px solid rgb(50,50,50);
 
}
 
.menu>li>ul{
 
border-bottom: 2px solid rgb(50,50,50);
 
}
 
.menu li ul {
 
position: relative;
 
visibility: visible;
 
max-height: unset;box-shadow: none;
 
opacity: 1.0;
 
}
 
.menu_wrapper {
 
display: inline-block;
 
position: absolute;
 
left:0;
 
top:60px;
 
height: calc(100vh - 60px);
 
width: 100%;
 
overflow-y: auto;
 
}
 
header {
 
height: 60px;
 
}
 
#h_logo {
 
margin-left: -84px;
 
line-height: 60px;
 
}
 
#canvas {
 
display:none;
 
}
 
#h_logo {
 
animation: none;
 
top:0;
 
left:50%;
 
}
 
#h_wrapper {
 
width: 100%;
 
}
 
}
 
 
 
/* - - - - - - - - - - - - - - - */
 
 
 
</style>
 
<script type="text/javascript">
 
$(document).ready(function() {
 
// MOBILE
 
var mobile = false;
 
var burger = $("#burger");
 
var menu = $("#menu");
 
 
const media = window.matchMedia("(max-width: 992px)");
 
if(media.matches){
 
burger.show();
 
mobile = true;
 
}
 
 
media.addListener(function(e){
 
if (e.matches) {
 
burger.show();
 
mobile = true;
 
if(menu.is(":visible")) menu.hide();
 
} else {
 
burger.hide();
 
mobile = false;
 
if(!menu.is(":visible")) menu.show();
 
}
 
});
 
 
burger.click(function(){
 
if(menu.is(":visible")){
 
menu.hide();
 
} else {
 
menu.show().css("display", "inline-block");
 
}
 
});
 
 
// ORDER FIX
 
$("footer").insertAfter("main");
 
 
// BACKGROUND
 
var canvas = document.getElementById("canvas");
 
var c = canvas.getContext("2d");
 
var time = Date.now(), last = time, deltaTime = 0;
 
 
canvas.width = document.body.clientWidth;
 
canvas.height = document.body.clientHeight;
 
 
function loop(){
 
requestAnimationFrame(loop);
 
canvas.width = document.body.clientWidth;
 
canvas.height = document.body.clientHeight;
 
c.clearRect(0, 0, c.width, c.height);
 
update();
 
time = Date.now();
 
deltaTime = (time - last) * 0.01;
 
last = time;
 
}
 
 
 
var circles = [];
 
 
for(var i = 0; i < 20; i++){
 
var circle = {};
 
circle.x = rnd(0, canvas.width);
 
circle.y = rnd(0, canvas.height);
 
circle.r = rnd(10, 100);
 
circle.offx = rnd(2,25) * (rnd(0,2) == 1 ? -1 : 1)*0.1;
 
circle.offy = rnd(2,25) * (rnd(0,2) == 1 ? -1 : 1)*0.1;
 
circle.offp = rnd(0, 100);
 
circle.color = "rgb("+rnd(0,255)+", " + rnd(0,255)+", " + rnd(0,255) + ")";
 
circles.push(circle);
 
}
 
 
function update(){
 
for(var i = 0; i < circles.length; i++){
 
var s = circles[i];
 
s.x += s.offx * deltaTime;
 
s.y += s.offy * deltaTime;
 
if(s.x < 0) {
 
s.x = 0;
 
s.offx *= -1;
 
}
 
if(s.x > canvas.width){
 
s.x = canvas.width;
 
s.offx *= -1;
 
}
 
if(s.y < 0) {
 
s.y = 0;
 
s.offy *= -1;
 
}
 
if(s.y > canvas.height){
 
s.y = canvas.height;
 
s.offy *= -1;
 
}
 
 
drawCircle(s.x, s.y, s.r + (1+Math.sin(s.offp+time*0.001))*10, "rgba(50,50,50,0.25)");
 
}
 
}
 
 
 
function drawCircle(x, y, r, color){
 
c.beginPath();
 
c.arc(x, y, r,0,2*Math.PI);
 
c.fillStyle = color;
 
//c.fill();
 
c.strokeStyle = color;
 
c.stroke();
 
}
 
 
function rnd(min, max) {
 
    return Math.floor(Math.random() * (max - min + 1) ) + min;
 
}
 
 
loop();
 
});
 
</script>
 
<canvas id="canvas"></canvas>
 
 
<header>
 
<header>
<div id="h_wrapper">
+
<div class="header_wrapper">
<div id="h_logo"><span style="color:black">VIBRI</span><span style="color:rgb(155,255,0)">GENS</span></div>
+
<a href="https://2018.igem.org/Team:Marburg" class="header_logo">
<div id="burger"></div>
+
<img src="https://static.igem.org/mediawiki/2018/3/3f/T--Marburg--header_logo.svg">
<div class="menu_wrapper">
+
</a>
<ul class="menu" id="menu">
+
<div class="burger"></div>
 +
<div class="menu_wrapper" role="navigation" aria-label="Main Menu">
 +
<ul class="menu">
 
<li><a href="#">Team ▾</a>
 
<li><a href="#">Team ▾</a>
 
<ul>
 
<ul>
<li><a href="#">Team Members</a></li>
+
<li><a href="/Team:Marburg/Team">Team</a></li>
<li><a href="#">Collaborations</a></li>
+
<li><a href="/Team:Marburg/Collaborations">Collaborations</a></li>
 +
<li><a href="/Team:Marburg/Attributions">Attributions</a></li>
 
</ul>
 
</ul>
 
</li>
 
</li>
 
<li><a href="#">Project ▾</a>
 
<li><a href="#">Project ▾</a>
 
<ul>
 
<ul>
<li><a href="#">Description</a></li>
+
<li><a href="/Team:Marburg/Description">Description</a></li>
<li><a href="#">Design</a></li>
+
<li><a href="/Team:Marburg/Design">Design</a></li>
<li><a href="#">Experiments</a></li>
+
<li><a href="/Team:Marburg/Experiments">Experiments</a></li>
<li><a href="#">Notebook</a></li>
+
<li><a href="/Team:Marburg/Notebook">Notebook</a></li>
<li><a href="InterLab">InterLab</a></li>
+
<li><a href="/Team:Marburg/InterLab">InterLab</a></li>
<li><a href="#">Model</a></li>
+
<li><a href="/Team:Marburg/Model">Model</a></li>
<li><a href="#">Results</a></li>
+
<li><a href="/Team:Marburg/Results">Results</a></li>
<li><a href="#">Demonstrate</a></li>
+
<li><a href="/Team:Marburg/Demonstrate">Demonstrate</a></li>
<li><a href="#">Improve</a></li>
+
<li><a href="/Team:Marburg/Measurement">Measurement</a></li>
<li><a href="#">Attributions</a></li>
+
<li><a href="/Team:Marburg/Labautomation">Labautomation</a></li>
 
</ul>
 
</ul>
 
</li>
 
</li>
Line 494: Line 37:
 
<li><a href="#">Parts ▾</a>
 
<li><a href="#">Parts ▾</a>
 
<ul>
 
<ul>
<li><a href="#">Parts Overview</a></li>
+
<li><a href="/Team:Marburg/Parts">Parts Overview</a></li>
<li><a href="#">Basic Parts</a></li>
+
<li><a href="/Team:Marburg/Basic_Part">Basic Parts</a></li>
<li><a href="#">Composite Parts</a></li>
+
<li><a href="/Team:Marburg/Composite_Part">Composite Part</a></li>
<li><a href="#">Part Collection</a></li>
+
<li><a href="/Team:Marburg/Part_Collection">Part Collection</a></li>
 +
<li><a href="/Team:Marburg/Improve">Improve</a></li>
 
</ul>
 
</ul>
 
</li>
 
</li>
  
<li><a href="#">Safety</a></li>
+
<li><a href="/Team:Marburg/Safety">Safety</a></li>
  
 
<li><a href="#">Human Practices ▾</a>
 
<li><a href="#">Human Practices ▾</a>
 
<ul>
 
<ul>
<li><a href="#">Human Practices</a></li>
+
<li><a href="/Team:Marburg/Human_Practices">Human Practices</a></li>
<li><a href="#">Education & Engagement</a></li>
+
<li><a href="/Team:Marburg/Public_Engagement">Public Engagement</a></li>
 
</ul>
 
</ul>
 
</li>
 
</li>
 
<li><a href="#">Awards ▾</a>
 
<li><a href="#">Awards ▾</a>
 
<ul>
 
<ul>
<li><a href="#">Applied Design</a></li>
+
<li><a href="/Team:Marburg/Human_Practices">Integrated Human Practices</a></li>
<li><a href="#">Entrepreneurship</a></li>
+
<li><a href="/Team:Marburg/Public_Engagement">Education and Public Engagement</a></li>
<li><a href="#">Hardware</a></li>
+
<li><a href="/Team:Marburg/Model">Model</a></li>
<li><a href="#">Measurement</a></li>
+
<li><a href="/Team:Marburg/Measurement">Measurement</a></li>
<li><a href="#">Model</a></li>
+
<li><a href="/Team:Marburg/Basic_Part">Best New Basic Part</a></li>
<li><a href="#">Plant</a></li>
+
<li><a href="/Team:Marburg/Composite_Part">Best New Composite Part</a></li>
<li><a href="#">Software</a></li>
+
<li><a href="/Team:Marburg/Part_Collection">Best Part Collection</a></li>
 +
<li><a href="/Team:Marburg/Software">Software</a></li>
 
</ul>
 
</ul>
 
</li>
 
</li>
 +
<li><a href="https://igem.org/2018_Judging_Form?id=2560">Judging Form</a></li>
 
</ul>
 
</ul>
 
</div>
 
</div>
Line 525: Line 71:
  
 
</header>
 
</header>
<footer>
+
<div class="skipBar"></div>
<div id="f_wrapper">
+
<div class="btn_scroll_top btn_scroll_disabled"></div>
<div id="f_social">
+
<a href="https://twitter.com/iGEMmarburg2018" target="_blank"><img src="https://static.igem.org/mediawiki/2018/2/20/T--Marburg--icon_twitter.png"></a>
+
<a href="https://www.facebook.com/iGEMMarburg2018/" target="_blank"><img src="https://static.igem.org/mediawiki/2018/6/6d/T--Marburg--icon_facebook.png"></a>
+
<a href="https://www.instagram.com/igem.marburg.2018/" target="_blank"><img src="https://static.igem.org/mediawiki/2018/7/79/T--Marburg--icon_instagram.png"></a>
+
</div>
+
</div>
+
</footer>
+
 
<main>
 
<main>
 
 
 
</html>
 
</html>

Latest revision as of 22:59, 17 October 2018