Template:Team:UC Davis/Head
From 2013.igem.org
(Difference between revisions)
Line 2: | Line 2: | ||
<head> | <head> | ||
+ | <style type="text/css"> | ||
- | + | a.white:link {color:#FFF;} /* unvisited link */ | |
+ | a.white:visited {color:#FFF;} /* visited link */ | ||
+ | a.white:hover {color:#FFF;} /* mouse over link */ | ||
+ | a.white:active {color:#FFF;} /* selected link */ | ||
- | + | .floatbox | |
- | + | { | |
- | + | width:707px; | |
- | + | float:left; | |
+ | background-color: rgba(0,0,0,.65); | ||
+ | margin-top: 5px; | ||
+ | border-radius: 4px; | ||
+ | padding: 15px 15px 15px 15px; | ||
+ | font: sans-serif; | ||
+ | font-size: 13px; | ||
+ | color: rgba(225,225,225,.9); | ||
+ | } | ||
- | . | + | /* Some stylesheet reset */ |
- | { | + | .nav, .nav ul { |
- | + | margin: 0; | |
- | + | padding: 0; | |
- | + | list-style: none; | |
- | + | line-height: 1; | |
- | + | z-index: 9999999; | |
- | + | } | |
- | + | ||
- | + | ||
- | + | ||
- | } | + | |
- | /* | + | /* The top navigation menu */ |
- | .nav | + | .nav { |
- | + | /* Layout & positioning */ | |
- | + | display: block; | |
- | + | position: relative; | |
- | + | width: 967px; /*1000px*/ | |
- | + | height: 43px; | |
- | + | ||
- | /* | + | /* Background & effects */ |
- | + | background: #232323; /* Background for Internet Explorer 9 and older browsers */ | |
- | + | background: -webkit-linear-gradient(bottom, #444, #555); /* Background for Chrome & Safari */ | |
- | + | background: -moz-linear-gradient(bottom, #444, #555); /* Background for Firefox */ | |
- | + | background: -o-linear-gradient(bottom, #444, #555); /* Background for Opera */ | |
- | + | background: -ms-linear-gradient(bottom, #444, #555); /* Background for Internet Explore 10+ */ | |
- | + | } | |
- | + | /* The link containers */ | |
- | + | .nav>li { | |
- | + | display: block; | |
- | + | float:left; | |
- | + | position: relative; | |
- | + | margin: 0; | |
- | + | padding: 0; | |
- | + | ||
- | /* The link containers */ | + | |
- | .nav>li { | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | } | + | } |
- | /* The main navigation links */ | + | /* The main navigation links */ |
- | .nav>li>a { | + | .nav>li>a { |
- | + | /* Layout & positioning */ | |
- | + | display: block; | |
- | + | width: 159.1px; /* 198 */ | |
- | + | padding: 15px 0px; | |
- | + | border-right: 1px dotted #393939; | |
- | + | border-left: 1px dotted #595959; | |
- | + | /* Typography */ | |
- | + | font-family: Arial, san-serif; | |
- | + | font-size: 20px; | |
- | + | font-weight: normal; | |
- | + | text-decoration: none; | |
- | + | color: #CCC; | |
- | + | text-shadow: 0 1px 0 #2a2a2a; | |
- | + | text-align: center; | |
- | + | /* Chaning the background on hover with a smooth transition */ | |
- | + | -webkit-transition: background .35s linear; | |
- | + | -moz-transition: background .35s linear; | |
- | + | -ms-transition: background .35s linear; | |
- | + | -o-transition: background .35s linear; | |
- | + | transition: background .35s linear; | |
- | } | + | } |
- | /* Chaning the background on hover */ | + | /* Chaning the background on hover */ |
- | .nav>li>a:hover, .nav>li:hover>a { | + | .nav>li>a:hover, .nav>li:hover>a { |
- | + | background: rgba(255, 255, 255, .9); | |
- | + | color: #000; | |
- | } | + | } |
- | .nav>li:first-child a { | + | .nav>li:first-child a { |
- | + | border-top-left-radius: 3px; | |
- | } | + | } |
- | .arrow:hover { | + | .arrow:hover { |
- | + | -moz-transition-duration: 3000s; | |
- | + | -ms-transition-duration: 3000s; | |
- | + | -o-transition-duration: 3000s; | |
- | + | -webkit-transition-duration: 3000s; | |
- | + | transition-duration: 3000s; | |
- | } | + | } |
- | /* General styling for the submenus */ | + | /* General styling for the submenus */ |
- | .nav ul { | + | .nav ul { |
- | + | display: block; | |
- | + | position: absolute; | |
- | + | left: -9999px; | |
- | + | text-align: center; | |
- | + | box-shadow: 0 1px 2px rgba(0, 0, 0, .15); | |
- | } | + | } |
- | /* Level 1 submenus */ | + | /* Level 1 submenus */ |
- | .nav>li>ul { | + | .nav>li>ul { |
- | + | cursor: pointer; | |
- | + | padding-top: 0px; | |
- | + | z-index: 200; | |
- | + | top: 43px; | |
- | + | } | |
- | } | + | |
- | /* Making the level 1 submenu to appear on hover */ | + | /* Making the level 1 submenu to appear on hover */ |
- | .nav>li:hover>ul { | + | .nav>li:hover>ul { |
- | + | left: 1px; | |
- | } | + | } |
- | /* The submenu link containers */ | + | /* The submenu link containers */ |
- | .nav ul li { | + | .nav ul li { |
- | + | position: relative; | |
- | + | display: block; | |
- | + | /* Creating the slide effect. The list elements which contain the links have 0 height. On hover, they will expand */ | |
- | + | height: 0px; | |
- | + | -webkit-transition: height .2s; | |
- | + | -moz-transition: height .2s; | |
- | + | -o-transition: height .2s; | |
- | + | -ms-transition: height .2s; | |
- | } | + | } |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | /* Expanding the list elements which contain the links */ | |
- | + | .nav li:hover>ul>li { | |
- | + | height: 24px; | |
- | + | } | |
- | + | ||
- | + | ||
- | } | + | |
- | .nav>li>ul>li:first-child | + | .nav>li:hover>ul>li:first-child { |
- | + | height: 27px; | |
- | + | } | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | } | + | |
+ | .nav>li>ul>li:first-child>a { | ||
+ | border-top: 3px solid #fff; | ||
+ | } | ||
- | + | .nav>li>ul>li.dropdown:first-child>ul { | |
- | .nav ul li: | + | top: 3px; |
- | + | } | |
- | + | ||
- | } | + | |
- | /* | + | /* The links of the submenus */ |
- | .nav ul | + | .nav ul li a { |
- | + | /* Layout */ | |
- | + | display: block; | |
+ | width: 127px; /* 169 */ | ||
+ | padding: 6px 12px 6px 20px; | ||
- | + | /* Typography */ | |
- | + | font-size: 13px; | |
- | + | color: #01406e; | |
- | + | font-family: Arial, san-serif; | |
+ | text-decoration: none; | ||
+ | background: #f0f0f0; | ||
+ | /* Every change to the links (background, color etc) will be made with a smooth transition */ | ||
+ | -webkit-transition: all .2s; | ||
+ | -moz-transition: all .2s; | ||
+ | -ms-transition: all .2s; | ||
+ | -o-transition: all .2s; | ||
+ | transition: all .2s; | ||
+ | } | ||
- | .nav>li:first-child | + | .nav>li>ul>li:first-child>a::before { |
- | { | + | content: ""; |
+ | display: block; | ||
+ | position: absolute; | ||
+ | text-align: center; | ||
+ | width: 100%; | ||
+ | height: 12px; | ||
+ | background: transparent; | ||
+ | top: -8px; | ||
+ | left: 0; | ||
+ | z-index: 9999; | ||
+ | } | ||
- | + | /* The hover state of the links */ | |
+ | .nav ul li:hover>a, .nav ul li>a:hover { | ||
+ | background: #c8c8c8; /*e7e7e7 */ | ||
+ | color: #000000; | ||
+ | } | ||
- | } | + | /* Changing the color of the arrow on hover */ |
+ | .nav ul>.dropdown:hover>a::after, .nav ul>.dropdown>a:hover::after { | ||
+ | border-left-color: #fff; | ||
+ | } | ||
- | .nav>li | + | .nav>li>ul>li |
- | { | + | { |
- | + | margin-bottom: 0 | |
- | } | + | } |
- | |||
- | |||
- | |||
- | |||
- | } | + | .nav>li:first-child:hover>ul |
+ | { | ||
+ | left:0px; | ||
+ | } | ||
- | + | .nav>li:last-child:hover>ul | |
+ | { | ||
+ | left:-2px; | ||
+ | } | ||
+ | .tableCSS | ||
+ | { | ||
+ | background-color:#ffffff; | ||
+ | width:1000px; | ||
+ | } | ||
+ | </style> | ||
+ | <style> | ||
- | + | /* Hiding default wiki displays: Credits to TU-Delft and Groningen for the code! */ | |
+ | #globalWrapper { | ||
+ | background-color: rgba(255,255,255,1); | ||
+ | background-image: url('http://biobm.com/images/DNA-background.jpg'); | ||
+ | background-size: 100%; | ||
+ | background-repeat: no-repeat; | ||
+ | background-attachment:fixed; | ||
+ | font-family: arial, times; | ||
+ | } | ||
- | + | #content { | |
- | # | + | position: relative; |
- | + | width: 965px; | |
- | + | padding: 0px 0px 0px 0px; | |
- | background | + | background: white; |
- | + | border: none; | |
- | + | color: black; | |
- | + | line-height: 1.5em; | |
- | } | + | z-index: 2; |
+ | } | ||
- | # | + | #catlinks { |
- | + | visibility:hidden; | |
- | + | } | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | } | + | |
- | # | + | #bodyContent { |
- | + | background-color: rgba(255,255,255,1); | |
- | } | + | background-image: url('http://biobm.com/images/DNA-background.jpg'); |
+ | background-size: 100%; | ||
+ | background-repeat: no-repeat; | ||
+ | background-attachment:fixed; | ||
+ | font-family: arial, times; | ||
+ | } | ||
- | + | .partsreglink:link { | |
- | + | color:#33ee33; | |
- | + | } | |
- | + | .partsreglink:visited { | |
- | + | color:#33ee33; | |
- | + | } | |
- | + | ||
- | } | + | |
- | + | #top-section { | |
- | color: | + | height: 20px; |
- | + | background-color: rgba(255,255,255,0); | |
- | + | margin-left: auto; | |
- | + | width: 99%; | |
- | } | + | margin-right: auto; |
+ | margin-bottom: 10px; | ||
+ | margin-top: 3px; | ||
+ | border-bottom: 20px; | ||
+ | } | ||
- | # | + | #p-logo { |
- | height: | + | height:0px; |
- | background-color: | + | overflow:hidden; |
- | + | display:none; | |
- | width: | + | } |
- | margin | + | .firstHeading { |
- | + | display: none; | |
- | margin-top: | + | } |
- | border | + | #footer-box { |
- | } | + | background-color: transparent; |
+ | border: none; | ||
+ | width: 1000px; | ||
+ | margin: 0 auto; | ||
+ | padding: 0; | ||
+ | } | ||
+ | #search-controls { | ||
+ | display: none; | ||
+ | } | ||
+ | .left-menu { | ||
+ | width: 400px; | ||
+ | display:block; | ||
+ | float:left; | ||
+ | border: none; | ||
+ | } | ||
+ | #menubar.right-menu { | ||
+ | width:300px; | ||
+ | display:block; | ||
+ | float:left; | ||
+ | margin-top:-80px; | ||
+ | border: none; | ||
+ | color: #000 | ||
+ | } | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
+ | hr{ | ||
+ | margin:50px 0; | ||
+ | color:#eee; | ||
+ | } | ||
- | + | ul li.active{ /*IE6 hack- hide effect from that browser*/ | |
- | + | _visibility: hidden; /*IE6 rule*/ | |
- | + | } | |
- | } | + | |
- | + | p {border:none;} | |
- | + | h1 {border-color:white; color:white} | |
- | } | + | .banner {border-radius:4px} |
- | + | </style> | |
- | + | ||
- | + | ||
- | </style> | + | |
</head> | </head> | ||
- | + | <body> | |
<img src="https://static.igem.org/mediawiki/2013/d/d4/UC_Davis_2013ConstBanner.jpg" class="banner" width=967px height=226/> | <img src="https://static.igem.org/mediawiki/2013/d/d4/UC_Davis_2013ConstBanner.jpg" class="banner" width=967px height=226/> |
Revision as of 00:02, 9 August 2013