Difference between revisions of "Template:UiOslo Norway"
(196 intermediate revisions by 4 users not shown) | |||
Line 4: | Line 4: | ||
<html> | <html> | ||
− | + | <!-- Start of CSS--> | |
− | + | <style type="text/css"> | |
− | + | body, html, #globalWrapper, #content{ | |
+ | background-image: url(https://static.igem.org/mediawiki/2015/6/67/UiOslo_background3.jpeg); | ||
+ | border: none; | ||
+ | width: 100%; | ||
+ | margin: 0px; | ||
+ | padding: 0px; | ||
+ | } | ||
− | + | /* PAGE LAYOUT */ | |
− | + | ||
− | + | ||
− | + | ||
− | + | /* Change Background color*/ | |
− | + | body { | |
− | + | background-color: #e9f8f4; | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | /* Outer container */ | |
− | + | #bodyContent { | |
− | + | display: block; | |
− | + | padding: 10px; | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | /* Inner container */ | |
− | + | #mainContainer { | |
− | + | display: block; | |
− | + | background-color: #e9f8f4; | |
− | + | width: 900px; | |
− | + | margin-left: auto; | |
− | + | margin-right: auto; | |
− | + | font-family: Helvetica, sans-serif; | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | /* Creates the container for the menu */ | |
− | + | #menuOuterContainer { | |
− | + | display: block; | |
− | + | position:relative; | |
− | + | padding: 20px 0px; | |
− | + | border-top: 14px solid #092332; | |
− | + | background-color: #50C9AA; | |
+ | } | ||
− | + | #menuContainer { | |
+ | background: #000; | ||
+ | } | ||
+ | #menuContainer:after { | ||
+ | content: ""; clear: both; display: block; | ||
+ | } | ||
+ | /* Creates the container for the content */ | ||
+ | #contentContainer { | ||
+ | padding-top:20px; | ||
+ | padding-right:10px; | ||
+ | margin-bottom: 20px; | ||
+ | padding-left: 20px; | ||
+ | background-color: #e9f8f4; | ||
+ | border-top: 14px solid #092332; | ||
+ | font-family: "Comic Sans", Helvetica, sans-serif; | ||
+ | } | ||
− | + | /*Set up height place holder for the banner*/ | |
− | + | #bannerContainer { | |
− | + | margin:auto; | |
− | + | text-align:center; | |
− | + | color: #24B694; | |
− | + | background-color: black; | |
− | + | } | |
− | + | #bannerContainer img { | |
− | + | max-width: 100%; | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | /*VISUAL STYLE (TABLES, FONTS, LINKS, IMAGES, UL) */ | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | /*Change the styling of text for everything inside main container*/ | |
− | + | #mainContainer p { | |
− | + | font-size: 16px; | |
− | + | line-height:21px; | |
+ | 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: #800000; | |
− | + | line-height: normal; | |
− | + | 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 #092332; | ||
+ | border-collapse: collapse; | ||
+ | vertical-align: text-top; | ||
+ | font-family: "Comic Sans", Helvetica, sans-serif; | ||
+ | } | ||
− | + | /*Change the styling of table headers */ | |
− | + | #contentContainer th { | |
− | + | background-color: #092332; | |
− | + | padding: 10px; | |
− | + | border: 1px solid #092332; | |
− | + | border-collapse: collapse; | |
+ | vertical-align: text-top; | ||
+ | font-family: "Comic Sans", Helvetica, sans-serif; | ||
+ | } | ||
− | + | table, th, td { | |
− | + | border: 2px solid #092332; | |
− | + | 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:#50C9AA; | ||
+ | } | ||
+ | table#t01 th { | ||
+ | background-color: #092332; | ||
+ | color: white; | ||
+ | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | /*MENU STYLING */ | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | /*Styling for the links in the menu */ | |
− | + | #menuContainer a { | |
− | + | color: #FFF; | |
− | + | 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 { | ||
+ | float:left; | ||
+ | width: 13% ; | ||
+ | } | ||
+ | #menuContainer li a { | ||
+ | text-align: center; | ||
+ | color: #FFF; | ||
+ | background-color: black; | ||
+ | text-decoration:none; | ||
+ | font-weight: bold; | ||
+ | display: block; | ||
+ | padding: 10px; | ||
+ | } | ||
− | + | /* Submenu elements */ | |
− | + | #menuContainer ul li li { | |
− | + | text-align: center; | |
− | + | display: block; | |
− | + | } | |
− | + | /*For the menu buttons, changes the color when hovering*/ | |
− | + | #menuContainer li:hover { | |
− | + | background-color: #50C9AA; | |
− | + | } | |
− | + | #menuContainer li:hover > a { | |
− | + | color: #50C9AA; | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
+ | /*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; | ||
+ | z-index: 2; | ||
+ | margin: 0; | ||
+ | padding: 0; | ||
+ | color: #F0EBE6; | ||
+ | } | ||
+ | /*Style the submenu buttons*/ | ||
+ | #menuContainer li ul li { | ||
+ | background-color: black; | ||
+ | color: #F0EBE6; | ||
+ | width: 150px; | ||
+ | margin-top:-2px; | ||
+ | } | ||
− | + | /*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: #4ca38c; | ||
+ | color: white; | ||
+ | margin-bottom: 15px; | ||
+ | margin-top: 15px; | ||
+ | padding: 15px; | ||
+ | padding-top: 5px; | ||
− | + | } | |
− | + | ||
− | + | ||
− | + | /* TEST FOR TOOLTIP on HOVER */ | |
+ | a.tooltip {outline:none; background-color: #F8E9ED; 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 */ | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | + | /*Custom CSS*/ | |
+ | .person-box { | ||
+ | margin:auto; | ||
+ | width:90%; | ||
+ | background-color: #4ca38c; | ||
+ | border-radius: 20px; | ||
+ | padding: 20px; | ||
+ | } | ||
− | + | .person-box1 { | |
+ | float: left; | ||
+ | margin:20px; | ||
+ | |||
+ | background-color: #4ca38c; | ||
+ | border-radius: 20px; | ||
+ | padding: 20px; | ||
+ | } | ||
− | + | .person-box2 { | |
+ | float: right; | ||
+ | margin:20px; | ||
+ | width:45%; | ||
+ | background-color: #4ca38c; | ||
+ | border-radius: 20px; | ||
+ | padding: 20px; | ||
+ | } | ||
− | |||
− | + | .img-25 img { | |
+ | max-width: 25%; | ||
+ | } | ||
− | + | .img-75 img { | |
+ | max-width: 75%; | ||
+ | } | ||
− | + | </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="menuOuterContainer"> | ||
+ | <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/Results">Results</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:UiOslo_Norway/Achievements">Achievements</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> | ||
+ | <li><a href="https://2015.igem.org/Team:UiOslo_Norway/Acknowledgement">Acknowledgement</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/Experiments">Experiments & Protocols</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> | ||
+ | </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> | ||
+ | </ul> | ||
+ | </li> | ||
+ | |||
+ | <li><a href="https://2015.igem.org/Team:UiOslo_Norway/Safety">SAFETY</a></li> | ||
+ | |||
+ | </ul> | ||
+ | </div> | ||
+ | </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> |
Latest revision as of 06:42, 17 September 2015