Difference between revisions of "Template:UiOslo Norway"
Danmichaelo (Talk | contribs) (cleanup table syntax and spacing) |
|||
Line 4: | Line 4: | ||
<html> | <html> | ||
− | + | <!-- Start of CSS--> | |
− | + | <style type="text/css"> | |
− | + | /* PAGE LAYOUT */ | |
− | + | /* Change Background color*/ | |
− | + | body { | |
− | + | background-color: #fff; | |
− | + | } | |
− | + | /* Creates a container that will wrap all of the content inside your wiki pages. */ | |
− | + | #mainContainer { | |
− | + | width: 978px; | |
− | + | overflow:hidden; | |
− | + | float:left; | |
− | + | margin-left:20px; | |
− | + | margin-bottom: 10px; | |
− | + | background-color: #fff; | |
− | + | border-bottom: 14px solid #472400; | |
− | + | border-right: 2px solid #472400; | |
− | + | border-left: 2px solid #472400; | |
− | + | border-top: 2px solid #472400; | |
− | + | font-family: Helvetica, sans-serif; | |
− | + | } | |
− | + | /* Creates the container for the menu */ | |
− | + | #menuContainer { | |
− | + | float:left; | |
− | + | width: 100%; | |
− | + | padding: 20px 0px; | |
− | + | border-top: 14px solid #472400; | |
− | + | background-color: #999966; | |
− | + | } | |
− | + | /* Creates the container for the content */ | |
− | + | #contentContainer { | |
− | + | padding-top:20px; | |
− | + | padding-right:10px; | |
− | + | margin-bottom: 20px; | |
− | + | width: 814px; | |
− | + | padding-left: 20px; | |
− | + | float: left; | |
− | + | background-color: #fff; | |
− | + | border-top: 14px solid #472400; | |
− | + | font-family: "Comic Sans", Helvetica, sans-serif; | |
− | + | } | |
− | + | /*Set up height place holder for the banner*/ | |
− | + | #bannerContainer { | |
− | + | height:200px; | |
− | + | margin:auto; | |
− | + | text-align:center; | |
− | + | color: #24B694; | |
− | + | } | |
− | + | /*VISUAL STYLE (TABLES, FONTS, LINKS, IMAGES, UL) */ | |
− | + | /*Change the styling of text for everything inside main container*/ | |
− | + | #mainContainer p { | |
− | + | font-size: 15px; | |
− | + | line-height:20px; | |
− | + | color: #000000; | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | sup, sub { | |
− | + | vertical-align: baseline; | |
− | + | position: relative; | |
− | + | top: -0.4em; | |
− | + | } | |
+ | sub { top: 0.4em; } | ||
− | + | /*This changes the color and font family */ | |
− | + | #contentContainer h1, h2, h3, h4, h5, h6 { | |
− | + | color: #472400; | |
− | + | border-bottom: none; | |
+ | font-weight: bold; | ||
+ | font-family: "Comic Sans", Helvetica, sans-serif; | ||
+ | margin-top:10px; | ||
+ | } | ||
− | + | /*Style of the links - links are different inside the menu */ | |
− | + | #contentContainer a { | |
− | + | font-weight: bold; | |
− | + | color: #164016; | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | /* Styling links on hover- links are different inside the menu */ | |
− | + | #contentContainer a:hover { | |
− | + | color: #59bf92; | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | /*Change the styling of tables */ | |
− | + | #contentContainer table { | |
− | + | border: 2px solid #472400; | |
− | + | border-collapse: collapse; | |
− | + | width: 90% | |
− | + | margin: auto; | |
− | + | margin-bottom: 15px; | |
− | + | margin-top: 15px; | |
− | + | margin-right: 10px; | |
+ | margin-left: 10px; | ||
+ | font-family: "Comic Sans", Helvetica, sans-serif; | ||
+ | } | ||
− | + | /*Change the styling of table cells*/ | |
− | + | #contentContainer td { | |
− | + | padding: 10px; | |
− | + | border: 2px solid #472400; | |
− | + | border-collapse: collapse; | |
− | + | vertical-align: text-top; | |
− | + | font-family: "Comic Sans", Helvetica, sans-serif; | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
+ | /*Change the styling of table headers */ | ||
+ | #contentContainer th { | ||
+ | background-color: #999966; | ||
+ | padding: 10px; | ||
+ | border: 1px solid #472400; | ||
+ | border-collapse: collapse; | ||
+ | vertical-align: text-top; | ||
+ | font-family: "Comic Sans", Helvetica, sans-serif; | ||
+ | } | ||
+ | table, th, td { | ||
+ | border: 2px solid #472400; | ||
+ | border-collapse: collapse; | ||
+ | font-family: "Comic Sans", Helvetica, sans-serif; | ||
+ | } | ||
+ | th, td { | ||
+ | padding: 5px; | ||
+ | text-align: left; | ||
+ | font-family: "Comic Sans", Helvetica, sans-serif; | ||
+ | } | ||
+ | table#t01 tr:nth-child(even) { | ||
+ | background-color: #eee; | ||
+ | } | ||
+ | table#t01 tr:nth-child(odd) { | ||
+ | background-color:#999966; | ||
+ | } | ||
+ | table#t01 th { | ||
+ | background-color: #472400; | ||
+ | color: white; | ||
+ | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | /*MENU STYLING */ | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | /*Styling for the links in the menu */ | |
− | + | #menuContainer a { | |
− | + | color: #472400; | |
− | + | text-decoration:none; | |
− | + | font-weight: bold; | |
+ | } | ||
+ | |||
+ | /* Sets the style for lists inside menuContainer */ | ||
+ | #menuContainer ul { | ||
+ | list-style: none; | ||
+ | margin-left:0px; | ||
+ | } | ||
+ | |||
+ | /*Styles the list items to become menu buttons */ | ||
+ | #menuContainer ul li { | ||
+ | text-align: center; | ||
+ | display: inline; | ||
+ | border-color: darkgreen; | ||
border-style: ridge; | border-style: ridge; | ||
border-width: medium; | border-width: medium; | ||
− | + | height:30px; | |
− | + | padding:10px; | |
− | + | } | |
− | + | /*For the menu buttons, changes the color when hovering*/ | |
− | + | #menuContainer li:hover { | |
− | + | color: #FFF; | |
− | + | background-color: #164016; | |
− | + | } | |
− | + | /*Submenus are not displayed as default*/ | |
− | + | #menuContainer li ul { | |
− | + | display: none; | |
− | + | padding-top:15px; | |
− | + | margin-left: -19px; | |
− | + | } | |
− | + | /*Submenus are displayed when hovering the menu button */ | |
− | + | #menuContainer li:hover ul { | |
− | + | /*display: inline-block; */ | |
− | + | display: block; | |
− | + | position: absolute; | |
− | + | float:right; | |
− | + | margin-left: 100px; | |
− | + | margin-top: 0px; | |
− | + | color: #F0EBE6; | |
− | + | } | |
− | + | /*Style the submenu buttons*/ | |
− | + | #menuContainer li ul li{ | |
− | + | background-color: #143A14; | |
− | + | padding-left:20px; | |
− | + | padding-right:20px; | |
− | + | height:30px; | |
− | + | padding-top:10px; | |
− | + | margin-top:-2px; | |
− | + | color: #F0EBE6; | |
− | + | width: 150px; | |
− | + | } | |
− | + | /*CLASSES */ | |
− | + | /*Clear class for all the pages, adds spacing too*/ | |
− | + | .clear{ | |
− | + | clear:both; | |
− | + | height: 10px; | |
− | + | } | |
− | + | /* highlight box for special messages */ | |
− | + | .highlightBox { | |
− | + | width:500px; | |
− | + | margin:auto; | |
− | + | background-color: #999966; | |
− | + | margin-bottom: 15px; | |
− | + | margin-top: 15px; | |
− | + | padding: 15px; | |
− | + | padding-top: 5px; | |
− | + | } | |
− | + | /* TEST FOR TOOLTIP on HOVER */ | |
− | + | a.tooltip {outline:none; background-color: #F2F0EB; color: black;padding: 3px 5px 3px 5px;} | |
− | + | a.tooltip strong {line-height:30px;} | |
− | + | a.tooltip:hover {text-decoration:none;} | |
− | + | a.tooltip span { | |
− | + | z-index:10;display:none; padding:14px 20px; | |
− | + | margin-top:-30px; margin-left:28px; | |
− | + | width:300px; line-height:16px; | |
− | + | } | |
− | + | a.tooltip:hover span{ | |
− | + | display:inline; position:absolute; color:#111; | |
− | + | border:1px solid #DCA; background:#fffAF0;} | |
− | + | .callout {z-index:20;position:absolute;top:30px;border:0;left:-12px;} | |
− | + | /* TEST FOR Home project illustration on HOVER */ | |
− | + | ||
Line 267: | Line 267: | ||
− | + | </style> | |
− | + | <!-- End of CSS --> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | + | <!-- Start of the template html elements. --> | |
+ | <div id ="mainContainer"><!--The closing tag for mainContainer should be placed at the bottom of each content page.--> | ||
− | |||
− | + | <div id="bannerContainer"> | |
− | + | <img src="https://static.igem.org/mediawiki/2015/1/1f/Team_UiOslo_Norway_banner.jpg" > | |
+ | </div> | ||
− | + | <!-- Start of menu --> | |
− | + | <div id="menuContainer"> | |
− | + | <!-- This list is your menu, every list item is a menu button and nested listed become submenu buttons --> | |
− | + | <ul> | |
− | + | <li> | |
− | + | <a href="https://2015.igem.org/Team:UiOslo_Norway">HOME</a> | |
− | + | </li> | |
− | + | ||
− | + | <li> | |
− | + | <a href="#">PROJECT</a> | |
+ | <ul> | ||
+ | <li><a href="https://2015.igem.org/Team:UiOslo_Norway/Description">Description</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:UiOslo_Norway/Experiments">Experiments & Protocols</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:UiOslo_Norway/Results">Results</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:UiOslo_Norway/Design">Design</a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a href="#">Team</a> | ||
+ | <ul> | ||
+ | <li><a href="https://2015.igem.org/Team:UiOslo_Norway/Team">Team</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:UiOslo_Norway/Attributions">Attributions</a></li> | ||
+ | </ul> | ||
+ | </li> | ||
− | + | <li> | |
− | + | <a href="#">NOTEBOOK</a> | |
− | + | <ul> | |
+ | <li><a href="https://2015.igem.org/Team:UiOslo_Norway/Notebook">Notebook</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:UiOslo_Norway/Modeling">Modeling</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:UiOslo_Norway/Measurement">Measurement</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:UiOslo_Norway/Software">Software</a></li> | ||
+ | </ul> | ||
+ | </li> | ||
− | + | <li> | |
− | + | <a href="#">PARTS</a> | |
+ | <ul> | ||
+ | <li><a href="https://2015.igem.org/Team:UiOslo_Norway/Parts">Team Parts</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:UiOslo_Norway/Basic_Part">Basic Parts</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:UiOslo_Norway/Composite_Part">Composite Parts</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:UiOslo_Norway/Part_Collection">Part Collection</a></li> | ||
+ | </ul> | ||
+ | </li> | ||
− | + | <li> | |
+ | <a href="#">HUMAN PRACTICES</a> | ||
+ | <ul> | ||
+ | <li><a href="https://2015.igem.org/Team:UiOslo_Norway/Practices">HUMAN PRACTICES</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:UiOslo_Norway/Collaborations">COLLABORATIONS</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:UiOslo_Norway/Entrepreneurship">ENTREPRENEURSHIP</a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li><a href="https://2015.igem.org/Team:UiOslo_Norway/Safety">SAFETY</a></li> | ||
− | + | </ul> | |
− | + | </div> | |
− | + | <!-- End of menu --> | |
− | + | <!-- Start of content --> | |
− | + | <div id="contentContainer"> <!--The closing tag for contentContainer should be placed at the bottom of each content page.--> | |
</html> | </html> |
Revision as of 17:26, 20 August 2015