Template:Team:Marburg/Template:HeaderMenu
From 2014.igem.org
(Difference between revisions)
(38 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
<html> | <html> | ||
- | |||
<script> | <script> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
$(window).load(function(){ | $(window).load(function(){ | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
/* test for @media-query support */ | /* test for @media-query support */ | ||
$('body').append($('<div id="test-media-query">').css({visibility: 'hidden', position: 'absolute'})); | $('body').append($('<div id="test-media-query">').css({visibility: 'hidden', position: 'absolute'})); | ||
Line 34: | Line 14: | ||
/* if (!mediaQuery) { | /* if (!mediaQuery) { | ||
$(window).on("resize", function () { | $(window).on("resize", function () { | ||
- | + | 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; | ||
+ | } | ||
- | + | #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; } | ||
- | + | #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; } | ||
- | |||
- | |||
- | |||
- | |||
- | |||
.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 56: | 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; padding-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/0/0d/Mr_navigation_general.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 18px; 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;} | ||
Line 71: | 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: | + | @media only screen and (max-width:1198px) { |
+ | .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 85: | 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 100: | 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 115: | 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 { | ||
Line 198: | Line 272: | ||
} | } | ||
+ | .menu .igem img { | ||
+ | position: absolute; | ||
+ | left: 0px; | ||
+ | top: -25px; | ||
+ | z-index: 100; | ||
+ | display: block; | ||
+ | } | ||
+ | #bodyContent a[href^="https://"], .link-https { | ||
+ | padding: 0; | ||
+ | background: transparent; | ||
+ | } | ||
- | + | /* ================================================================ | |
- | + | 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;} | |
- | + | .wrap i {display:block; width:220px; height:330px; position:absolute; left:0; top:300px; z-index:1; background:#fff; filter: alpha(opacity=40); | |
- | + | 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;} | |
- | + | .wrap p span {display:block; padding:10px; line-height:20px;} | |
- | + | .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> | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | </style> | + | |
- | </html> | + |
Latest revision as of 22:19, 17 October 2014