Team:Michigan Software/css

From 2014.igem.org

(Difference between revisions)
 
(109 intermediate revisions not shown)
Line 6: Line 6:
#content {
#content {
     border: none;}
     border: none;}
 +
 +
<script type="text/javascript">
 +
    $(document).ready(function() {
 +
        $("p").filter( function() {
 +
            return $.trim($(this).html()) == '';
 +
        }).remove()
 +
    });
 +
</script>
 +
body {
body {
Line 11: Line 20:
color: black;
color: black;
font-size: 100%; /* Base font size: 12px */
font-size: 100%; /* Base font size: 12px */
-
font-family: 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
+
font-family: "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
line-height: 1;
line-height: 1;
margin: 0;
margin: 0;
Line 22: Line 31:
margin: 0 auto;  
margin: 0 auto;  
width: 100%;
width: 100%;
-
}
 
-
 
-
h2 {font-size: 1.571em} /* 22px */
 
-
h3 {font-size: 1.429em} /* 20px */
 
-
h4 {font-size: 1.286em} /* 18px */
 
-
h5 {font-size: 1.143em} /* 16px */
 
-
h6 {font-size: 1em} /* 14px */
 
-
 
-
h2, h3, h4, h5, h6 {
 
-
font-weight: 400;
 
-
line-height: 1.1;
 
-
margin-bottom: .8em;
 
-
color: black;
 
}
}
Line 53: Line 49:
text-decoration: none;
text-decoration: none;
}
}
-
 
.mainHeader h1 {
.mainHeader h1 {
Line 59: Line 54:
         font-weight: bold;  
         font-weight: bold;  
         font-style: normal;  
         font-style: normal;  
-
font-size: 400%;
+
font-size: 500%;
text-align: center;
text-align: center;
float: none;
float: none;
Line 68: Line 63:
.mainHeader nav {
.mainHeader nav {
background: #1A1A80;
background: #1A1A80;
-
font-size: 1.143em;
+
font-size: 1.5em;
height: 40px;
height: 40px;
line-height: 30px;
line-height: 30px;
Line 89: Line 84:
.mainHeader nav a:link, .mainHeader nav a:visited {
.mainHeader nav a:link, .mainHeader nav a:visited {
 +
        font-family: 'Comfortaa';
 +
        font-weight: bold;
 +
        font-style: normal;
text-transform: uppercase;
text-transform: uppercase;
color: #FFFFFF;
color: #FFFFFF;
Line 110: Line 108:
.sciencephoto img{
.sciencephoto img{
-
border-radius: 5px;
 
-
-moz-border-radius: 5px;
 
-
-webkit-border-radius: 5px;
 
     width: 800px;
     width: 800px;
     height: auto;
     height: auto;
Line 121: Line 116:
.sciencedescription {
.sciencedescription {
-
  position: absolute;
+
position:absolute;
-
  top: 0;
+
    top:680px;
-
  bottom: 0;
+
    left:88px;
-
  left: 0;
+
    width:800px;
-
  right: 0;
+
    background-color: #4682B4;
-
  background: rgba(29, 106, 154, 0.72);
+
    font-size:28px;
-
  color: #fff;
+
    color:white;
-
  visibility: hidden;
+
    opacity:0.7;
-
  opacity: 0;
+
    filter:alpha(opacity=70);
-
}
+
-
 
+
-
.sciencephotohover .sciencedescription{
+
-
  visibility: visible;
+
-
  opacity: 1;
+
}
}
Line 146: Line 136:
float: left;
float: left;
         width: 35%;
         width: 35%;
 +
font-size:24px;
}
}
 +
.home_leftcontent a {
 +
color:#000080;
 +
font-style: italic;
 +
}
.home_rightcontent {
.home_rightcontent {
Line 158: Line 153:
float: right;
float: right;
width: 35%;
width: 35%;
 +
font-size:24px;
}
}
-
@media only screen and (min-width : 150px) and (max-width : 780px)
+
.home_rightcontent a {
-
{
+
color:#000080;
-
.body {
+
font-style: italic;
-
clear: both;
+
-
margin: 0 auto;
+
-
width: 90%;
+
-
font-size: 90%;
+
-
}
+
-
+
-
.mainHeader nav {
+
-
background:#1A1A80;
+
-
font-size: 1.143em;
+
-
height: 160px;
+
-
line-height: 30px;
+
-
margin-bottom: 0;
+
-
border-radius: 5px;
+
-
-moz-border-radius: 5px;
+
-
-webkit-border-radius: 5px;
+
-
}
+
-
+
-
.mainHeader nav ul {
+
-
list-style: none;  
+
-
margin: 0 auto;
+
-
padding-left: 0;
+
-
}
+
-
+
-
.mainHeader nav li {
+
-
margin-left: 0 auto;
+
-
width: 100%;
+
-
}
+
-
+
-
.mainHeader nav a:link, .mainHeader nav a:visited {
+
-
color: #FFF;
+
-
display: block;
+
-
height: 30px;
+
-
padding: 5px 0;
+
-
text-decoration: none;
+
-
}
+
-
+
-
.mainHeader nav a:active,
+
-
.mainHeader nav .active a:link, .mainHeader nav .active a:visited {
+
-
background: #CF5C3F;
+
-
color: #fff;
+
-
text-shadow: none !important;
+
-
}
+
-
+
-
.mainHeader nav li a {
+
-
border-radius: 5px;
+
-
-moz-border-radius: 5px;
+
-
-webkit-border-radius: 5px;
+
-
+
-
border-radius: 5px;
+
-
-moz-border-radius: 5px;
+
-
-webkit-border-radius: 5px;
+
-
}
+
-
+
-
.mainHeader img {
+
-
width: 68%;
+
-
height: auto;
+
-
}
+
-
+
-
.mainContent {
+
-
overflow: hidden;
+
-
line-height: 25px;
+
-
border-radius: 5px;
+
-
-moz-border-radius: 5px;
+
-
-webkit-border-radius: 5px;
+
-
margin-top: 4%;
+
-
margin-bottom: 2%;
+
-
}
+
-
+
-
.topcontent {
+
-
background-color: #FFF;
+
-
border-radius: 5px;
+
-
-moz-border-radius: 5px;
+
-
-webkit-border-radius: 5px;
+
-
padding: 2% 5%;
+
-
margin-bottom: 4%;
+
-
}
+
-
+
-
.content {
+
-
width: 100%;
+
-
float: left;
+
-
border-radius: 5px;
+
-
-moz-border-radius: 5px;
+
-
-webkit-border-radius: 5px;
+
-
}
+
-
 
+
-
.top-sidebar {
+
-
width: 86%;
+
-
float: left;
+
-
border-radius: 5px;
+
-
-moz-border-radius: 5px;
+
-
-webkit-border-radius: 5px;
+
-
background-color: #FFF;
+
-
margin-top: 4%;
+
-
margin-left: 0;
+
-
padding: 0 7%;
+
-
margin-bottom: 0;
+
-
}
+
-
+
-
.top-sidebar p {
+
-
width: 90%;
+
-
}
+
-
 
+
-
.middle-sidebar {
+
-
width: 86%;
+
-
float: left;
+
-
border-radius: 5px;
+
-
-moz-border-radius: 5px;
+
-
-webkit-border-radius: 5px;
+
-
background-color: #FFF;
+
-
margin-top: 4%;
+
-
margin-left: 0;
+
-
padding: 0 7%;
+
-
margin-bottom: 0;
+
-
}
+
-
+
-
.middle-sidebar p {
+
-
width: 90%;
+
-
}
+
-
+
-
.bottom-sidebar {
+
-
width: 86%;
+
-
float: left;
+
-
border-radius: 5px;
+
-
-moz-border-radius: 5px;
+
-
-webkit-border-radius: 5px;
+
-
background-color: #FFF;
+
-
margin-top: 4%;
+
-
margin-left: 0%;
+
-
padding: 0 7%;
+
-
margin-bottom: 1%;
+
-
}
+
-
+
-
.bottom-sidebar p {
+
-
width: 90%;
+
-
}
+
-
+
-
.Foot {
+
-
width: 100%;
+
-
float: left;
+
-
margin: 2% 0;
+
-
padding-left: 0;
+
-
background-color: #B9D3E3;
+
-
border-radius: 5px;
+
-
-moz-border-radius: 5px;
+
-
-webkit-border-radius: 5px;
+
-
color: #FFF;
+
-
}
+
-
+
-
.Foot p {
+
-
width: 86%;
+
-
margin: 2% auto;
+
-
}
+
-
 
+
-
      .project_describe{
+
-
        background-color: #ADD8E6;
+
-
border-radius: 5px;
+
-
-moz-border-radius: 5px;
+
-
-webkit-border-radius: 5px;
+
-
padding: 3% 5%;
+
-
margin-bottom: 3%;
+
-
float: left;
+
-
        width: 40%;
+
-
        justify-content: space-around;   
+
-
       
+
-
        }
+
-
 
+
-
        .project_methods{
+
-
 
+
-
 
+
-
          }
+
-
 
+
-
          .project_success{
+
-
 
+
-
 
+
-
          }
+
-
 
+
-
 
+
-
 
+
}
}

Latest revision as of 03:06, 18 October 2014

  1. contentSub, #search-controls, .firstHeading, #footer-box, #catlinks, #p-logo {
   display:none;}
  1. top-section {
   border: none;
   height: 0px;}
  1. content {
   border: none;}

<script type="text/javascript">

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

</script>


body { background-image: url('img/bg.png'); color: black; font-size: 100%; /* Base font size: 12px */ font-family: "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif; line-height: 1; margin: 0; padding: 0; text-align: left; }

.body { clear: both; margin: 0 auto; width: 100%; }

a { outline: 0; }


a:link, a:visited { color: black; padding: 0 1px; text-decoration: none; }

a:hover, a:active { background-color: #B9D3E3; color: #fff; text-decoration: none; }

.mainHeader h1 {

       font-family: 'Comfortaa'; 
       font-weight: bold; 
       font-style: normal; 

font-size: 500%; text-align: center; float: none; margin: 3% 0 3% 0; color: #1A1A80; }

.mainHeader nav { background: #1A1A80; font-size: 1.5em; height: 40px; line-height: 30px; margin: 0 auto 30px auto; text-align: center; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; }

.mainHeader nav ul { list-style: none; margin: 0 auto; }

.mainHeader nav ul li { float: left; display: inline; }

.mainHeader nav a:link, .mainHeader nav a:visited {

       font-family: 'Comfortaa';
       font-weight: bold; 
       font-style: normal; 

text-transform: uppercase; color: #FFFFFF; display: inline-block; height: 30px; padding: 5px 23px; text-decoration: none; } .mainHeader nav a:hover, .mainHeader nav a:active, .mainHeader nav .active a:link, .mainHeader nav .active a:visited { background: #B9D3E3; color: #FFFFFF; text-shadow: none !important; }

.mainHeader nav li a { border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; }

.sciencephoto img{

   width: 800px;
   height: auto;
display: block;

margin-left: auto; margin-right: auto; }

.sciencedescription { position:absolute;

   top:680px;
   left:88px;  
   width:800px;
   background-color: #4682B4;  
   font-size:28px;  
   color:white;  
   opacity:0.7;
   filter:alpha(opacity=70);

}

.home_leftcontent { background-color: #ADD8E6; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; padding: 3% 5%; margin: 2% 1% 2% 3%; float: left;

       width: 35%;
font-size:24px; 

}

.home_leftcontent a { color:#000080; font-style: italic; }

.home_rightcontent { background-color: #ADD8E6; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; padding: 3% 5%; margin: 2% 3% 2% 1%; float: right; width: 35%;

font-size:24px; 

}

.home_rightcontent a { color:#000080; font-style: italic; }