Team:Michigan Software/css

From 2014.igem.org

(Difference between revisions)
 
(34 intermediate revisions not shown)
Line 7: Line 7:
     border: none;}
     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%;
 +
}
-
body { font-family: 'Comfortaa', Arial, sans-serif; overflow-x: hidden; margin: 0;} /*carasmo's comment to hide horizontal scroll bar https://github.com/twbs/bootstrap/issues/10711*/
+
a {
 +
outline: 0;
 +
}
-
h1, h2, p { font-family: 'Comfortaa', Arial, sans-serif; }
 
-
h1 { font-weight: 700; }
+
a:link, a:visited {
 +
color: black;
 +
padding: 0 1px;
 +
text-decoration: none;
 +
}
-
h2 { font-size: 1.5em; }
+
a:hover, a:active {
 +
background-color: #B9D3E3;
 +
color: #fff;
 +
text-decoration: none;
 +
}
-
ul { margin: 0; }
+
.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;
 +
}
-
ction .outer_container { margin-bottom: 50px; background-color: #eeeeee}
+
.sciencephoto img{
-
section .row { margin-left: 0; margin-right: 0; overflow: hidden; }
+
    width: 800px;
-
section h1 { text-transform: uppercase; color: white; margin-top: 0px; margin-bottom: 0px; line-height: 280px; text-align: center; }
+
    height: auto;
 +
  display: block;
 +
margin-left: auto;
 +
margin-right: auto;
 +
}
-
.templatemo_ceo img { margin-bottom: 10px; }
+
.sciencedescription {
-
.templatemo_ceo p { text-align: center; }
+
position:absolute;
-
s
+
    top:680px;
-
.container { margin: 0 auto; }
+
    left:88px; 
 +
    width:800px;
 +
    background-color: #4682B4;
 +
    font-size:28px;
 +
    color:white; 
 +
    opacity:0.7;
 +
    filter:alpha(opacity=70);
 +
}
-
/*http://css-tricks.com/vertically-center-multi-lined-text/*/
+
.home_leftcontent {
-
.center-row { display: table; }
+
background-color: #ADD8E6;
-
.center-row .center { display: table-cell; vertical-align: middle; }
+
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;
 +
}
-
footer { background:#1A1A80; min-height: 141px; color: white; margin-top: 20px; }
+
.home_rightcontent {
-
footer img { padding-top: 30px; }
+
background-color: #ADD8E6;
-
footer a { text-decoration: none; color: white; }
+
border-radius: 5px;
-
footer a:hover { color: #cbcbcb; text-decoration: none; }
+
-moz-border-radius: 5px;
-
footer .row { height: 100%; }
+
-webkit-border-radius: 5px;
 +
padding: 3% 5%;
 +
margin: 2% 3% 2% 1%;
 +
float: right;
 +
width: 35%;
 +
font-size:24px;  
 +
}
-
 
+
.home_rightcontent a {
-
#templatemo_copyright { font-size: .9em; }
+
color:#000080;
 +
font-style: italic;
 +
}

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; }