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">
-
.firstHeading
+
/*
-
{
+
Start Format iGEM base
-
display: none;
+
*/
-
}
+
body {
-
#top-section
+
/* format main-background */
-
{
+
background-color: #C0C5CA;
-
border: 0px;
+
}
-
height: 18px;
+
#content {
-
}
+
/* format global document body */
-
#p-logo
+
font-family:"Verdana",Arial,sans-serif;
-
{
+
}
-
display: none;
+
-
}
+
-
#menubar
+
.firstHeading {
-
{
+
/* removes pagename */
-
top: 0px;
+
display: none;
-
float: left;
+
}
-
border: none;
+
#top-section {
-
font-size:85%;
+
/* formats iGEM header div */
-
height: 18px;
+
border: 0px;
-
}
+
height: 0px;
-
#menubar li a
+
}
-
{
+
#p-logo {
-
color: #868686;
+
/* removes iGEM logo */
-
}
+
display: none;
 +
}
-
#menubar.right-menu
+
#menubar {
-
{
+
/* format top menubar */
-
text-align: right;
+
top: 0px;
-
right: auto;
+
float: left;
-
background-color: #494D51;
+
border: none;
-
border-bottom: black 1px solid;
+
font-family:"Trebuchet MS",Arial,sans-serif;
-
width: 977px;
+
font-size:85%;
-
z-index: 7;
+
height: 22px;
-
}
+
}
-
#menubar.left-menu
+
#menubar li a {
-
{
+
color: #FFFFFF;
-
text-align: left;
+
}
-
left: auto;
+
#menubar li a:hover {
-
width: auto;
+
text-decoration: underline;
-
z-index: 8;
+
}
-
}
+
#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;
 +
}
-
#search-controls
+
#footer-box {
-
{
+
/* format footer to match top menubar */
-
top: 24px;
+
font-family:"Trebuchet MS",Arial,sans-serif;
-
overflow :visible;
+
font-size:12px;
-
display:block;
+
color:#FFFFFF;
-
background: none;
+
background:#336699;
-
width: 975px;
+
}
-
border: 0;
+
#footer-box li a {
-
margin: 0;
+
color:#FFFFFF;
-
height: auto;
+
}
-
text-align: right;
+
 
-
right: auto;
+
/*
-
}
+
End Format iGEM base
-
#searchInput
+
*/
-
{
+
 
-
font-size:85%;
+
/*
-
width: 100px;
+
Start Format ETHZ_Basel
-
color: #000000;
+
*/
-
border: 1;
+
 
-
padding-right: 2px;
+
#header{
-
padding-left: 2px;
+
/* position logo */
-
}
+
width: 975px;
-
#searchform
+
position: relative;
-
{
+
left: -5px;
-
margin: 1px;
+
}
-
}
+
 
-
input.searchButton
+
#navigation{
-
{
+
/* main div for navigation */
-
font-size:80%;
+
width: 945px;
-
margin: 0;
+
position: relative;
-
color: #000000;
+
left: -5px;
-
font-weight: normal;
+
padding: 5px 15px 0 15px;
-
cursor: hand;
+
background:#336699;
-
cursor:pointer;
+
}
-
padding-right: 2px;
+
ul#simple-menu{
-
padding-left: 2px;
+
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