|
|
(157 intermediate revisions not shown) |
Line 1: |
Line 1: |
| <html> | | <html> |
- | <head>
| |
| | | |
| <!-- This is a comment in html --> | | <!-- This is a comment in html --> |
Line 8: |
Line 7: |
| /* This is a comment in css */ | | /* This is a comment in css */ |
| | | |
- | /* Remove wiki formatting */ | + | /* Took tips from https://2011.igem.org/Team:DTU-Denmark/How_to_customize_an_iGEM_wiki */ |
| + | /* Remove unwanted wiki formatting */ |
| /****************************/ | | /****************************/ |
| #contentSub, #search-controls, .firstHeading, #footer-box, #catlinks, #p-logo { | | #contentSub, #search-controls, .firstHeading, #footer-box, #catlinks, #p-logo { |
Line 14: |
Line 14: |
| | | |
| #top-section { | | #top-section { |
- | background-image:url('https://static.igem.org/mediawiki/2012/a/a8/Caltech_Header.png'); | + | background-image:url('https://static.igem.org/mediawiki/2012/c/c5/Caltech2012Banner.gif'); |
| background-repeat: no-repeat; | | background-repeat: no-repeat; |
| background-position: center top; | | background-position: center top; |
- | height:275px ! important; | + | height:100px ! important; |
| | | |
| } | | } |
- | #bodyContent { padding: 10px auto; width: 910px; margin: auto; clear: none; color:black} | + | #bodyContent { padding: 10px auto; width: 910px; margin: auto; clear: none; color:black; padding-bottom: 2em;} |
| | | |
| + | #left { |
| + | width: 45%; |
| + | float: left;} |
| + | |
| + | #right { |
| + | width: 55%; |
| + | float: right;} |
| + | |
| + | #left_2 { |
| + | width: 92%; |
| + | float: left;} |
| + | |
| + | #right_2 { |
| + | width: 8%; |
| + | float: right;} |
| | | |
| /* This sets the orange background of the screen. */ | | /* This sets the orange background of the screen. */ |
| body {background: #EBA243} | | body {background: #EBA243} |
| | | |
- | /* Removes "teams" from the menubar */ | + | /* Removes "teams" option from the menubar */ |
| #menubar > ul > li:last-child { | | #menubar > ul > li:last-child { |
| display: none;} | | display: none;} |
Line 39: |
Line 54: |
| font-size: 14px; | | font-size: 14px; |
| color: #444444;} | | color: #444444;} |
- |
| |
| p { | | p { |
| margin: 0; color: #000000; text-align:left;} | | margin: 0; color: #000000; text-align:left;} |
| #innercontent p { | | #innercontent p { |
| margin: 0.6em 0;} | | margin: 0.6em 0;} |
- | h3, h4, h5, h6 { | + | h3, h4, h6 { |
| border: none; | | border: none; |
| font-weight: lighter; | | font-weight: lighter; |
| color: #E56717; text-align:left} | | color: #E56717; text-align:left} |
| + | |
| + | h5 { |
| + | font-weight: lighter; |
| + | color: #565051; |
| + | text-align:right;} |
| + | } |
| + | /* |
| h1 { | | h1 { |
| border: none; | | border: none; |
Line 53: |
Line 74: |
| text-shadow: 0 1px rgba(255, 255, 255, 0.5); | | text-shadow: 0 1px rgba(255, 255, 255, 0.5); |
| font-size: 30px; | | font-size: 30px; |
- | margin: 5px 0 0 0; | + | margin: 5px 1px 1px 1px; |
| + | padding: 1px; |
| + | |
| font-weight: bold;} | | font-weight: bold;} |
| + | */ |
| + | h1 { |
| + | color: #383838; |
| + | border: none; |
| + | padding: 25px 0 5px; |
| + | font-family: Arial; |
| + | font-size: 30px; |
| + | font-weight: bold; |
| + | line-height:28px; |
| + | margin-bottom: 0;} |
| + | |
| + | |
| h2 { | | h2 { |
| color: #383838; | | color: #383838; |
- | text-shadow: 0 1px rgba(255, 255, 255, 0.5);
| |
| border: none; | | border: none; |
| padding: 25px 0 5px; | | padding: 25px 0 5px; |
Line 63: |
Line 97: |
| font-size: 24px; | | font-size: 24px; |
| font-weight: bold; | | font-weight: bold; |
- | clear: right;
| |
| margin-bottom: 0;} | | margin-bottom: 0;} |
| + | |
| #bodyContent h1, #bodyContent h2 { | | #bodyContent h1, #bodyContent h2 { |
| margin-bottom: 0;} | | margin-bottom: 0;} |
Line 85: |
Line 119: |
| font-weight: normal; | | font-weight: normal; |
| font-variant: normal; | | font-variant: normal; |
- | text-transform: none;
| |
| color: #000000; | | color: #000000; |
| text-decoration: none; | | text-decoration: none; |
Line 94: |
Line 127: |
| margin-left: 0; padding-left: 20px; | | margin-left: 0; padding-left: 20px; |
| } | | } |
| + | |
| | | |
| .clear { | | .clear { |
- | clear: both;
| |
| height: 0; | | height: 0; |
| padding: 0; | | padding: 0; |
Line 102: |
Line 135: |
| border: none; | | border: none; |
| visibility: hidden;} | | visibility: hidden;} |
| + | |
| .tab {text-indent: 30pt;} | | .tab {text-indent: 30pt;} |
| | | |
- | /* Original from Uppsala site */
| |
- | /*-----------------------------------------------------------------------------------------------*/
| |
- | div.MenuBar ul li ul.DropDownMenu {
| |
- | display: none; /* Hides all drop-down menus. */
| |
| | | |
- | }
| + | /************************************************************/ |
- | /* | + | /* Main menu settings */ |
- | li:hover works in IE7 and FF2.
| + | /* lots of advice and some code taken from |
- | a:hover works in IE6 and FF2.
| + | http://csswizardry.com/2011/02/creating-a-pure-css-dropdown-menu/, |
- | a:hover breaks li:hover in FF2. | + | http://www.onextrapixel.com/2011/06/03/how-to-create-a-horizontal-dropdown-menu-with-html-css-and-jquery/, |
- | */
| + | and the comment sections */ |
- | div.MenuBar ul li:hover ul.DropDownMenu li ul.SideMenu,
| + | #nav { |
- | div.MenuBar ul li a:hover ul.DropDownMenu li a ul.SideMenu {
| + | /* clear:both; */ |
- | display: none; /* Hides all side menus. */
| + | float:left; |
- | }
| + | margin:0; |
- | /*------------------------------------------------------------------------------------- Menu Bar */ | + | padding:0; |
- | div.MenuBar {
| + | border-top:2px solid #000; /* black line above menu */ |
- | font: arial, helvetica, sans-serif;
| + | border-bottom:2px solid #000; /* black line below menu */ |
- | height: 30px;
| + | /* width: auto; */ |
- | width: 910px;
| + | width:830px; |
- | margin: 0;
| + | /* font-family: Verdana, Geneva, sans-serif; Menu font */ |
- | border-top: 0;
| + | /* font-size:100%; Menu text size */ |
- | border-right: 0;
| + | z-index:1000; /* This makes the dropdown menus appear above the page content below */ |
- | border-left: 0;
| + | position:relative; |
- | padding: 0;
| + | |
- | background: black;
| + | |
- | position:center;
| + | |
- |
| + | |
- | }
| + | |
- | div.MenuBar ul {
| + | |
- | font: arial, helvetica, sans-serif;
| + | |
- | text-align: center;
| + | |
- | list-style-type: none;
| + | |
- | margin: 0.5em auto;
| + | |
- | border: 0;
| + | |
- | padding: 0;
| + | |
- | background: black;
| + | |
- | }
| + | |
- | div.MenuBar ul li {
| + | |
- | font: arial, helvetica, sans-serif;
| + | |
- | display: block;
| + | |
- | padding: 0;
| + | |
- | margin: 0;
| + | |
- | font-size: 1.3em;
| + | |
- | float: left;
| + | |
- | background: black;
| + | |
- | text-align: center;
| + | |
- | width: 107px;
| + | |
- | position: relative; /* Sets the positioning context for each drop-down menu. */
| + | |
| } | | } |
| | | |
- | div.MenuBar ul li a {
| + | /* Top menu items */ |
- | font: arial, helvetica, sans-serif;
| + | #nav ul { |
- | display: block;
| + | margin:0; |
- | background: black;
| + | padding:0; |
- | height: 22px; /* Keep height + padding-top + padding-bottom sync with the menu bar height. */
| + | padding-below: .5em; |
- | color: #ffffff;
| + | list-style:none; |
- | padding-top: 4px;
| + | float:right; |
- | padding-bottom: 4px;
| + | position:relative; |
- | padding-left: 1em; /* Sets the left space between top-level items. */
| + | right:50%; |
- | padding-right: 1em; /* Sets the right space between top-level items. */
| + | |
- | text-decoration: none;
| + | |
| } | | } |
- | | + | #nav ul li { |
- | /*------------------------------------------------------------------------------ Drop-Down Menus */
| + | margin:0 0 0 5px; |
- | div.MenuBar ul li:hover ul.DropDownMenu,
| + | padding:0; |
- | div.MenuBar ul li a:hover ul.DropDownMenu {
| + | float:left; |
- | display: block;
| + | position:relative; |
- | width: 12em; /* Drop-down menu width.
| + | left:50%; |
- | Use MenuTailor.css to customize. */
| + | top:1px; |
- | height: 1em;
| + | display: block; |
- | padding: 1px; /* Sets the drop-down menu "effective border" width. */
| + | |
- | position: absolute;
| + | |
- | top: 23px; /* Places the drop-down menu under the menu bar.
| + | |
- | Keep it sync with the menu bar height. */
| + | |
- | left: 0; /* Aligns the drop-down menu to its top-level item. */
| + | |
- | background-color: black; /* Selected item. */
| + | |
- | color: #FFFFFF;
| + | |
- | | + | |
| } | | } |
- | div.MenuBar ul li:hover ul.DropDownMenu li a,
| + | #nav ul li a { |
- | div.MenuBar ul li a:hover ul.DropDownMenu li a {
| + | display:block; |
- | width: 10em; /* Keep it sync with the drop-down menu width.
| + | margin:0; |
- | Use MenuTailor.css to customize. */
| + | /* padding: .8em; */ |
- | height: 1em;
| + | padding:.6em .5em .4em; |
- | padding-left: 0;
| + | /* font-size:1em; */ |
- | padding-right: 0;
| + | line-height:1em; |
- | background-color: black; /* Selected item. */
| + | /* background:#A9A9A9; |
- | color: #FFFFFF;
| + | text-decoration:none; |
| + | color:##E56717; |
| + | font-weight:bold; */ |
| + | background: #000000; |
| + | border-bottom:1px solid #000; |
| + | width: auto; |
| } | | } |
- | ul.DropDownMenu li a span { | + | #nav ul li.active a { |
- | display: block;
| + | color:#fff; |
- | padding-left: 0.75em; /* Sets the left space of each drop-down menu item. */
| + | background:#000; |
- | padding-right: 0.25em; /* Sets the right space of each drop-down menu item. */
| + | |
- | text-align: right; /* Aligns the >> symbol to the right. */
| + | |
| } | | } |
- | ul.DropDownMenu li a span span { | + | #nav ul li a:hover { |
- | float: left; /* Aligns the text (back) to the left. */
| + | background:#36f; /* Top menu items background colour */ |
- | font: 12px arial, helvetica, sans-serif; /* Required for IE55. */
| + | color:#fff; |
- | height: 20px;
| + | border-bottom:1px solid #03f; |
- | color: #FFFFFF;
| + | |
| } | | } |
- | /*----------------------------------------------------------------------------------- Side Menus */
| + | #nav ul li:hover a, |
- | div.MenuBar ul li:hover ul.DropDownMenu li:hover ul.SideMenu,
| + | #nav ul li.hover a { /* This line is required for IE 6 and below */ |
- | div.MenuBar ul li a:hover ul.DropDownMenu li a:hover ul.SideMenu {
| + | background:#36f; /* Top menu items background colour */ |
- | display: block;
| + | color:#fff; |
- | width: 10em; /* Side menu width.
| + | border-bottom:1px solid #03f; |
- | Use MenuTailor.css to customize. */
| + | |
- | padding: 1px; /* Sets the side menu "effective border" width. */
| + | |
- | position: absolute;
| + | |
- | top: -1px; /* Aligns the side menu to its drop-down menu item.
| + | |
- | Keep it sync with the side menu "effective border" width. */
| + | |
- | left: 13em; /* Places the side menu to the right of the drop-down menu.
| + | |
- | Keep it sync with the drop-down menu width.
| + | |
- | Use MenuTailor.css to customize. */
| + | |
| } | | } |
- | div.MenuBar ul li:hover ul.DropDownMenu li:hover ul.SideMenu li a,
| + | |
- | div.MenuBar ul li a:hover ul.DropDownMenu li a:hover ul.SideMenu li a {
| + | /* Submenu items */ |
- | width: 11em; /* Keep it sync with the side menu width.
| + | #nav ul ul { |
- | Use MenuTailor.css to customize. */
| + | display:none; /* Sub menus are hiden by default */ |
- | font: 12px arial, helvetica, sans-serif; /* Required for IE55. */
| + | position:absolute; |
- | left: 13em; /* Places the side menu to the right of the drop-down menu.
| + | top:2em; |
- | Keep it sync with the drop-down menu width.
| + | left:0; |
- | Use MenuTailor.css to customize. */
| + | right:auto; /*resets the right:50% on the parent ul */ |
| + | width:auto /* 10em */; /* width of the drop-down menus */ |
| } | | } |
- | div.MenuBar ul li ul.DropDownMenu li ul.SideMenu li a span {
| + | #nav ul ul li { |
- | padding-left: 1.5em; /* Sets the left space of each side menu item. */
| + | left:auto; /*resets the left:50% on the parent li */ |
- | padding-right: 0.5em; /* Sets the right space of each side menu item. */
| + | margin:0; /* Reset the 1px margin from the top menu */ |
- | text-align: left;
| + | clear:left; |
- | font: 12px arial, helvetica, sans-serif; /* Required for IE55. */
| + | width:100%; |
- | left: 13em; /* Places the side menu to the right of the drop-down menu.
| + | |
- | Keep it sync with the drop-down menu width.
| + | |
- | Use MenuTailor.css to customize. */
| + | |
| } | | } |
- | /*----------------------------------------------------------------------------- Browser Specific */ | + | #nav ul ul li a, |
- | * html div.MenuBar ul li a { | + | #nav ul li.active li a, |
- | float: left; /* Required for IE55 and IE6.
| + | #nav ul li:hover ul li a, |
- | Breaks O9.
| + | #nav ul li.hover ul li a { /* This line is required for IE 6 and below */ |
- | Hidden (* html) from non-IE browsers. */
| + | /*font-size:.8em; .8em; */ |
| + | font-weight:normal; /* resets the bold set for the top level menu items */ |
| + | background:#eee; |
| + | color:#444; |
| + | line-height:1.4em; /* overwrite line-height value from top menu */ |
| + | border-bottom:1px solid #ddd; /* sub menu item horizontal lines */ |
| } | | } |
- | * html ul.DropDownMenu li a:hover {
| + | #nav ul ul li a:hover, |
- | cursor: hand; /* Required for IE55.
| + | #nav ul li.active ul li a:hover, |
- | Hidden (* html) from non-IE browsers. */
| + | #nav ul li:hover ul li a:hover, |
- | }
| + | #nav ul li.hover ul li a:hover { /* This line is required for IE 6 and below */ |
- | ul.DropDownMenu li a:hover { | + | background:#36f; /* Sub menu items background colour */ |
- | cursor: pointer; /* Required for IE6 and IE7.
| + | color:#fff; |
- | Hidding it (* html) from non-IE browsers breaks IE7!
| + | |
- | }
| + | |
- | * html div.MenuBar a:hover {
| + | |
- | text-decoration: none; /* Required for IE55 and IE6.
| + | |
- | Hidden (* html) from non-IE browsers. */
| + | |
- | }
| + | |
- | * html div.MenuBar ul li table,
| + | |
- | * html div.MenuBar ul li table td {
| + | |
- | border: 0; /* Required for IE55 and IE6.
| + | |
- | Hidden (* html) from non-IE browsers. */
| + | |
- | }
| + | |
- | /*------------------------------------------------------------------------------- Default Colors */
| + | |
- | div.MenuBar {
| + | |
- | background-color: Menu;
| + | |
- | border-bottom: 1px solid ButtonShadow;
| + | |
- | }
| + | |
- | div.MenuBar a {
| + | |
- | background-color: Menu; /* Top-level unselected items. */
| + | |
- | color: MenuText;
| + | |
- | }
| + | |
- | div.MenuBar ul li:hover a,
| + | |
- | div.MenuBar ul li a:hover {
| + | |
- | color: #ea7f16;
| + | |
- | background-color: Highlight; /* Top-level selected item. */
| + | |
- | color: HighlightText;
| + | |
- | }
| + | |
- | /*...............................................................................................*/
| + | |
- | div.MenuBar ul li:hover ul.DropDownMenu,
| + | |
- | div.MenuBar ul li a:hover ul.DropDownMenu {
| + | |
- | background-color: ButtonShadow; /* Sets the drop-down menu "effective border" color. */
| + | |
- | }
| + | |
- | div.MenuBar ul li:hover ul.DropDownMenu li a,
| + | |
- | div.MenuBar ul li a:hover ul.DropDownMenu li a {
| + | |
- | background-color: Menu; Drop-down menu unselected items.
| + | |
- | Sets the drop-down menu "effective background" color. */
| + | |
- | color: MenuText;
| + | |
- | }
| + | |
- | div.MenuBar ul li:hover ul.DropDownMenu li:hover a,
| + | |
- | div.MenuBar ul li a:hover ul.DropDownMenu li a:hover {
| + | |
- | background-color: Highlight; /* Drop-down menu selected item. */
| + | |
- | color: HighlightText;
| + | |
- | }
| + | |
- | /*...............................................................................................*/
| + | |
- | div.MenuBar ul li:hover ul.DropDownMenu li:hover ul.SideMenu,
| + | |
- | div.MenuBar ul li a:hover ul.DropDownMenu li a:hover ul.SideMenu {
| + | |
- | background-color: ButtonShadow; /* Sets the side menu "effective border" color. */
| + | |
- | }
| + | |
- | div.MenuBar ul li:hover ul.DropDownMenu li:hover ul.SideMenu li a,
| + | |
- | div.MenuBar ul li a:hover ul.DropDownMenu li a:hover ul.SideMenu li a {
| + | |
- | background-color: Menu; /* Side menu unselected items.
| + | |
- | Sets the side menu "effective background" color. */
| + | |
- | color: MenuText;
| + | |
- | }
| + | |
- | div.MenuBar ul li:hover ul.DropDownMenu li:hover ul.SideMenu li a:hover,
| + | |
- | div.MenuBar ul li a:hover ul.DropDownMenu li a:hover ul.SideMenu li a:hover {
| + | |
- | background-color: Highlight; /* Side menu selected item. */
| + | |
- | color: HighlightText;
| + | |
- | }
| + | |
- | /*-----------------------------------------------------------------------------------------------*/
| + | |
- | /*Script-Free 3-Level Menu 1.2 Tailor
| + | |
- | www.CesarDaniel.info
| + | |
- | /*-------------------------------------------------------------------------------------- General */
| + | |
- | body {
| + | |
- | background: style="color:#bb4400";
| + | |
- | color: black;
| + | |
- | margin: 0;
| + | |
- | border: 0;
| + | |
- | padding: 0;
| + | |
| } | | } |
| | | |
- | | + | /* Flip the last submenu so it stays within the page */ |
- | div.MenuBar {
| + | #nav ul ul.last { |
- | font: 13px arial, helvetica, sans-serif;
| + | left:auto; /* reset left:0; value */ |
| + | right:0; /* Set right value instead */ |
| } | | } |
- | div.MenuBar ul {
| |
- | font: 13px arial, helvetica, sans-serif; /* Required for IE55. */
| |
- | }
| |
- | /*--------------------------------------------------------------------------------------- Colors */
| |
- | div.MenuBar {
| |
- | background-color: black; /* Selected item. */
| |
- | color: #FFFFFF;
| |
- | border-bottom: 1px solid ButtonShadow;
| |
- | }
| |
- | div.MenuBar a,
| |
- | div.MenuBar ul li:hover ul.DropDownMenu li a,
| |
- | div.MenuBar ul li a:hover ul.DropDownMenu li a,
| |
- | div.MenuBar ul li:hover ul.DropDownMenu li:hover ul.SideMenu li a,
| |
- | div.MenuBar ul li a:hover ul.DropDownMenu li a:hover ul.SideMenu li a {
| |
- | background-color: black; /* Selected item. */
| |
- | color: #FFFFFF;
| |
- | }
| |
- | div.MenuBar ul li:hover a,
| |
- | div.MenuBar ul li a:hover,
| |
- | div.MenuBar ul li:hover ul.DropDownMenu li:hover a,
| |
- | div.MenuBar ul li a:hover ul.DropDownMenu li a:hover,
| |
- | div.MenuBar ul li:hover ul.DropDownMenu li:hover ul.SideMenu li a:hover,
| |
- | div.MenuBar ul li a:hover ul.DropDownMenu li a:hover ul.SideMenu li a:hover {
| |
- | background-color: #00b0e6; /* Selected item. */
| |
- | color: #FFFFFF;
| |
- | }
| |
- | div.MenuBar ul li:hover ul.DropDownMenu,
| |
- | div.MenuBar ul li a:hover ul.DropDownMenu,
| |
- | div.MenuBar ul li:hover ul.DropDownMenu li:hover ul.SideMenu,
| |
- | div.MenuBar ul li a:hover ul.DropDownMenu li a:hover ul.SideMenu {
| |
- | background-color: ButtonShadow; /* Sets the drop-down and side menus "effective border" color. */
| |
- | }
| |
- | /*--------------------------------------------------------------------------------------- Widths */
| |
- | /*
| |
| | | |
- | /* | + | /* Make the sub menus appear on hover */ |
- | Menu Bar 1
| + | #nav ul li:hover ul, |
- | Drop-Down Menu #2
| + | #nav ul li.hover ul { /* This line is required for IE 6 and below */ |
- | */ | + | display:block; /* Show the sub menus */ |
- | div.MenuBar#navi ul li:hover ul.DropDownMenu#MB1-DDM4,
| + | |
- | div.MenuBar#navi ul li a:hover ul.DropDownMenu#MB1-DDM4,
| + | |
- | div.MenuBar#navi ul li:hover ul.DropDownMenu#MB1-DDM4 li a,
| + | |
- | div.MenuBar#navi ul li a:hover ul.DropDownMenu#MB1-DDM4 li a {
| + | |
- | width: 11em; /* Drop-down menu width. */
| + | |
- | }
| + | |
- | div.MenuBar#navi ul li:hover ul.DropDownMenu#MB1-DDM5,
| + | |
- | div.MenuBar#navi ul li a:hover ul.DropDownMenu#MB1-DDM5,
| + | |
- | div.MenuBar#navi ul li:hover ul.DropDownMenu#MB1-DDM5 li a,
| + | |
- | div.MenuBar#navi ul li a:hover ul.DropDownMenu#MB1-DDM5 li a {
| + | |
- | width: 12em; /* Drop-down menu width. */
| + | |
| } | | } |
| | | |
| </style> | | </style> |
- | </head>
| + | |
| </html> | | </html> |