Template:Team:Marburg/Template:Header
From 2014.igem.org
(Difference between revisions)
m |
|||
Line 1: | Line 1: | ||
<html> | <html> | ||
<style> | <style> | ||
- | |||
#contentSub, #footer-box, #catlinks, #search-controls, #p-logo, .printfooter, .visualClear, .firstHeading {display: none;} /*-- hides default wiki settings --*/ | #contentSub, #footer-box, #catlinks, #search-controls, #p-logo, .printfooter, .visualClear, .firstHeading {display: none;} /*-- hides default wiki settings --*/ | ||
body { | body { | ||
- | background | + | background:#fff url('https://static.igem.org/mediawiki/2014/2/2d/Mr-body-background-general.png') repeat-x; |
- | + | ||
} | } | ||
Line 28: | Line 26: | ||
height: 14px; | height: 14px; | ||
display: block; | display: block; | ||
- | z-index: | + | z-index: 1; |
- | + | ||
width: 100%; | width: 100%; | ||
top: 0; | top: 0; | ||
Line 38: | Line 35: | ||
text-decoration: none; | text-decoration: none; | ||
background-color: transparent; | background-color: transparent; | ||
- | |||
- | |||
- | |||
- | |||
} | } | ||
Line 51: | Line 44: | ||
margin: 0px; | margin: 0px; | ||
padding: 0px; | padding: 0px; | ||
+ | font-size: 100%; | ||
} | } | ||
Line 71: | Line 65: | ||
} | } | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
</style> | </style> | ||
Line 226: | Line 79: | ||
mediaQuery = $('#test-media-query').css('display') === 'none'; | mediaQuery = $('#test-media-query').css('display') === 'none'; | ||
$('#test-media-query, #test-media-query-style').remove(); | $('#test-media-query, #test-media-query-style').remove(); | ||
- | + | /* if (!mediaQuery) { | |
- | /* | + | |
- | if (!mediaQuery) { | + | |
- | + | ||
- | + | ||
$(window).on("resize", function () { | $(window).on("resize", function () { | ||
widthDoc = $(window).width(); | widthDoc = $(window).width(); | ||
Line 241: | Line 90: | ||
}).resize(); | }).resize(); | ||
- | } | + | } */ |
- | + | ||
}); | }); | ||
</script> | </script> | ||
<style> | <style> | ||
- | |||
@font-face { | @font-face { | ||
font-family: 'Muli'; | font-family: 'Muli'; | ||
Line 253: | Line 100: | ||
src: local('Muli'), url(http://fonts.gstatic.com/s/muli/v6/kU4XYdV4jtS72BIidPtqyw.woff) format('woff'); | src: local('Muli'), url(http://fonts.gstatic.com/s/muli/v6/kU4XYdV4jtS72BIidPtqyw.woff) format('woff'); | ||
} | } | ||
+ | |||
+ | p { | ||
+ | font-size: 12pt; | ||
+ | font-family: Verdana; | ||
+ | } | ||
+ | |||
.menu {display:block; padding:0; margin:0; height:42px; position:relative; | .menu {display:block; padding:0; margin:0; height:42px; position:relative; | ||
Line 262: | Line 115: | ||
-ms-touch-action: none; | -ms-touch-action: none; | ||
} | } | ||
- | .menu img {position:absolute; left: | + | .menu img {position:absolute; left:0px; top:34px; z-index:100; display:none;} |
+ | |||
+ | .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; } | ||
.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/1/1a/Mr-navigation-background.png');} | ||
.menu ul li {*display:inline;} | .menu ul li {*display:inline;} | ||
- | .menu ul li a {display:block; font:normal 15pt/40px 'Muli', arial, sans-serif; color:#444; text-decoration:none; padding:0 | + | .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: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 278: | Line 133: | ||
@media only screen and (max-width:1280px) { | @media only screen and (max-width:1280px) { | ||
- | .menu {width: | + | .menu {width:235px;} |
.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;} | ||
Line 293: | Line 148: | ||
} | } | ||
@media only screen and (max-device-width:1024px) and (orientation:portrait) { | @media only screen and (max-device-width:1024px) and (orientation:portrait) { | ||
- | .menu {width: | + | .menu {width:235px;} |
.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;} | ||
Line 308: | Line 163: | ||
} | } | ||
@media only screen and (max-device-width:480px) { | @media only screen and (max-device-width:480px) { | ||
- | .menu {width: | + | .menu {width:235px;} |
.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;} |
Revision as of 12:12, 3 October 2014