Difference between revisions of "Template:Example2"
Line 2: | Line 2: | ||
<html> | <html> | ||
− | |||
− | <style type="text/css"> | + | <!-- This part of the code sets the styling of the webpage, you can modify as you please. --> |
+ | <style type="text/css"> | ||
− | /* | + | /* WIKI SETTINGS*/ |
− | + | /* Remove footer, catlinks and logos */ | |
#contentSub, #footer-box, #catlinks, #search-controls, #p-logo, .printfooter, .visualClear, .firstHeading { | #contentSub, #footer-box, #catlinks, #search-controls, #p-logo, .printfooter, .visualClear, .firstHeading { | ||
display: none; | display: none; | ||
} | } | ||
− | + | /* Set up a width, height and color of the body wrapper*/ | |
− | + | ||
body { | body { | ||
width: 100%; | width: 100%; | ||
Line 21: | Line 20: | ||
} | } | ||
− | + | /*-- Make page full width and remove borders */ | |
#globalWrapper, #content { | #globalWrapper, #content { | ||
width: 100%; | width: 100%; | ||
Line 31: | Line 30: | ||
} | } | ||
− | + | /*Clear wiki default settings for the top part of the wiki page */ | |
#top-section { | #top-section { | ||
border: 0 none; | border: 0 none; | ||
Line 42: | Line 41: | ||
} | } | ||
− | #top_menu_inside { | + | /*left align Black Menu Bar */ |
− | + | #top_menu_inside { | |
+ | margin-left: 20px; | ||
} | } | ||
+ | /* PAGE LAYOUT */ | ||
− | + | /* Creates a container that will wrap all of the content inside your wiki pages. */ | |
− | + | ||
− | + | ||
#mainContainer { | #mainContainer { | ||
width: 978px; | width: 978px; | ||
Line 66: | Line 65: | ||
} | } | ||
− | + | /* Creates the container for the menu */ | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
#menuContainer { | #menuContainer { | ||
float:left; | float:left; | ||
Line 83: | Line 74: | ||
} | } | ||
− | + | /* Creates the container for the content */ | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
#contentContainer { | #contentContainer { | ||
padding-top:20px; | padding-top:20px; | ||
Line 153: | Line 86: | ||
font-family: "Trebuchet MS", Helvetica, sans-serif; | font-family: "Trebuchet MS", Helvetica, sans-serif; | ||
} | } | ||
+ | |||
+ | /*VISUAL STYLE (TABLES, FONTS, LINKS, IMAGES, UL) */ | ||
+ | |||
+ | /*Change the styling of text for everything inside main container*/ | ||
+ | #mainContainer p { | ||
+ | font-size: 13px; | ||
+ | color: #000000; | ||
+ | } | ||
+ | |||
− | + | /*This changes the color and font family */ | |
#contentContainer h1, h2, h3, h4, h5, h6 { | #contentContainer h1, h2, h3, h4, h5, h6 { | ||
color: #565656; | color: #565656; | ||
Line 163: | Line 105: | ||
} | } | ||
− | + | /*Style of the links - links are different inside the menu */ | |
#contentContainer a { | #contentContainer a { | ||
font-weight: bold; | font-weight: bold; | ||
Line 169: | Line 111: | ||
} | } | ||
− | + | /* Styling links on hover- links are different inside the menu */ | |
#contentContainer a:hover { | #contentContainer a:hover { | ||
color: #59bf92; | color: #59bf92; | ||
} | } | ||
− | + | /*Change the styling of tables */ | |
#contentContainer table { | #contentContainer table { | ||
border: 1px solid #565656; | border: 1px solid #565656; | ||
Line 186: | Line 128: | ||
} | } | ||
− | + | /*Change the styling of table cells*/ | |
#contentContainer td { | #contentContainer td { | ||
padding: 10px; | padding: 10px; | ||
Line 194: | Line 136: | ||
} | } | ||
− | + | /*Change the styling of table headers */ | |
#contentContainer th { | #contentContainer th { | ||
background-color: #E8E8E9; | background-color: #E8E8E9; | ||
Line 203: | Line 145: | ||
} | } | ||
− | + | ||
+ | |||
+ | /*MENU STYLING */ | ||
+ | |||
+ | /*Styling for the links in the menu */ | ||
+ | #menuContainer a { | ||
+ | color: #565656; | ||
+ | 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: block; | ||
+ | width: 100%; | ||
+ | height:30px; | ||
+ | padding-top:10px; | ||
+ | } | ||
+ | |||
+ | /*For the menu buttons, changes the color when hovering*/ | ||
+ | #menuContainer li:hover { | ||
+ | color: #FFF; | ||
+ | background-color: #24B694; | ||
+ | } | ||
+ | |||
+ | /*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: 134px; | ||
+ | margin-top:-42px; | ||
+ | } | ||
+ | |||
+ | /*Style the submenu buttons*/ | ||
+ | #menuContainer li ul li{ | ||
+ | background-color: #59BF92; | ||
+ | padding-left:20px; | ||
+ | padding-right:20px; | ||
+ | height:30px; | ||
+ | padding-top:10px; | ||
+ | margin-top:-2px; | ||
+ | color: #565656; | ||
+ | } | ||
+ | |||
+ | /*CLASSES */ | ||
+ | |||
+ | /*Clear class for all the pages, adds spacing too*/ | ||
+ | .clear{ | ||
+ | clear:both; | ||
+ | height: 10px; | ||
+ | } | ||
+ | |||
+ | |||
+ | /* highlight box for special messages */ | ||
.highlightBox { | .highlightBox { | ||
width:500px; | width:500px; | ||
Line 214: | Line 225: | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
</style> | </style> | ||
Line 224: | Line 231: | ||
− | + | <div id ="mainContainer"> | |
− | <img src="https://static.igem.org/mediawiki/2015/3/3b/Banner_templateA.jpg"> | + | |
+ | <img src="https://static.igem.org/mediawiki/2015/3/3b/Banner_templateA.jpg"> | ||
<div id="menuContainer"> | <div id="menuContainer"> | ||
Line 232: | Line 240: | ||
<a href="https://2015.igem.org/Team:Example2/Team"><li>TEAM</li></a> | <a href="https://2015.igem.org/Team:Example2/Team"><li>TEAM</li></a> | ||
− | |||
<a href="#"><li>PROJECT | <a href="#"><li>PROJECT |
Revision as of 16:43, 13 March 2015