Team:CityU HK/Template/CSS

From 2014.igem.org

(Difference between revisions)
Line 1: Line 1:
<html>
<html>
 +
 +
    <meta charset="utf-8">
 +
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
 +
    <meta name="viewport" content="width=device-width, initial-scale=1">
 +
    <title>Bootstrap 101 Template</title>
 +
 +
    <!-- Bootstrap -->
 +
    <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
 +
   
 +
    <!-- font -->
 +
    <link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css>
 +
    <link href='http://fonts.googleapis.com/css?family=Dosis' rel='stylesheet' type='text/css'>
 +
    <link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>
 +
    <link href='http://fonts.googleapis.com/css?family=Pacifico' rel='stylesheet' type='text/css'>
 +
    <link href='http://fonts.googleapis.com/css?family=Josefin+Sans:100,400' rel='stylesheet' type='text/css'>
 +
    <link href='http://fonts.googleapis.com/css?family=Montserrat+Alternates' rel='stylesheet' type='text/css'>
 +
    <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro' rel='stylesheet' type='text/css'>
 +
 +
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
 +
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
 +
    <!--[if lt IE 9]>
 +
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
 +
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
 +
    <![endif]-->
 +
 +
<style type="text/css">
<style type="text/css">
-
#contentSub, #footer-box, #catlinks, #search-controls, #p-logo, .printfooter, .firstHeading,.visualClear {display: none;} /*-- hides default wiki settings --*/
 
-
#top-section { /*-- styling for default menu bar (edit, page, history, etc.) --*/
+
/* Removing wiki-like stuff */
 +
/****************************/
 +
#contentSub, #footer-box, #catlinks, #search-controls, #p-logo, .printfooter, .firstHeading,.visualClear {display: none;}
 +
/****************************/
 +
 
 +
#top-section {     /*-- styling for default menu bar (edit, page, history, etc.) --*/
background-color: #383838;
background-color: #383838;
border: 0 none;
border: 0 none;
-
height: 14px;
+
        height: 0px;
 +
        color: transparent;
z-index: 100;
z-index: 100;
top: 0;
top: 0;
Line 13: Line 44:
left: 50%;  
left: 50%;  
margin-left: -487px;
margin-left: -487px;
 +
}
 +
 +
#top-section:hover {
 +
background-color: #383838;
 +
border: 0 none;
 +
        height: 14px;
 +
z-index: 100;
 +
top: 0;
 +
width: 975px;
 +
left: 50%;
 +
margin-left: -487px;
 +
        -webkit-transition: all 0s linear .1s;
 +
-moz-transition: all 0s linear .1s;
 +
-ms-transition: all 0s linear .1s;
 +
-o-transition: all 0s linear .1s;
 +
transition: all 0s linear .1s;
}
}
Line 32: Line 79:
body {  
body {  
-
background-color: #fff;
+
background-color: transparent;
}
}
Line 50: Line 97:
}
}
-
 
+
h2 {border-bottom: none;}
 +
h1 {border-bottom: none;}
 +
h3 {border-bottom: none;}
 +
a:link {color: none;}
</style>
</style>
-
<style>
+
    <style>
-
* html{
+
.navbar-default {
-
behavior:url("csshover3.htc");
+
border-bottom: solid 3px #e0e0e0;
 +
margin-bottom:0;
 +
background-color: #EBEDEC;
 +
                height: 8%;
 +
}
 +
 +
.navbar-brand {
 +
font-family:'Josefin Sans', sans-serif;
 +
font-size: 2em;
 +
padding-top: 40px;
 +
padding-left: 40px;
 +
padding-bottom: 70px;
 +
}
 +
       
 +
        .nav .navbar-brand a:link {          /*overwrite igem default style*/
 +
                color: #2c4762;
 +
        }
 +
 
 +
.navbar-brand:hover {
 +
color:#3cc;
 +
}
 +
 +
    .navbar .container-fluid #bs-example-navbar-collapse-1 .nav.navbar-nav.navbar-right {
 +
margin-top: 20px;
 +
font-size: 16px;
 +
font-family:'Dosis', sans-serif;
}
}
 +
    .nav.navbar-nav.navbar-right a:link {    /*overwrite igem default style*/
 +
        color:#357385;
 +
    }
-
body {
+
    .nav.navbar-nav.navbar-right .active a {
-
      background: url("https://static.igem.org/mediawiki/2014/a/a5/CityU_HK_Background.jpg");
+
border-bottom-width: 3px;
-
/*background-size:contain;*/
+
border-bottom-style: solid;
-
background-repeat: no-repeat;
+
border-bottom-color: #3cc;
-
background-position:left;
+
}
-
background-attachment: fixed;
+
nav ul li a:hover {
-
        background-size: cover;
+
font-weight: bolder;
-
}
+
color: #3cc;
 +
border-bottom-width: 3px;
 +
border-bottom-style: solid;
 +
border-bottom-color: rgba(51,204,204,.3);
 +
}
 +
.dropdown-menu li a:hover {
 +
border: none;
 +
color: #3cc;
 +
font-weight: bold;
 +
}
 +
#footer {
 +
background: rgba(0,0,0,0.8);
 +
background-size:cover;
 +
height: 250px;
 +
        width: 100%;
 +
clear: both;
 +
position: relative;
 +
bottom: 0;
 +
        margin: 0;
 +
        padding: 20px 20px 0px 20px;
 +
        border-top: solid 1px #e0e0e0;
 +
}
 +
#footer h4 {
 +
color: #fff;
 +
}
-
*:first-child+html #menu ul li ul {
+
#footer p {
-
margin-top:-10px;
+
color: #fff;
-
        z-index: 1;
+
text-align: center;
}
}
-
.sidemenu, .sidemenu li {  
+
#footer a {
-
list-style-type: none;
+
color: #fff;
-
list-style-image: none;
+
text-decoration: none;
-
font-family: verdana;  
+
-
text-decoration: none;
+
-
color:#000;
+
-
font-size: 14px;
+
}
}
-
.sidemenu li {display: block;}
+
#footer a:hover {
 +
color: #3cc;
 +
}
-
.sidemenu a {
+
#footer img {
-
text-decoration:none;  
+
margin-left: 40px;
-
color: #000;
+
margin-top: 30px;
-
display: block;
+
margin-bottom: 10px;
-
width: 180px;
+
}
-
height: 100%;
+
-
padding: 3px 5px;
+
-
transition: .25s ease-in-out;
+
-
-moz-transition: .25s ease-in-out;
+
-
-webkit-transition: .25s ease-in-out;
+
-
}  
+
-
.sidemenu a.greyout { color: #909090; }
+
.btn-custom {
 +
padding: 8px 30px 8px 30px;
 +
background: none;
 +
-moz-box-shadow: 3px 3px 5px 6px #000;
 +
  -webkit-box-shadow: 3px 3px 5px 6px #000;
 +
  box-shadow: 3px 3px 5px 6px #000;
 +
border: solid 2.5px #fff;
 +
font-family: 'Oswald', sans-serif;
 +
font-size: 20px;
 +
}
-
.sidemenu a:hover {
+
.carousel-inner {
-
color:#666;  
+
-webkit-box-shadow: 0 8px 6px -6px black;
-
background-color: #d9f5aa;
+
-moz-box-shadow: 0 8px 6px -6px black;
 +
box-shadow: 0 8px 6px -6px black;
}
}
-
.sub-sidemenu {font-size: 10px; margin-bottom: 20px; color: #666; display: none;}
+
.carousel-inner .carousel-caption {
-
.sub-sidemenu a {color: #666;}
+
padding-top: 100px;
-
 
+
padding-bottom: 100px;
-
#menu li{
+
-
position:relative;
+
-
float:left;
+
-
list-style:none;
+
-
z-index:999;
+
}
}
-
#menu a{
+
.carousel-inner .carousel-caption h1 {
-
color:white;
+
font-family: 'Pacifico', cursive;  
-
text-decoration:none;
+
font-size: 80px;
-
width:158px;
+
padding-bottom:10px;
-
display:block;
+
-
text-align:center;
+
-
font-family:arial;
+
-
font-size:14px;
+
}
}
-
#menu{
+
.carousel-inner .carousel-caption h3 {
-
margin-left:auto;
+
font-size: 60px;
-
margin-right:auto;
+
font-family: 'Oswald', sans-serif;
-
width:968px;
+
        padding-bottom: 5px;
}
}
-
#menu a:hover{
+
 
-
background:deepskyblue;
+
.btn-custom:link {                       /*overwrite igem default style*/
 +
        color: #fff;
}
}
-
#menu li ul{
+
.btn-custom:hover {
-
background:black;
+
color: #3CC;
-
        opacity: 0.9;
+
border: solid 2.5px #3cc;
-
/* display:none; */
+
         background-color: rgba(255,255,255,0.2);
-
position:absolute;
+
-
text-align:center;
+
-
top:95px;
+
-
         right:0px;
+
-
}
+
-
#menu li:hover ul{
+
-
display:block;
+
-
}
+
-
#dropdown_menu li ul li{
+
-
position:relative;
+
}
}
-
.logoimg
+
#feature-icon img {
-
{
+
        max-width: 100%;
-
position: relative;
+
        max-height: 100%;
-
float: right;
+
-
top: 260px;
+
}
}
-
footer h2{
+
#abstract {
-
        text-align: center;
+
background: #CBEBE3;
-
        color: white;
+
 +
}
 +
 +
#abstract h2{
 +
text-align: center;
 +
color: #069;
 +
font-family: 'Josefin Sans', sans-serif;
 +
text-shadow:0 0 1px rgba(0,0,0,.2), 0 1px 2px rgba(0,0,0,.3);
 +
padding-top: 50px;
 +
        border-bottom: solid 1px #a9b2bb;
 +
        margin-left:300px;
 +
        margin-right:300px;
}
}
-
footer img {
+
#abstract p {
-
         margin: 20px;
+
         color: #666;
-
         position: relative;
+
         font-weight: 100;
-
         right: -200px;
+
         font-family: 'Source Sans Pro', sans-serif;
 +
line-height: 2em;
 +
text-align: justify;
 +
padding-left: 200px;
 +
padding-right:200px;
 +
padding-top: 30px;
 +
padding-bottom: 100px;
 +
        font-size: 18px;
}
}
 +
@media screen and (max-width: 480px) {
 +
        .navbar-default {
 +
        height: auto;}
 +
        /*.navbar-brand span{
 +
        display: none;}*/
 +
 +
        .carousel-inner {
 +
        height:auto;}
-
</style>
+
        #abstract h2 {
 +
        margin-left: 30px;
 +
        margin-right: 30px;}
 +
 +
        #abstract p {
 +
        padding-left: 10px;
 +
        padding-right: 10px;
 +
        font-size: 14px;}
 +
 
 +
        #footer img {
 +
        width: 30px;
 +
        height: 30px;}
 +
}
 +
 
 +
@media screen and (max-width: 800px){
 +
        #navbar-brand {
 +
        Font-size:25px;}
 +
</html>
</html>

Revision as of 10:29, 6 September 2014

Bootstrap 101 Template