Template:MIT-header
From 2011.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
__NOTOC__<html lang="en"> | __NOTOC__<html lang="en"> | ||
<head> | <head> | ||
+ | <!-- wiki hacks --> | ||
<style type="text/css"> | <style type="text/css"> | ||
.firstHeading { | .firstHeading { | ||
- | + | height:0px; | |
- | + | visibility:hidden; | |
} | } | ||
- | + | body { | |
- | body {background: #E8E8E8; | + | background: #E8E8E8; |
- | + | background-image: url('https://static.igem.org/mediawiki/2011/b/be/Background-gradient.jpg'); | |
- | + | background-position: center; | |
- | + | background-repeat: repeat-y; | |
+ | } | ||
+ | #p-logo { | ||
+ | height:1px; overflow:hidden; display: none; | ||
} | } | ||
- | |||
- | |||
- | |||
#top-section { | #top-section { | ||
- | + | background-image: url('https://static.igem.org/mediawiki/2011/7/7f/MIT-header.jpg'); | |
- | + | background-position: top; | |
- | + | height:200px ; | |
- | + | background-repeat: no-repeat; | |
- | + | border-width:0px; | |
- | + | border-top-width:1px; | |
- | + | ||
} | } | ||
- | |||
#content { | #content { | ||
- | + | border-left-width:0px; | |
- | + | border-right-width:0px; | |
+ | padding:5px; | ||
+ | width:965px; | ||
} | } | ||
- | + | #menubar { | |
- | #menubar { background-color: white; } | + | background-color: white; |
- | + | } | |
- | + | #menubar ul li a { | |
- | #menubar ul li a { color: #999999; } | + | color: #999999; } |
- | + | .right-menu li a { | |
- | + | color: black; | |
- | .right-menu li a { | + | background-color: white; |
- | color: black; | + | |
- | background-color: white; | + | |
} | } | ||
</style> | </style> | ||
- | + | <!-- kwicks style sheet --> | |
<style> | <style> | ||
/* This css file serves as a template for styling your kwicks. Feel free to modify, but please make note of the comments - some of them are important. */ | /* This css file serves as a template for styling your kwicks. Feel free to modify, but please make note of the comments - some of them are important. */ | ||
- | |||
.kwicks { | .kwicks { | ||
- | + | /* recommended styles for kwicks ul container */ | |
- | + | list-style: none; | |
- | + | position: relative; | |
- | + | margin: 0px; | |
- | + | padding: 1px 0px; | |
- | + | margin-left:auto; | |
- | + | margin-right:auto; | |
- | + | } | |
- | + | .kwicks ul{ | |
+ | margin:0px; | ||
} | } | ||
- | |||
.kwicks li{ | .kwicks li{ | ||
- | + | /* these are required, but the values are up to you (must be pixel) */ | |
- | + | width: 135px; | |
- | + | height: 50px; | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
+ | /*do not change these */ | ||
+ | display: block; | ||
+ | overflow: hidden; | ||
+ | padding: 0; /* if you need padding, do so with an inner div (or implement your own box-model hack) */ | ||
+ | margin:0; | ||
+ | font-family:'century gothic','lucida sans unicode', sans-serif; | ||
} | } | ||
- | |||
- | |||
.kwicks.horizontal li { | .kwicks.horizontal li { | ||
- | + | /* This is optional and will be disregarded by the script. However, it should be provided for non-JS enabled browsers. */ | |
- | + | margin-right: 5px; /*Set to same as spacing option. */ | |
- | + | float: left; | |
} | } | ||
.kwicks.vertical li{ | .kwicks.vertical li{ | ||
- | + | /* This is optional and will be disregarded by the script. However, it should be provided for non-JS enabled browsers. */ | |
- | + | margin-bottom: 5px; /*Set to same as spacing option. */ | |
} | } | ||
- | |||
- | |||
#kwick_1 { | #kwick_1 { | ||
- | |||
- | |||
- | |||
- | |||
- | |||
} | } | ||
#kwick_1.active { | #kwick_1.active { | ||
- | + | } | |
- | + | ||
- | + | ||
- | } | + | |
#kwick_2 { | #kwick_2 { | ||
- | |||
- | |||
- | |||
- | |||
} | } | ||
#kwick_2.active { | #kwick_2.active { | ||
- | |||
- | |||
- | |||
} | } | ||
#kwick_3 { | #kwick_3 { | ||
- | |||
- | |||
- | |||
- | |||
} | } | ||
#kwick_3.active { | #kwick_3.active { | ||
- | |||
- | |||
- | |||
} | } | ||
#kwick_4 { | #kwick_4 { | ||
- | |||
- | |||
- | |||
- | |||
} | } | ||
#kwick_4.active { | #kwick_4.active { | ||
- | |||
- | |||
- | |||
} | } | ||
#kwick_5 { | #kwick_5 { | ||
- | |||
- | |||
- | |||
- | |||
} | } | ||
#kwick_5.active { | #kwick_5.active { | ||
- | + | } | |
- | + | #kwick_6 { | |
- | + | } | |
+ | #kwick_6.active { | ||
+ | } | ||
+ | #kwick_7 { | ||
+ | } | ||
+ | #kwick_7.active { | ||
} | } | ||
- | .kwicks.horizontal # | + | .kwicks.horizontal #kwick_7 { |
- | + | ||
} | } | ||
- | .kwicks.vertical # | + | .kwicks.vertical #kwick_7 { |
- | + | margin-bottom: none; /* cancel margin on last kiwck (if you set a margin above) */ | |
} | } | ||
+ | /*!--custom css for kwicks*/ | ||
.section { | .section { | ||
- | + | border:solid 1px #999; | |
- | + | width:130px;/*5px less than kwicks li width*/ | |
- | + | float:left; | |
- | + | font-size: 16px; | |
- | + | letter-spacing:.05em; | |
- | + | position:absolute; | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
} | } | ||
- | + | .section table { | |
- | .section | + | background-color: #4D4D4D; |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
} | } | ||
- | .section table | + | .section table, .section-description table { |
- | + | color: #fff; | |
- | + | width: 100%; | |
- | + | height: 49px; | |
+ | text-align: center; | ||
} | } | ||
- | + | .section-description table { | |
- | + | color: #333; | |
} | } | ||
- | + | .section td, .section-description td { | |
- | .section- | + | vertical-align: middle; |
- | + | ||
- | + | ||
} | } | ||
- | + | .section-description { | |
- | + | margin-left:145px; | |
- | .section- | + | } |
- | + | #navigation { | |
- | + | padding-left:5px; | |
- | + | padding-bottom:0px; | |
- | + | border-bottom:1px solid #999; | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
} | } | ||
</style> | </style> | ||
- | |||
- | |||
<script src="https://2011.igem.org/Team:MIT/js/kwicks?action=raw&ctype=text/javascript" type="text/javascript" /> | <script src="https://2011.igem.org/Team:MIT/js/kwicks?action=raw&ctype=text/javascript" type="text/javascript" /> | ||
<script> google.load("jquery", "1.2.6"); </script> | <script> google.load("jquery", "1.2.6"); </script> | ||
- | + | <script type="text/javascript"> | |
- | + | $().ready(function() { | |
- | + | $('.kwicks').kwicks({ | |
- | + | max : 300, | |
- | + | spacing : 2, | |
- | + | sticky : false, | |
- | + | defaultKwick : 0, | |
- | + | duration: 200, | |
- | + | }); | |
- | + | }); | |
+ | </script> | ||
</head> | </head> | ||
<body> | <body> | ||
- | + | <!-- I know the layout is stupid, but it was the easiest way to vertically center the description.--> | |
<div id="navigation"> | <div id="navigation"> | ||
- | + | <ul class="kwicks horizontal" > | |
- | <ul class="kwicks horizontal" > | + | |
- | + | ||
<li id="kwick_1"> | <li id="kwick_1"> | ||
<a href="https://2011.igem.org/Team:MIT"> | <a href="https://2011.igem.org/Team:MIT"> | ||
<div class="section"> | <div class="section"> | ||
- | <table><tr><td> | + | <table><tr><td>HOME</td></tr></table> |
</div></a> | </div></a> | ||
<a href="https://2011.igem.org/Team:MIT"> | <a href="https://2011.igem.org/Team:MIT"> | ||
- | <div class="section- | + | <div class="section-description"> |
- | + | ||
<table><tr><td>A brief introduction to iGEM</td></tr></table> | <table><tr><td>A brief introduction to iGEM</td></tr></table> | ||
- | |||
</div></a> | </div></a> | ||
</li> | </li> | ||
Line 243: | Line 182: | ||
<a href="https://2011.igem.org/Team:MIT/Team/Undergraduates"> | <a href="https://2011.igem.org/Team:MIT/Team/Undergraduates"> | ||
<div class="section"> | <div class="section"> | ||
- | <table><tr><td> | + | <table><tr><td>TEAM</td></tr></table> |
</div></a> | </div></a> | ||
<a href="https://2011.igem.org/Team:MIT/Team/Undergraduates"> | <a href="https://2011.igem.org/Team:MIT/Team/Undergraduates"> | ||
- | <div class="section- | + | <div class="section-description"> |
- | + | ||
<table><tr><td>The people behind it all</td></tr></table> | <table><tr><td>The people behind it all</td></tr></table> | ||
- | |||
</div></a> | </div></a> | ||
</li> | </li> | ||
Line 256: | Line 193: | ||
<a href="https://2011.igem.org/Team:MIT/Project/"> | <a href="https://2011.igem.org/Team:MIT/Project/"> | ||
<div class="section"> | <div class="section"> | ||
- | <table><tr><td> | + | <table><tr><td>PROJECT</td></tr></table> |
</div></a> | </div></a> | ||
<a href="https://2011.igem.org/Team:MIT/Project/"> | <a href="https://2011.igem.org/Team:MIT/Project/"> | ||
- | <div class="section- | + | <div class="section-description"> |
- | + | <table><tr><td>Overview of project ideas</td></tr></table> | |
- | <table><tr><td>Overview of project ideas | + | |
- | + | ||
</div></a> | </div></a> | ||
</li> | </li> | ||
<li id="kwick_4"> | <li id="kwick_4"> | ||
+ | <a href="https://2011.igem.org/Team:MIT/Project/"> | ||
+ | <div class="section"> | ||
+ | <table><tr><td>NOTEBOOK</td></tr></table> | ||
+ | </div></a> | ||
+ | <a href="https://2011.igem.org/Team:MIT/Project/"> | ||
+ | <div class="section-description"> | ||
+ | <table><tr><td>Overview of project ideas</td></tr></table> | ||
+ | </div></a> | ||
+ | </li> | ||
+ | |||
+ | <li id="kwick_5"> | ||
<a href="https://2011.igem.org/Team:MIT/nocontent"> | <a href="https://2011.igem.org/Team:MIT/nocontent"> | ||
- | <div class="section"><table><tr><td> | + | <div class="section"> |
+ | <table><tr><td>RESULTS</td></tr></table> | ||
</div></a> | </div></a> | ||
<a href="https://2011.igem.org/Team:MIT/nocontent"> | <a href="https://2011.igem.org/Team:MIT/nocontent"> | ||
- | <div class="section- | + | <div class="section-description"> |
- | + | <table><tr><td>Overall results</td></tr></table> | |
- | <table><tr><td> | + | |
- | + | ||
</div></a> | </div></a> | ||
</li> | </li> | ||
- | <li id=" | + | <li id="kwick_6"> |
<a href="https://2011.igem.org/Team:MIT/nocontent"> | <a href="https://2011.igem.org/Team:MIT/nocontent"> | ||
- | <div class="section"><table><tr><td> | + | <div class="section"> |
+ | <table><tr><td>SAFETY</td></tr></table> | ||
+ | </div></a> | ||
+ | <a href="https://2011.igem.org/Team:MIT/nocontent"> | ||
+ | <div class="section-description"> | ||
+ | <table><tr><td>Our safety practices</td></tr></table> | ||
+ | </div></a> | ||
+ | </li> | ||
+ | |||
+ | <li id="kwick_7"> | ||
+ | <a href="https://2011.igem.org/Team:MIT/nocontent"> | ||
+ | <div class="section"> | ||
+ | <table><tr><td>PARTNERS</td></tr></table> | ||
</div></a> | </div></a> | ||
<a href="https://2011.igem.org/Team:MIT/nocontent"> | <a href="https://2011.igem.org/Team:MIT/nocontent"> | ||
- | <div class="section- | + | <div class="section-description"> |
- | + | ||
<table><tr><td>Outreach; partners and sponsor information</td></tr></table> | <table><tr><td>Outreach; partners and sponsor information</td></tr></table> | ||
- | |||
</div></a> | </div></a> | ||
</li> | </li> |
Revision as of 17:12, 14 August 2011