Template:Team:Marburg/Template:HeaderMenu

From 2014.igem.org

(Difference between revisions)
 
(44 intermediate revisions not shown)
Line 1: Line 1:
<html>
<html>
-
 
<script>
<script>
$(window).load(function(){
$(window).load(function(){
Line 15: Line 14:
/* if (!mediaQuery) {
/* if (!mediaQuery) {
$(window).on("resize", function () {
$(window).on("resize", function () {
-
widthDoc = $(window).width();
+
widthDoc = $(window).width();
 +
if (!$('link[href="responsive-single/size880.css"]').length && widthDoc<=1024){$("<link>").appendTo($('head')).attr({type:'text/css',rel:'stylesheet',href:'https://2014.igem.org/Template:Team:Marburg/Template:Header:ResponsiveCSS?action=render'});}
 +
if (widthDoc>1024) {$('link[href="https://2014.igem.org/Template:Team:Marburg/Template:Header:ResponsiveCSS?action=render"]').remove();}
 +
}).resize();
 +
} */
 +
});
 +
</script>
 +
<style>
 +
.tts {
 +
    float: right;
 +
    position: relative;
 +
    bottom: 25px;
 +
}
 +
#toc, .toc {
 +
    display: none;
 +
}
-
if (!$('link[href="responsive-single/size880.css"]').length && widthDoc<=1024){$("<link>").appendTo($('head')).attr({type:'text/css',rel:'stylesheet',href:'https://2014.igem.org/Template:Team:Marburg/Template:Header:ResponsiveCSS?action=render'});}
+
#container2 {  margin: auto; width: 100%; } 
 +
#left2 {
 +
  background: url('https://static.igem.org/mediawiki/2014/4/45/Mr_team_rolle_1.png') repeat-y left top;
 +
}
 +
#left_inner2 { float: left; width: 10%; } 
 +
#right2 { float: right; width: 80%;
 +
  background: url('https://static.igem.org/mediawiki/2014/7/71/Mr_team_rolle_2.png') repeat-y right top;
 +
 +
#right_inner2 { float: right; width: 10%; } 
 +
#content2 { float: left; width: 75%;}  
 +
.clr { clear: both; }
-
if (widthDoc>1024) {$('link[href="https://2014.igem.org/Template:Team:Marburg/Template:Header:ResponsiveCSS?action=render"]').remove();}
+
#slider2_container {
 +
position: relative;
 +
width: 600px;
 +
height: 300px;
 +
margin: 0px auto;
 +
border: 10px solid #FFF;
 +
box-shadow: 2px 7px 5px #888;
 +
top:-35px;
 +
}
 +
#submenu {
 +
background: #d2d9df;
 +
width: 260px;
 +
padding-left: 20px;
 +
margin: 0;
 +
margin-right: 50px;
 +
margin-bottom: 30px;
 +
line-height: 13pt;
 +
list-style-type: circle;
 +
list-style-image: none;
 +
border: 1px solid #999;
 +
float: left;
 +
margin-top: 17px;
 +
box-shadow: 2px 2px 5px #aaa;
 +
background: rgb(255,255,255); /* Old browsers */
 +
/* IE9 SVG, needs conditional override of 'filter' to 'none' */
 +
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNlNWU1ZTUiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
 +
background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(229,229,229,1) 100%); /* FF3.6+ */
 +
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(100%,rgba(229,229,229,1))); /* Chrome,Safari4+ */
 +
background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(229,229,229,1) 100%); /* Chrome10+,Safari5.1+ */
 +
background: -o-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(229,229,229,1) 100%); /* Opera 11.10+ */
 +
background: -ms-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(229,229,229,1) 100%); /* IE10+ */
 +
background: linear-gradient(to bottom, rgba(255,255,255,1) 0%,rgba(229,229,229,1) 100%); /* W3C */
 +
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e5e5e5',GradientType=0 ); /* IE6-8 */
 +
}
 +
#submenu li a {
 +
  color: #444;
 +
  font-size: 14pt;
 +
  font-family: Calibri, Verdana;
 +
}
 +
#submenu li a:hover {
 +
  color: #00;
 +
}
 +
#submenu li.current {
 +
  font-weight: bold;
 +
}
 +
#submenu li:hover {
 +
  background: #d8d8d8;
 +
}
 +
#submenu li ul li{
 +
  font-weight: normal;
 +
  line-height: 10pt;
 +
}
 +
#submenu li ul {
 +
  margin-left:15px;
 +
  list-style-type: none;
 +
list-style-image: none;
 +
}
 +
.submenu_clr { display: none; }
-
}).resize();
 
-
} */
 
-
});
 
-
</script>
 
-
<style>
 
.menu {display:block; padding:0; margin:0; height:42px; position:relative;
.menu {display:block; padding:0; margin:0; height:42px; position:relative;
-webkit-user-select: none;
-webkit-user-select: none;
Line 37: Line 113:
}
}
.menu img {position:absolute; left:0px; top:34px; z-index:100; display:none;}
.menu img {position:absolute; left:0px; top:34px; z-index:100; display:none;}
-
 
.menu.first img, .menu.second img {top:14px;}
.menu.first img, .menu.second img {top:14px;}
-
.menu ul {padding:0; margin:0; margin-top: 25px; }
+
.menu ul {padding:0; margin:0; margin-top: 25px;  padding-top: 25px;}
-
.menu ul li {display:inline-block; position:relative;background: url('https://static.igem.org/mediawiki/2014/1/1a/Mr-navigation-background.png');}
+
.menu ul li {display:inline-block; position:relative;background: url('https://static.igem.org/mediawiki/2014/0/0d/Mr_navigation_general.png');}
-
.menu ul li {*display:inline;}
+
.menu ul li {*display:inline; z-index: 1;}
-
.menu ul li a {display:block; font:normal 15pt/40px 'Muli', arial, sans-serif; color:#444; text-decoration:none; padding:0 20px; text-align:center;}
+
.menu ul li a {display:block; font:normal 15pt/40px 'Muli', arial, sans-serif; color:#444; text-decoration:none; padding:0 18px; text-align:center;}
.menu ul li a:hover {color:#a00;}
.menu ul li a:hover {color:#a00;}
.menu ul li.current a {color:#c00; z-index:100;}
.menu ul li.current a {color:#c00; z-index:100;}
Line 52: Line 127:
.menu ul li.current a {color:#c00; z-index:120;}
.menu ul li.current a {color:#c00; z-index:120;}
-
 
+
@media only screen and (max-width:1198px) {
-
@media only screen and (max-width:1280px) {
+
.menu ul li.igem { display:none; }
.menu {width:235px;}
.menu {width:235px;}
.menu.center {margin:0 auto; text-align:left;}
.menu.center {margin:0 auto; text-align:left;}
Line 67: Line 142:
.menu ul li.current {display:block; z-index:10;}
.menu ul li.current {display:block; z-index:10;}
.menu:hover ul li {margin-bottom:0;}
.menu:hover ul li {margin-bottom:0;}
 +
#slider2_container { top:-0; border: none; }
 +
.submenu_clr { clear: both; }
 +
  #submenu { margin: 0 auto; float: none;}
 +
#left2, #right2 { background: transparent; }
 +
.tts { display: none; }
}
}
@media only screen and (max-device-width:1024px) and (orientation:portrait) {
@media only screen and (max-device-width:1024px) and (orientation:portrait) {
 +
.menu ul li.igem { display:none; }
.menu {width:235px;}
.menu {width:235px;}
.menu.center {margin:0 auto; text-align:left;}
.menu.center {margin:0 auto; text-align:left;}
Line 82: Line 163:
.menu ul li.current {display:block; z-index:10;}
.menu ul li.current {display:block; z-index:10;}
.menu:hover ul li {margin-bottom:0;}
.menu:hover ul li {margin-bottom:0;}
 +
#slider2_container { top:0; border: none; }
 +
.submenu_clr { clear: both; }
 +
  #submenu { margin: 0 auto; float: none; }
 +
  #left2, #right2 { background: transparent; }
 +
.tts { display: none; }
}
}
@media only screen and (max-device-width:480px) {
@media only screen and (max-device-width:480px) {
.menu {width:235px;}
.menu {width:235px;}
 +
.menu ul li.igem { display:none; }
.menu.center {margin:0 auto; text-align:left;}
.menu.center {margin:0 auto; text-align:left;}
 +
.menu.right {margin:0 0 0 auto; text-align:left;}
.menu.right {margin:0 0 0 auto; text-align:left;}
.menu img {display:block;}
.menu img {display:block;}
Line 97: Line 185:
.menu ul li.current {display:block; z-index:10;}
.menu ul li.current {display:block; z-index:10;}
.menu:hover ul li {margin-bottom:0;}
.menu:hover ul li {margin-bottom:0;}
 +
#slider2_container { top:0; border: none; }
 +
.submenu_clr { clear: both; }
 +
  #submenu { margin: 0 auto; float: none; }
 +
  #left2, #right2 { background: transparent; }
 +
.tts { display: none; }
}
}
-
 
.menu ul li.current a.a {
.menu ul li.current a.a {
   color: #C00;
   color: #C00;
}
}
-
 
.menu ul li a.a: hover {
.menu ul li a.a: hover {
   color: #A00 !important;
   color: #A00 !important;
}
}
-
 
-
 
.menu ul li.current a.b {
.menu ul li.current a.b {
   color: #00668d;
   color: #00668d;
}
}
-
 
.menu ul li a.b:hover {
.menu ul li a.b:hover {
   color: #004b67 !important;
   color: #004b67 !important;
}
}
-
 
+
.menu ul li.current a.c {
-
/* .menu ul li a.c {
+
   color: #e77235;
   color: #e77235;
}
}
-
*/
 
.menu ul li a.c:hover {
.menu ul li a.c:hover {
   color: #cb5f25 !important;
   color: #cb5f25 !important;
}
}
-
 
+
.menu ul li.current a.d {
-
/* .menu ul li a c.d {
+
   color: #339209;
   color: #339209;
-
} */
+
}
-
 
+
.menu ul li a.d:hover {
.menu ul li a.d:hover {
   color: #256c06 !important;
   color: #256c06 !important;
}
}
-
 
+
.menu ul li.current a.e {
-
/* .menu ul li a.e {
+
   color: #43969f;
   color: #43969f;
-
} */
+
}
-
 
+
.menu ul li a.e:hover {
.menu ul li a.e:hover {
   color: #26585e !important;
   color: #26585e !important;
}
}
-
 
-
 
.menu ul li a.f:hover {
.menu ul li a.f:hover {
   color: #ad8d06 !important;
   color: #ad8d06 !important;
}
}
-
 
.menu ul li.current a.f {
.menu ul li.current a.f {
     color: #cda80e !important;
     color: #cda80e !important;
}
}
-
 
-
 
#navbox {
#navbox {
-
  background: url('https://static.igem.org/mediawiki/2014/b/bc/Mr_logo_surf.png');
+
background: url('https://static.igem.org/mediawiki/2014/b/bc/Mr_logo_surf.png');
-
  background-repeat: no-repeat;
+
background-repeat: no-repeat;
-
  margin: 0 auto;
+
margin: 0 auto;
-
  min-width: 500px;
+
min-width: 500px;
-
  max-width: 1080px;
+
max-width: 1080px;
-
  width: 85%;
+
width: 85%;
-
  text-align: center;
+
text-align: center;
}
}
Line 185: Line 262:
.menu.first, .menu.second {
.menu.first, .menu.second {
   height: 50px;
   height: 50px;
-
}
 
-
 
-
.menu ul.second {
 
-
  padding-top: 0;
 
-
  margin: 0 auto;
 
-
}
 
-
 
-
.menu ul.first li {
 
-
  background: url('https://static.igem.org/mediawiki/2014/7/75/Mr-navigation-first.png');
 
-
}
 
-
 
-
.menu ul.second li {
 
-
  background: url('https://static.igem.org/mediawiki/2014/1/1a/Mr-navigation-second.png');
 
}
}
Line 204: Line 268:
}
}
-
 
+
.menu.first ul, .menu.second ul {
-
 
+
   padding-top: 0px;
-
 
+
-
 
+
-
 
+
-
 
+
-
 
+
-
.menu {
+
-
   height: 100px;
+
}
}
-
.menu.first, .menu.second {
+
.menu .igem img {
-
  height: 50px;
+
    position: absolute;
 +
    left: 0px;
 +
    top: -25px;
 +
    z-index: 100;
 +
    display: block;
}
}
-
.menu ul.second {
+
#bodyContent a[href^="https://"], .link-https {
-
  padding-top: 0;
+
    padding: 0;
-
  margin: 0 auto;
+
background: transparent;
}
}
-
.menu ul.first li {
+
/* ================================================================
-
  background: url('https://static.igem.org/mediawiki/2014/7/75/Mr-navigation-first.png');
+
This copyright notice must be untouched at all times.
 +
Copyright (c) stu nicholls - cssplay.co.uk
 +
All rights reserved.
 +
=================================================================== */
 +
.wrap a {display:block; width:220px; height:330px; text-decoration:none; color:#000;}
 +
.wrap {width:220px; height:330px; position:relative; overflow:hidden; font-family:arial, sans-serif; border:0; margin:0 10px; float:left; display:inline;  box-shadow: 2px 7px 5px #888; margin-bottom: 10px;
 +
  border: 0;
 +
  padding: 0;
 +
  margin: 0;
 +
  outline:#fff solid 3px;
}
}
-
 
+
.wrap img {border:0;}
-
.menu ul.second li {
+
.wrap i {display:block; width:220px; height:330px; position:absolute; left:0; top:300px; z-index:1; background:#fff; filter: alpha(opacity=40);
-
  background: url('https://static.igem.org/mediawiki/2014/1/1a/Mr-navigation-second.png');
+
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=75); opacity:0.75;
 +
-webkit-transition: all 0.6s ease-in-out;
 +
-moz-transition: all 0.6s ease-in-out;
 +
-o-transition: all 0.6s ease-in-out;
 +
transition: all 0.6s ease-in-out;
 +
}
 +
.wrap p {display:block; width:220px; height:330px; position:absolute; left:0; top:300px; z-index:1; background:transparent; font-size:13pt; color:#000; padding:0; margin:0; line-height:16px;
 +
-webkit-transition: all 0.6s ease-in-out;
 +
-moz-transition: all 0.6s ease-in-out;
 +
-o-transition: all 0.6s ease-in-out;
 +
transition: all 0.6s ease-in-out;
}
}
-
 
+
.wrap p b {display:block; font-size:22px; color:#333; text-align:center; margin:0; padding:0; line-height:30px;}
-
</style>
+
.wrap p span {display:block; padding:10px; line-height:20px;}
-
</html>
+
.wrap a:hover {direction:ltr;}
 +
.wrap a:hover i {top:0;}
 +
.wrap a:hover p {top:0;}
 +
.wrap b { font-family: "Muli"; font-size: 11pt; }
 +
.clear {clear:left;}
 +
</style></html>

Latest revision as of 22:19, 17 October 2014