Team:Groningen/CSS2

From 2013.igem.org

(Difference between revisions)
Line 1: Line 1:
-
#container
+
/*Splitting into two columns*/
-
{
+
-
margin: 0 auto;
+
-
width: 1000px;
+
-
background: #fff;
+
-
}
+
-
#header
+
#content-body {
-
{
+
  margin-right: 10cm;
-
background: #ccc;
+
  position: relative;
-
padding: 20px;
+
}
}
-
 
+
#navbar {
-
#header h1 { margin: 0; }
+
  float: left;
-
 
+
-
#navigation
+
-
{
+
-
float: left;
+
-
width: 1000px;
+
-
background: #333;
+
}
}
-
#navigation ul
 
-
{
 
-
margin: 0;
 
-
padding: 0;
 
-
}
 
-
#navigation ul li
+
/*Suppress iGEM defaults from iGEM 2012 Groningen*/
-
{
+
a[title="Main Page"]{display: none;}
-
list-style-type: none;
+
.firstHeading{display: none;}
-
display: inline;
+
.noprint{display: none;}
-
}
+
#menubar{
-
 
+
-
#navigation li a
+
-
{
+
display: block;
display: block;
-
float: left;
+
background-color:transparent;
-
padding: 5px 10px;
+
-
color: #fff;
+
-
text-decoration: none;
+
-
border-right: 1px solid #fff;
+
}
}
-
 
+
#top-section {
-
#navigation li a:hover { background: #383; }
+
    position: relative;
-
 
+
    height: 98px;
-
#content-container
+
    width: 90%;
-
{
+
#   margin-left: 10px;
-
float: left;
+
margin: 0 auto 0 auto;
-
width: 1000px;
+
    border-left: 1px solid #444444;
-
background: #fff url(/wp-content/uploads/layout-three-fixed-background.gif) repeat-y 100% 0;
+
    border-right: 1px solid #444444;
 +
    border-bottom: 1px solid #444444;
}
}
-
#section-navigation
+
#content {
-
{
+
    position: relative;
-
float: left;
+
    width: 90%;
-
width: 250px;
+
#    margin-left: 10px;
-
padding: 20px 0;
+
margin: 0 auto;
-
margin: 0 20px;
+
    padding: 5px 5px 5px 5px;;
-
display: inline;
+
    background: white;
 +
    color: black;
 +
    border-left: 1px solid #444444;
 +
    border-right: 1px solid #444444;
 +
    line-height: 1.5em;
 +
    z-index: 2;
}
}
-
#section-navigation ul
+
#search-controls{display: none;}
-
{
+
#contentSub{display: none;}
-
margin: 0;
+
#catlinks{display: none;}
-
padding: 0;
+
#footer-box{display: none;}
-
}
+
#p-logo{display: block;}
 +
/* Remove comments to remove links towards accounts etc */
 +
/*#top-section {
 +
display: block;
 +
position: relative;
 +
height: 98px;
 +
width: 975px;
 +
margin: -20px auto;
 +
TODO put correct colours here!
 +
border-left: 1px solid rgb(118,28,17);
 +
border-right: 1px solid rgb(118,28,17);
 +
border-bottom: 1px solid rgb(118,28,17);
 +
}*/
-
#section-navigation ul li
+
<!-- Remove all empty <p> tags -->
-
{
+
<script type="text/javascript">
-
margin: 0 0 1em;
+
    $(document).ready(function() {
-
padding: 0;
+
        $("p").filter( function() {
-
list-style-type: none;
+
            return $.trim($(this).html()) == '';
-
}
+
        }).remove()
-
 
+
    });
-
#content
+
</script>
-
{
+
-
float: left;
+
-
width: 500px;
+
-
padding: 20px 0;
+
-
margin: 0 0 0 30px;
+
-
}
+
-
 
+
-
#content h2 { margin: 0; }
+
-
 
+
-
#aside
+
-
{
+
-
float: right;
+
-
width: 200px;
+
-
padding: 20px 0;
+
-
margin: 0 20px 0 0;
+
-
display: inline;
+
-
}
+
-
 
+
-
#aside h3 { margin: 0; }
+
-
 
+
-
#footer
+
-
{
+
-
clear: left;
+
-
background: #ccc;
+
-
text-align: right;
+
-
padding: 20px;
+
-
height: 1%;
+
-
}
+

Revision as of 19:25, 16 July 2013

/*Splitting into two columns*/

  1. content-body {
 margin-right:  10cm;
 position: relative;

}

  1. navbar {
 float: left;

}


/*Suppress iGEM defaults from iGEM 2012 Groningen*/ a[title="Main Page"]{display: none;} .firstHeading{display: none;} .noprint{display: none;}

  1. menubar{

display: block; background-color:transparent; }

  1. top-section {
   position: relative;
   height: 98px;
   width: 90%;
  1. margin-left: 10px;

margin: 0 auto 0 auto;

   border-left: 1px solid #444444;
   border-right: 1px solid #444444;
   border-bottom: 1px solid #444444;

}

  1. content {
   position: relative;
   width:  90%;
  1. margin-left: 10px;

margin: 0 auto;

   padding: 5px 5px 5px 5px;;
   background: white;
   color: black;
   border-left: 1px solid #444444;
   border-right: 1px solid #444444;
   line-height: 1.5em;
   z-index: 2;

}

  1. search-controls{display: none;}
  2. contentSub{display: none;}
  3. catlinks{display: none;}
  4. footer-box{display: none;}
  5. p-logo{display: block;}

/* Remove comments to remove links towards accounts etc */ /*#top-section { display: block; position: relative; height: 98px; width: 975px; margin: -20px auto; TODO put correct colours here! border-left: 1px solid rgb(118,28,17); border-right: 1px solid rgb(118,28,17); border-bottom: 1px solid rgb(118,28,17); }*/

<script type="text/javascript">

   $(document).ready(function() {
       $("p").filter( function() {
           return $.trim($(this).html()) == ;
       }).remove()
   });

</script>