Team:CityU HK/Template/CSS

From 2014.igem.org

(Difference between revisions)
 
(302 intermediate revisions not shown)
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">
 +
    <link href='http://fonts.googleapis.com/css?family=Quattrocento+Sans' rel='stylesheet' type='text/css'>
 +
   
 +
    <!-- font -->
 +
    <link href='http://fonts.googleapis.com/css?family=Raleway:100,300,400,500,600,700,900,100' rel='stylesheet' type='text/css'>
 +
    <link href='http://fonts.googleapis.com/css?family=Dosis:200,400,700' rel='stylesheet' type='text/css'>
 +
    <link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>
 +
    <link href='http://fonts.googleapis.com/css?family=Indie+Flower' 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 43:
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 31: Line 77:
}
}
-
body {
 
-
background-color: #fff;
 
-
}
 
#globalWrapper, #content { /*-- changes default wiki settings --*/
#globalWrapper, #content { /*-- changes default wiki settings --*/
Line 50: Line 93:
}
}
 +
h2 {border-bottom: none;}
 +
h1 {border-bottom: none;}
 +
h3 {border-bottom: none;}
 +
a:link {color: none;}
 +
        h1, h2, h3, p {
 +
                font-family: 'Raleway', sans-serif;
 +
        }
-
</style>
 
 +
.navbar-default {
 +
border-bottom: solid 3px #e0e0e0;
 +
margin:0;
 +
                height: 8%;
 +
}
 +
 +
.navbar-brand {
 +
font-family: 'Indie Flower', cursive;
 +
                font-weight: bold;
 +
font-size: 1.8em;
 +
padding-top: 40px;
 +
padding-left: 2px;
 +
padding-bottom: 70px;
 +
}
-
<style>
+
        #igem {
-
* html{
+
                position: relative;
-
behavior:url("csshover3.htc");
+
                top: -22px;
 +
        }
 +
       
 +
        .nav .navbar-brand a:link {         /*overwrite igem default style*/
 +
                color: #bebebe;
 +
        }
 +
 
 +
.navbar-brand:hover {
 +
color:#3cc;
 +
}
 +
 +
    .navbar .container-fluid #bs-example-navbar-collapse-1 .nav.navbar-nav.navbar-right {
 +
margin-top: 20px;
 +
font-size: 14px;
 +
font-family:'Raleway', sans-serif;
}
}
 +
    .nav.navbar-nav.navbar-right a:link {    /*overwrite igem default style*/
 +
        color:#357385;
 +
    }
-
body {
+
    .nav.navbar-nav.navbar-right a:hover {   
-
      background: url("https://static.igem.org/mediawiki/2014/a/a5/CityU_HK_Background.jpg");
+
        color:#3cc;
-
background-size:contain;
+
        background: none;
-
background-repeat: no-repeat;
+
    }
-
background-position:left;
+
-
background-attachment: fixed;
+
-
        background-size: cover
+
-
}
+
 +
    .nav.navbar-nav.navbar-right .active a {
 +
        background: none;
 +
border-bottom-width: 3px;
 +
border-bottom-style: solid;
 +
border-bottom-color: #4eecba;
 +
}
 +
nav li a:hover {
 +
color: #3cc;
 +
        background-color: transparent;
 +
}
 +
 +
.dropdown li a: hover {
 +
        background-color: transparent;
-
*:first-child+html #menu ul li ul {
 
-
margin-top:-10px;
 
-
        z-index: 1;
 
}
}
-
.sidemenu, .sidemenu li {  
+
.dropdown-menu li a:hover {
-
list-style-type: none;  
+
border: none;
-
list-style-image: none;  
+
color: #3cc;
-
font-family: verdana;  
+
/*font-weight:bold;*/
-
text-decoration: none;
+
        background: none;
-
color:#000;
+
-
font-size: 14px;
+
}
}
-
.sidemenu li {display: block;}
 
-
.sidemenu a {
 
-
text-decoration:none;
 
-
color: #000;
 
-
display: block;
 
-
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; }
+
#footer {
 +
background: rgba(0,0,0,0.8);
 +
background-size:cover;
 +
        width: 100%;
 +
clear: both;
 +
/*top: 0;*/
 +
        margin: 0;
 +
        padding: 10px 20px 0px 20px;
 +
        border-top: solid 1px #e0e0e0;
 +
      /* position: relative;*/
 +
}
-
.sidemenu a:hover {
+
#footer h3 {
-
color:#666;  
+
color: #dde0e4;
-
background-color: #d9f5aa;
+
        font-family: 'Raleway', sans-serif;
 +
        font-size: 18px;
 +
        font-weight: bold;
 +
        padding-bottom: 20px;
}
}
-
.sub-sidemenu {font-size: 10px; margin-bottom: 20px; color: #666; display: none;}
+
#footer p {
-
.sub-sidemenu a {color: #666;}
+
color: #777777;
-
 
+
text-align: center;
-
#menu li{
+
        font-size: 14px;
-
position:relative;
+
-
float:left;
+
-
list-style:none;
+
-
z-index:999;
+
-
}
+
-
#menu a{
+
-
color:white;
+
-
text-decoration:none;
+
-
width:158px;
+
-
display:block;
+
-
text-align:center;
+
-
font-family:arial;
+
-
font-size:14px;
+
}
}
-
#menu{
+
#footer #email {
-
margin-left:auto;
+
      font-size: 18px;
-
margin-right:auto;
+
-
width:968px;
+
}
}
-
#menu a:hover{
+
 
-
background:deepskyblue;
+
#footer a {
 +
color: #777777;
 +
text-decoration: none;
}
}
-
#menu li ul{
+
#footer a:hover {
-
background:black;
+
color: #3cc;
-
/* display:none; */
+
-
position:absolute;
+
-
text-align:center;
+
-
top:95px;
+
-
        right:0px;
+
-
}
+
-
#menu li:hover ul{
+
-
display:block;
+
-
}
+
-
#dropdown_menu li ul li{
+
-
position:relative;
+
}
}
-
.logoimg
+
#footer img {
-
{
+
margin-left: 40px;
-
position: relative;
+
margin-top: 30px;
-
float: right;
+
margin-bottom: 10px;
-
top: 260px;
+
}
}
-
footer h2{
+
#copyright {
 +
        width:100%;
 +
        padding-top:10px;
 +
        padding-bottom: 10px;
 +
        background: rgba(0,0,0,0.8);
 +
        color: #777777;
 +
        font-family: 'Raleway', sans-serif;
 +
        font-size: 14px;
         text-align: center;
         text-align: center;
-
        color: white;
 
}
}
-
footer img {
+
 
-
         margin: 20px;
+
@media screen and (max-width: 480px) {
 +
        .navbar-default {
 +
        height: auto;}
 +
 
 +
        /*.navbar-brand span{
 +
        display: none;}*/
 +
 +
        .carousel-inner {
 +
        height:auto;}
 +
 
 +
        #abstract h2 {
 +
        font-size: 2em;
 +
        padding-top: 10px;
 +
        padding-bottom: 10px;
 +
        margin-left: 30px;
 +
        margin-right: 30px;}
 +
 +
        #abstract p {
 +
        padding-left: 10px;
 +
        padding-right: 10px;
 +
        font-weight: 300;
 +
        font-size: 14px;}
 +
 +
      #footer {
 +
      height: 500px;}
 +
 
 +
        #footer img {
 +
         width: 30px;
 +
        height: 30px;}
}
}
 +
@media screen and (max-width: 800px){
 +
        #navbar-brand {
 +
        Font-size:25px;}
 +
 +
        #abstract p {
 +
        padding-left: 10px;
 +
        padding-right: 10px;
 +
      #footer {
 +
      height: 500px;}
 +
</style>
</style>
</html>
</html>

Latest revision as of 00:33, 18 October 2014

Bootstrap 101 Template