Template:ETHZ Basel10 css
From 2010.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
<html> | <html> | ||
+ | <head> | ||
+ | <script type="text/javascript"> | ||
+ | function getURL(hrefString) | ||
+ | { | ||
+ | var arr = hrefString.split('/'); | ||
+ | return (arr.length<2) ? hrefString : arr[arr.length-2].toLowerCase() + arr[arr.length-1].toLowerCase(); | ||
+ | } | ||
+ | |||
+ | function setCurrentLink(arr, crtPage) | ||
+ | { | ||
+ | for (var i=0; i<arr.length; i++) | ||
+ | { | ||
+ | if(getURL(arr[i].href) == crtPage) | ||
+ | { | ||
+ | if (arr[i].parentNode.tagName != "DIV") | ||
+ | { | ||
+ | arr[i].className = "current"; | ||
+ | arr[i].parentNode.className = "current"; | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | |||
+ | function setPage() | ||
+ | { | ||
+ | hrefString = document.location.href ? document.location.href : document.location; | ||
+ | |||
+ | if (document.getElementById("subnavigation")!=null) | ||
+ | setCurrentLink(document.getElementById("subnavigation").getElementsByTagName("a"), getURL(hrefString)); | ||
+ | } | ||
+ | </script> | ||
<style type="text/css"> | <style type="text/css"> | ||
- | + | /* | |
- | + | Start Format iGEM base | |
- | + | */ | |
- | + | body { | |
- | + | /* format main-background */ | |
- | + | background-color: #C0C5CA; | |
- | + | } | |
- | + | #content { | |
- | } | + | /* format global document body */ |
- | # | + | font-family:"Verdana",Arial,sans-serif; |
- | { | + | } |
- | + | ||
- | } | + | |
- | + | .firstHeading { | |
- | { | + | /* removes pagename */ |
- | + | display: none; | |
- | + | } | |
- | + | #top-section { | |
- | + | /* formats iGEM header div */ | |
- | + | border: 0px; | |
- | } | + | height: 0px; |
- | # | + | } |
- | { | + | #p-logo { |
- | + | /* removes iGEM logo */ | |
- | } | + | display: none; |
+ | } | ||
- | #menubar.right-menu | + | #menubar { |
- | { | + | /* format top menubar */ |
- | + | top: 0px; | |
- | + | float: left; | |
- | + | border: none; | |
- | + | font-family:"Trebuchet MS",Arial,sans-serif; | |
- | + | font-size:85%; | |
- | + | height: 22px; | |
- | } | + | } |
- | #menubar.left-menu | + | #menubar li a { |
- | { | + | color: #FFFFFF; |
- | + | } | |
- | + | #menubar li a:hover { | |
- | + | text-decoration: underline; | |
- | + | } | |
- | } | + | #menubar.right-menu { |
+ | /* format right part of top menubar and add iGEM mini logo */ | ||
+ | text-align: right; | ||
+ | right: auto; | ||
+ | background: url(https://static.igem.org/mediawiki/2010/f/fb/IGEM_small.png) top left no-repeat; | ||
+ | background-color: #336699; | ||
+ | border-bottom: black 1px solid; | ||
+ | width: 975px; | ||
+ | z-index: 7; | ||
+ | } | ||
+ | #menubar.left-menu { | ||
+ | /* format left part of top menubar */ | ||
+ | text-align: left; | ||
+ | left: 20px; | ||
+ | width: auto; | ||
+ | z-index: 8; | ||
+ | } | ||
+ | |||
+ | #search-controls { | ||
+ | /* format searchbar */ | ||
+ | top: 24px; | ||
+ | overflow :visible; | ||
+ | display:block; | ||
+ | background: none; | ||
+ | width: 965px; | ||
+ | border: 0; | ||
+ | margin: 0; | ||
+ | height: auto; | ||
+ | text-align: right; | ||
+ | right: auto; | ||
+ | } | ||
+ | #searchInput { | ||
+ | /* format search input field */ | ||
+ | font-size:85%; | ||
+ | width: 100px; | ||
+ | color: #000000; | ||
+ | border: 1; | ||
+ | padding-right: 2px; | ||
+ | padding-left: 2px; | ||
+ | } | ||
+ | #searchform { | ||
+ | margin: 1px; | ||
+ | } | ||
+ | input.searchButton { | ||
+ | /* format search input buttons */ | ||
+ | font-family:"Trebuchet MS",Arial,sans-serif; | ||
+ | font-size:80%; | ||
+ | margin: 0; | ||
+ | color: #000000; | ||
+ | font-weight: normal; | ||
+ | cursor: hand; | ||
+ | cursor:pointer; | ||
+ | padding-right: 2px; | ||
+ | padding-left: 2px; | ||
+ | } | ||
+ | input.searchButton:hover { | ||
+ | color: #000000; | ||
+ | text-decoration: underline; | ||
+ | } | ||
- | # | + | #footer-box { |
- | { | + | /* format footer to match top menubar */ |
- | + | font-family:"Trebuchet MS",Arial,sans-serif; | |
- | + | font-size:12px; | |
- | + | color:#FFFFFF; | |
- | + | background:#336699; | |
- | width: 975px; | + | } |
- | + | #footer-box li a { | |
- | margin: 0; | + | color:#FFFFFF; |
- | height: | + | } |
- | + | ||
- | + | /* | |
- | + | End Format iGEM base | |
- | # | + | */ |
- | + | ||
- | + | /* | |
- | + | Start Format ETHZ_Basel | |
- | + | */ | |
- | + | ||
- | padding-right: | + | #header{ |
- | + | /* position logo */ | |
- | } | + | width: 975px; |
- | # | + | position: relative; |
- | { | + | left: -5px; |
- | + | } | |
- | } | + | |
- | + | #navigation{ | |
- | { | + | /* main div for navigation */ |
- | font-size: | + | width: 945px; |
- | margin: 0; | + | position: relative; |
- | color: # | + | left: -5px; |
- | + | padding: 5px 15px 0 15px; | |
- | + | background:#336699; | |
- | + | } | |
- | padding-right: | + | ul#simple-menu{ |
- | + | list-style-type:none; | |
- | } | + | width:100%; |
+ | position:relative; | ||
+ | height:27px; | ||
+ | font-family:"Trebuchet MS",Arial,sans-serif; | ||
+ | font-size:13px; | ||
+ | font-weight:bold; | ||
+ | margin:0; | ||
+ | padding:11px 0 0 0; | ||
+ | } | ||
+ | ul#simple-menu li{ | ||
+ | display:block; | ||
+ | float:left; | ||
+ | margin:0 0 0 4px; | ||
+ | height:27px; | ||
+ | } | ||
+ | ul#simple-menu li.left{ | ||
+ | margin:0; | ||
+ | } | ||
+ | ul#simple-menu li a{ | ||
+ | display:block; | ||
+ | float:left; | ||
+ | color:#fff; | ||
+ | background:#3F4955; | ||
+ | line-height:27px; | ||
+ | text-decoration:none; | ||
+ | padding:0 17px 0 18px; | ||
+ | height:27px; | ||
+ | } | ||
+ | ul#simple-menu li a.start{ | ||
+ | background:#7297BA; | ||
+ | } | ||
+ | ul#simple-menu li a.project{ | ||
+ | background:#F2BC00; | ||
+ | } | ||
+ | ul#simple-menu li a.biology{ | ||
+ | background:#049966; | ||
+ | } | ||
+ | ul#simple-menu li a.modeling{ | ||
+ | background:#B94211; | ||
+ | } | ||
+ | ul#simple-menu li a.right{ | ||
+ | padding-right:19px; | ||
+ | } | ||
+ | ul#simple-menu li a:hover{ | ||
+ | text-decoration: underline; | ||
+ | } | ||
+ | |||
+ | #subnavigation{ | ||
+ | /* main div for subnavigation */ | ||
+ | width: 945px; | ||
+ | position: relative; | ||
+ | left: -5px; | ||
+ | padding: 5px 15px 0 15px; | ||
+ | background:#3F4955; | ||
+ | } | ||
+ | #subnavigation.start{ | ||
+ | background:#7297BA; | ||
+ | } | ||
+ | #subnavigation.project{ | ||
+ | background:#F2BC00; | ||
+ | } | ||
+ | #subnavigation.biology{ | ||
+ | background:#049966; | ||
+ | } | ||
+ | #subnavigation.modeling{ | ||
+ | background:#B94211; | ||
+ | } | ||
+ | ul#sub-menu{ | ||
+ | list-style-type:none; | ||
+ | width:100%; | ||
+ | position:relative; | ||
+ | height:27px; | ||
+ | font-family:"Trebuchet MS",Arial,sans-serif; | ||
+ | font-size:13px; | ||
+ | font-weight:bold; | ||
+ | margin:0; | ||
+ | padding:11px 0 0 0; | ||
+ | } | ||
+ | ul#sub-menu li{ | ||
+ | display:block; | ||
+ | float:left; | ||
+ | margin:0 0 0 4px; | ||
+ | height:27px; | ||
+ | } | ||
+ | ul#sub-menu li.left{ | ||
+ | margin:0; | ||
+ | } | ||
+ | ul#sub-menu li a{ | ||
+ | display:block; | ||
+ | float:left; | ||
+ | color:#fff; | ||
+ | line-height:27px; | ||
+ | text-decoration:none; | ||
+ | padding:0 17px 0 18px; | ||
+ | height:27px; | ||
+ | } | ||
+ | ul#sub-menu li a.right{ | ||
+ | padding-right:19px; | ||
+ | } | ||
+ | ul#sub-menu li a:hover{ | ||
+ | text-decoration: underline; | ||
+ | } | ||
+ | ul#sub-menu li a.current{ | ||
+ | color:#000000; | ||
+ | background:#FFFFFF; | ||
+ | } | ||
+ | /* | ||
+ | End Format ETHZ_Basel | ||
+ | */ | ||
</style> | </style> | ||
+ | </head> | ||
</html> | </html> |
Revision as of 13:40, 8 September 2010