Difference between revisions of "Template:Freiburg/CSS"

(Created page with "{{Template_All_Teams}} <!-- Declare that you are going to use html code instead of wiki code --> <html> <!-- Start of CSS--> <style type="text/css"> PAGE LAYOUT: ...")
 
Line 1: Line 1:
{{Template_All_Teams}}
 
 
<!-- Declare that you are going to use html code instead of wiki code -->
 
 
<html>
 
<html>
 +
<style>
 +
/* ============= Resetting css coming from wiki itself ============= */
 +
body {
 +
    font: sans-serif;
 +
    color: #000;
 +
    margin: 0px;
 +
    padding: 0px;
 +
    background-color: #AAA;
 +
line-height: 1.8;
 +
}
 +
 +
a {
 +
    color: #002BB8;
 +
    text-decoration: none;
 +
    background: transparent none repeat scroll 0% 0%;
 +
}
 +
 +
p {
 +
    margin: 0.4em 0px 0.5em;
 +
    line-height: 1.5em;
 +
}
 +
 +
#globalWrapper {
 +
    position: absolute;
 +
    font-size: 150%;
 +
    width: 100%;
 +
    margin: 0px;
 +
    padding: 0px 0px 0px;
 +
}
 +
 +
#mainContainer { 
 +
margin: 0;
 +
width: 100%;
 +
}
 +
 +
#top_menu_under {
 +
    position: relative;
 +
    width: 100%;
 +
    height: 16px;
 +
    border-bottom: 2px solid #000;
 +
}
  
<!-- Start of CSS-->
+
#top_menu_14 {
<style type="text/css">
+
    position: fixed;
 +
    width: 100%;
 +
    top: 0px;
 +
    left: 0px;
 +
    height: 16px;
 +
    background-color: #383838;
 +
    border-bottom: 2px solid #000;
 +
    z-index: 9999;
 +
}
  
/* PAGE LAYOUT */
 
 
/* page background color*/
 
body {
 
background-color: #A7A9AB;
 
}
 
  
 +
#top_menu_inside {
 +
    display: block;
 +
    position: relative;
 +
    width: 900px;
 +
    height: 100%;
 +
    margin: 0px auto;
 +
    padding: 0px 10px;
 +
    border-left: 1px solid #C8C8C8;
 +
    border-right: 1px solid #C8C8C8;
 +
    font-family: "arial",sans-serif;
 +
    font-size: 12px;
 +
    font-weight: 400;
 +
    color: #FFF;
 +
}
  
/* Creates a container that will wrap all of the content inside your wiki pages. */
 
#mainContainer { 
 
width: 980px;
 
overflow: hidden;
 
float:left;
 
margin-left: 20px;
 
background-color: #EEEDEA;
 
border-bottom: 6px solid #EE3e53;
 
}
 
  
/* Creates the container for the menu */
 
#menuContainer  {
 
float:right;
 
width: 150px;
 
background-color: #0e232f;
 
height: 100%;
 
border-top: 6px solid #EE3e53;
 
font-family: "Arial", Helvetica, sans-serif;
 
}
 
  
/* Creates the container for the content */
+
#content {
#contentContainer {
+
    position: relative;
background-color: #EEEDEA;  
+
    width: 100%;
width: 810px;
+
    margin: 0;
float: left;
+
    padding: 0;
padding: 10px;
+
    background: #FFF none repeat scroll 0% 0%;
border-top: 6px solid #EE3e53;
+
    color: #000;
}
+
    border-left: 0;
 +
    border-right: 0;
 +
  /* line-height: 0; */
 +
    z-index: 2;
  
  
/*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) */
+
.visualClear {
 +
    clear: both;
 +
}
  
  
/*Change the styling of text for everything inside main container*/
+
/* ============= END: Resetting css coming from wiki itself ============= */
#mainContainer p {
+
font-family: "Arial", Helvetica, sans-serif;
+
font-size: 12px;
+
color: #0e232f;
+
}
+
+
/*This changes the color and font family */
+
#contentContainer h1, h2, h3, h4, h5, h6 {
+
font-family: "Arial", Helvetica, sans-serif;
+
color: #0e232f;
+
border-bottom: none;
+
font-weight: bold;
+
text-transform: uppercase;
+
}
+
  
/*Style of the links - links are different inside the menu */
 
#contentContainer a {
 
font-weight: bold;
 
color: #ee3e53;
 
}
 
  
  /* Styling links on hover- links are different inside the menu */
+
/* ============= Declare Fonts for non-Windows machines ============= */
#contentContainer a:hover{
+
color: #f4b248;
+
}
+
  
/*Change the styling of tables */
 
        #contentContainer table {
 
    border: 1px solid #0e232f;
 
    border-collapse: collapse;
 
    width: 90%
 
    margin: auto;
 
    margin-bottom: 15px;
 
    margin-top: 15px;
 
    margin-right: 10px;
 
    margin-left: 10px;
 
    }
 
  
/*Change the styling of table cells*/
+
@font-face {
    #contentContainer  td {
+
    font-family: Candara;
    padding: 10px;
+
    src: url(https://static.igem.org/mediawiki/2015/6/6c/Freiburg_Candara.ttf) format('truetype');
    border: 1px solid #0e232f;
+
    border-collapse: collapse;
+
    vertical-align: text-top;
+
    background-color: #EEEDEA;
+
    }
+
  
/*Change the styling of table headers */
+
}
    #contentContainer th {
+
    padding: 10px;
+
    border: 1px solid #0e232f;
+
    border-collapse: collapse;
+
    vertical-align: text-top;
+
    background-color: #e8d5b7;
+
    }
+
  
 +
@font-face {
 +
    font-family: Candara;
 +
    src: url(https://static.igem.org/mediawiki/2015/8/89/Freiburg_Candarab.ttf)  format('truetype');
 +
    font-weight: bold;
 +
    font-style: normal;
 +
}
 +
@font-face {
 +
    font-family: Candara;
 +
    src: url(https://static.igem.org/mediawiki/2015/3/3e/Freiburg_Candarai.ttf)  format('truetype');
 +
  font-weight: normal;
 +
  font-style: italic;
 +
}
  
/*MENU STYLING */
+
/* ============= END: Declare Fonts for non-Windows machines  ============= */
  
/*Styling for the links in the menu */
 
#menuContainer a {
 
color: #EEEDEA;
 
text-decoration:none;
 
font-weight: bold;
 
}
 
  
/* Sets the style for lists inside menuContainer  */
 
#menuContainer ul {
 
width:100%;
 
list-style: none;
 
margin: auto;
 
padding-top: 10px;
 
padding-bottom: 10px;
 
  
}
+
/* ============= CSS for Menubar ============= */
  
/*Styles the list items to become menu buttons */
+
#menubar {
#menuContainer ul li {
+
    font-size: 16px;
display: block;
+
background-color: #5781bd;
position: relative;
+
display: table;
padding: 10px;
+
width: 100%;
margin-bottom:5px;
+
height: 70px;
padding-left: -20px;
+
border-collapse: collapse;
}
+
border: none;
  
#menuContainer ul li:hover {
+
}
background: #F4B248;
+
color: #0e232f;
+
}
+
  
 +
/*The sub (and subsubs) items of the menu*/
 +
#menubar ul li ul li{
 +
width: 200px;
 +
height: 30px;
 +
margin-top: 2px;
 +
}
 +
/*The first (horizontal) line of menu items*/
 +
#menubar > ul{
  
/*HIde the submenus and removes the padding */
+
position: relative;
#menuContainer li ul {
+
margin-top: 25;
display: none;
+
left: 50%;
padding-top:15px;
+
display: block;
margin-left: -9px;
+
transform: translate(-50%,0%);
}
+
}
  
/*Shows the submenus once you hover*/
+
#menubar ul ul {
#menuContainer li:hover ul {
+
background-color: #5781bd;
display: block;  
+
display: none;
}
+
position: absolute;
 +
margin-left: 0px;
 +
float: left;
 +
margin-top:0px;
 +
}
 +
#menubar ul ul li{
 +
display: block;
 +
margin-left: 0px;
 +
}
  
/*style the submenu buttons*/
+
#menubar ul li {
#menuContainer li ul li {
+
width: 100px;
background: #0E232F;
+
display: table-cell;
width: 100%;
+
font-family: "Candara","Arial";
}
+
}
  
#menuContainer li ul li:hover {
+
#menubar ul a{
background: #EE3E53;  
+
text-decoration: none;
color: #fff;
+
color: #FFFFFF;
}
+
font-style: bold;
 +
text-align: left;
 +
}
  
 +
#menubar ul a:visited{
 +
display: block;
 +
text-decoration: none;
 +
color: #FFFFFF;
 +
font-style: bold;
 +
}
 +
#menubar ul li:hover > ul{
 +
color: #EEEE00;
 +
display: block;
 +
padding-top: 0px;
 +
padding-left: 20px;
 +
}
 +
#menubar ul li:hover{
 +
color: #EEEE00;
 +
}
  
 +
/* ============= END: CSS for Menubar ============= */
  
/*CLASSES */
+
/* ============= Important Site setup ============= */
/*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: #E8D5B7;
 
    margin-bottom: 15px;
 
    margin-top: 15px;
 
    padding: 15px;
 
    padding-top: 5px;
 
          }
 
  
</style>
+
.content_background_wrapper{
<!-- End of CSS -->
+
  
 +
position: relative;
 +
background-color: #f9f9f9;
 +
overflow:hidden;
  
<!-- Start of the template html elements. -->
+
}
<div id ="mainContainer"><!--This div will close on the page.-->
+
.central_position_wrap{
 +
float: left;
 +
max-width: 1000px;
 +
    float: left;
 +
    position: relative;
 +
    left: 50%;
 +
}
  
<div id="bannerContainer">
+
.page_content{
<br><br>
+
display:block;
<h2> Add a banner to your wiki! </h2>
+
  float: left;
+
    position: relative;
<p>You can make the image 980px by  200px</p>
+
    left: -50%;
<p> Remember to call the file: "<i>Team_Example_banner.jpg</i>" </p>
+
}
</div>
+
  
<!-- Start of menu -->
+
/* ============= END: Important Site setup ============= */
<div id="menuContainer">
+
<!-- This list is your menu, every list item is a menu button and nested listed become submenu buttons -->
+
<ul>
+
<a href="https://2015.igem.org/Team:Freiburg"><li>HOME</li></a>
+
  
<a href="https://2015.igem.org/Team:Freiburg/Team"><li>TEAM</li></a>
 
  
  
<a href="#"><li>PROJECT
 
            <ul>
 
<a href="https://2015.igem.org/Team:Freiburg/Description"><li>Description</li></a>
 
<a href="https://2015.igem.org/Team:Freiburg/Experiments"><li>Experiments & Protocols</li></a> 
 
<a href="https://2015.igem.org/Team:Freiburg/Results"><li>Results</li></a> 
 
</ul>
 
</li></a>
 
  
<a href="#"><li>PARTS
 
            <ul>
 
<a href="https://2015.igem.org/Team:Freiburg/Parts"><li>Team Parts</li></a>
 
<a href="https://2015.igem.org/Team:Freiburg/Basic_Part"><li>Basic Parts</li></a> 
 
<a href="https://2015.igem.org/Team:Freiburg/Composite_Part"><li>Composite Parts</li></a>
 
<a href="https://2015.igem.org/Team:Freiburg/Part_Collection"><li>Part Collection</li></a> 
 
</ul>
 
</li></a>
 
  
<a href="https://2015.igem.org/Team:Freiburg/Notebook"><li>NOTEBOOK</li></a>
 
     
 
<a href="https://2015.igem.org/Team:Freiburg/Attributions"><li>ATTRIBUTIONS</li></a>
 
  
<a href="https://2015.igem.org/Team:Freiburg/Collaborations"><li>COLLABORATIONS</li></a>
 
  
<a href="https://2015.igem.org/Team:Freiburg/Practices"><li>HUMAN PRACTICES</li></a>
+
/* ============= Text Styling ============= */
  
<a href="https://2015.igem.org/Team:Freiburg/Safety"><li>SAFETY</li></a>
+
.page_content{
 +
color: #757575;
 +
font-family: "Candara", "Arial";
 +
font-style: normal;
 +
font-size: 16px;
 +
line-height: 1.8;
 +
}
  
<a href="https://2015.igem.org/Team:Freiburg/Modeling"><li>MODELING</li></a>
+
/* ============= END: Headline Styling ============= */
 +
h1, h2, h3{
 +
color: #c1002a;
 +
}
  
<a href="https://2015.igem.org/Team:Freiburg/Measurement"><li>MEASUREMENT</li></a>
 
  
<a href="https://2015.igem.org/Team:Freiburg/Software"><li>SOFTWARE</li></a>
 
  
<a href="https://2015.igem.org/Team:Freiburg/Entrepreneurship"><li>ENTREPRENEURSHIP</li></a>
+
/* ============= Full Width Banners  ============= */
 +
#banner_home{
 +
margin:0;
 +
padding: 0px;
 +
background-image: url("../wiki/images/8/89/Freiburg_frontpage_banner.jpg");
 +
background-repeat: no-repeat;
 +
background-size:  cover;
 +
width: 100%;
 +
height: 400px;
 +
}
 +
#banner_team{
 +
margin:0;
 +
padding: 0px;
 +
background-image: url("../wiki/images/e/e7/FreiburgTeam2015.jpg");
 +
background-repeat: no-repeat;
 +
background-size:  cover;
 +
width: 100%;
 +
height: 400px;
 +
}
 +
#banner_labjournal{
 +
margin:0;
 +
padding: 0px;
 +
background-image: url("https://static.igem.org/mediawiki/2015/d/dc/Labjournal.jpg");
 +
background-repeat: no-repeat;
 +
background-size:  cover;
 +
width: 100%;
 +
height: 400px;
 +
}
  
</ul>
+
/* ============= END: Full Width Banners ============= */
</div>
+
<!-- End of menu -->
+
  
<!-- Start of content -->
+
</style>
<div id="contentContainer"><!--This div will close on the page.-->
+
 
</html>
 
</html>

Revision as of 15:54, 16 August 2015