Team:NTU-Taida/Templates/CSS/ntu-taida-wiki

From 2012.igem.org

(Difference between revisions)
(initial)
Line 1: Line 1:
 +
/* Remove MediaWiki Annoyances */
 +
/*-----------------------------*/
 +
#contentSub, #search-controls, .firstHeading, #footer-box, #catlinks, #p-logo, #toctitle, #top-section
 +
{
 +
    display:none;
 +
}
-
body {
+
#globalWrapper {
 +
    font-size:100%;
 +
    padding-bottom: 0px;
 +
}
 +
 
 +
#content {
 +
  width:100%;
 +
  margin:0px;
 +
  padding:0px;
 +
  border:none;
 +
}
 +
body, html
 +
{
 +
  margin: 0;
 +
}
 +
 
 +
#bodyContent
 +
{
 +
  border: none;
 +
  margin: 0;
 +
  padding: 0;
 +
  width: 100%;
 +
}
 +
 
 +
h1, h2, h3, h4, h5, h6
 +
{
 +
  border: none;
 +
  height: 100%;
 +
  margin: 0;
 +
  padding: 0;
 +
  width: 100%;
 +
  margin-bottom: 10px;
 +
}
 +
 
 +
#bodyContent h1, #bodyContent h2, #bodyContent h3, #bodyContent h4, #bodyContent h5, #bodyContent h6{
 +
  margin-bottom: 10px;
 +
}
 +
 
 +
#bodyContent li {
 +
  margin-bottom: 0;
 +
}
 +
/* Self Custom CSS style */
 +
#bodyContent {
     position: relative; /* To make the scrollspy works normally*/
     position: relative; /* To make the scrollspy works normally*/
     padding-top: 40px; /* 40px to make the container go all the way to the bottom of the topbar */
     padding-top: 40px; /* 40px to make the container go all the way to the bottom of the topbar */
Line 44: Line 92:
     height: 150px;
     height: 150px;
     width: 100%;
     width: 100%;
-
     background: url(../img/bg.jpg) no-repeat center center;  
+
     background: url(http://2012.igem.org/wiki/images/0/0c/NTU-Taida-header-2012.jpg) no-repeat center center;  
     opacity: .4;
     opacity: .4;
     /*background-color: pink;*/
     /*background-color: pink;*/
Line 53: Line 101:
/* for navigaion */
/* for navigaion */
section {
section {
-
     padding-top: 40px;
+
     padding-top: 60px;
}
}
-
/* Sidebar -------------------------------------------------- */
+
/* Navbar */
 +
body {
 +
    padding-top: 60px;
 +
    padding-bottom: 40px;
 +
}
 +
.sidebar-nav {
 +
    padding: 9px 0;
 +
}
 +
 +
.dropdown-menu .sub-menu {
 +
    left: 100%;
 +
    position: absolute;
 +
    top: 0;
 +
    visibility: hidden;
 +
    margin-top: -1px;
 +
}
 +
 +
.dropdown-menu li:hover .sub-menu {
 +
    visibility: visible;
 +
}
 +
 +
.dropdown:hover .dropdown-menu {
 +
    display: block;
 +
}
 +
 +
.nav-tabs .dropdown-menu, .nav-pills .dropdown-menu, .navbar .dropdown-menu {
 +
    margin-top: 0;
 +
}
 +
 +
.navbar .sub-menu:before {
 +
    border-bottom: 7px solid transparent;
 +
    border-left: none;
 +
    border-right: 7px solid rgba(0, 0, 0, 0.2);
 +
    border-top: 7px solid transparent;
 +
    left: -7px;
 +
    top: 10px;
 +
}
 +
.navbar .sub-menu:after {
 +
    border-top: 6px solid transparent;
 +
    border-left: none;
 +
    border-right: 6px solid #fff;
 +
    border-bottom: 6px solid transparent;
 +
    left: 10px;
 +
    top: 11px;
 +
    left: -6px;
 +
}
 +
 +
 +
/* Sidebar -------------------------------------------------- */
.span3 {
.span3 {
     min-height: 100px;
     min-height: 100px;
Line 81: Line 177:
     position: absolute;
     position: absolute;
     top: auto;
     top: auto;
-
     bottom: 470px;
+
     bottom: 0px;
}
}
Line 137: Line 233:
     background-color: #08C;
     background-color: #08C;
 +
}
 +
@media (max-width: 980px) {
 +
    /* Sidenav */
 +
    .my-sidebar{
 +
        width: 70%;
 +
        margin: 0 auto;
 +
    }
 +
    .my-sidebar-nav {
 +
        width: auto;
 +
        margin-bottom: 20px;
 +
    }
 +
    .my-sidebar-nav.affix, .my-sidebar-nav.affix-top{
 +
        position: static;
 +
        width: auto;
 +
        top: 0;
 +
    }
 +
    .my-sidebar-nav.affix-bottom {
 +
        position: absolute;
 +
        top: auto;
 +
        bottom: 0px;
 +
    }
 +
    .row-logo {
 +
        width: 200px;
 +
        margin:0 auto;
 +
    }
}
}

Revision as of 09:54, 26 September 2012

/* Remove MediaWiki Annoyances */ /*-----------------------------*/

  1. contentSub, #search-controls, .firstHeading, #footer-box, #catlinks, #p-logo, #toctitle, #top-section

{

   display:none;

}

  1. globalWrapper {
   font-size:100%;
   padding-bottom: 0px;

}

  1. content {
  width:100%;
  margin:0px;
  padding:0px;
  border:none;

} body, html {

 margin: 0;

}

  1. bodyContent

{

 border: none;
 margin: 0;
 padding: 0;
 width: 100%;

}

h1, h2, h3, h4, h5, h6 {

 border: none;
 height: 100%;
 margin: 0;
 padding: 0;
 width: 100%;
 margin-bottom: 10px;

}

  1. bodyContent h1, #bodyContent h2, #bodyContent h3, #bodyContent h4, #bodyContent h5, #bodyContent h6{
 margin-bottom: 10px;

}

  1. bodyContent li {
 margin-bottom: 0;

} /* Self Custom CSS style */

  1. bodyContent {
   position: relative; /* To make the scrollspy works normally*/
   padding-top: 40px; /* 40px to make the container go all the way to the bottom of the topbar */

}

/* Marketing section of Overview -------------------------------------------------- */ .marketing {

   text-align: center;
   color: #5a5a5a;

} .marketing h1 {

   margin: 30px 0 10px;
   font-size: 60px;
   font-weight: 200;
   line-height: 1;
   letter-spacing: -1px;

} .marketing h2 {

   font-weight: 200;
   margin-bottom: 5px;

} .marketing p {

   font-size: 16px;
   line-height: 1.5;

} .marketing > .row-fluid p{

   padding-bottom: 60px;

} .marketing .marketing-byline {

   margin-bottom: 40px;
   font-size: 20px;
   font-weight: 300;
   line-height: 25px;
   color: #999;

} .marketing img {

   display: block;
   margin: 0 auto 30px;

}

/* Jumbotron -------------------------------------------------- */ .jumbotron{

   height: 150px;
   width: 100%;
   background: url(NTU-Taida-header-2012.jpg) no-repeat center center; 
   opacity: .4;
   /*background-color: pink;*/
   background-size: 100%;
   /*margin-bottom: 50px;*/

}

/* for navigaion */ section {

   padding-top: 60px;

}

/* Navbar */ body {

   padding-top: 60px;
   padding-bottom: 40px;

}

.sidebar-nav {

   padding: 9px 0;

}

.dropdown-menu .sub-menu {

   left: 100%;
   position: absolute;
   top: 0;
   visibility: hidden;
   margin-top: -1px;

}

.dropdown-menu li:hover .sub-menu {

   visibility: visible;

}

.dropdown:hover .dropdown-menu {

   display: block;

}

.nav-tabs .dropdown-menu, .nav-pills .dropdown-menu, .navbar .dropdown-menu {

   margin-top: 0;

}

.navbar .sub-menu:before {

   border-bottom: 7px solid transparent;
   border-left: none;
   border-right: 7px solid rgba(0, 0, 0, 0.2);
   border-top: 7px solid transparent;
   left: -7px;
   top: 10px;

} .navbar .sub-menu:after {

   border-top: 6px solid transparent;
   border-left: none;
   border-right: 6px solid #fff;
   border-bottom: 6px solid transparent;
   left: 10px;
   top: 11px;
   left: -6px;

}


/* Sidebar -------------------------------------------------- */ .span3 {

   min-height: 100px;

} .row-logo{

   text-align: center;
   /*margin: 0 auto;*/
   padding-bottom: 20px;

} .my-sidebar-nav {

   width: 228px;
   margin: 30px 0 0;
   padding: 0;

} .my-sidebar-nav.affix {

   top: 60px;

} .my-sidebar-nav.affix-top {

   position: absolute;
   top: 60px;

} .my-sidebar-nav.affix-bottom {

   position: absolute;
   top: auto;
   bottom: 0px;

}

ul.sub-navlist{

   -webkit-border-radius: 6px;
   -moz-border-radius: 6px;
   border-radius: 6px;
   -webkit-box-shadow: 0 1px 4px rgba(0,0,0,.065);
   -moz-box-shadow: 0 1px 4px rgba(0,0,0,.065);
   box-shadow: 0 1px 4px rgba(0,0,0,.065);

} .nav-header {

   *width: 190px;
   margin: 0 0 -1px;
   padding: 8px 14px;
   border: 1px solid #e5e5e5;

} .sub-navlist > li > a {

   display: block;
   *width: 190px;
   margin: 0 0 -1px;
   padding: 8px 14px;
   border: 1px solid #e5e5e5;

} .sub-navlist > ul {

   margin-bottom: 0 px;

} .sub-navlist > li:first-child > a, .sub-navlist > .nav-header:first-child {

   -webkit-border-radius: 6px 6px 0 0;
   -moz-border-radius: 6px 6px 0 0;
   border-radius: 6px 6px 0 0;

} .sub-navlist > li:last-child > a {

   -webkit-border-radius: 0 0 6px 6px;
   -moz-border-radius: 0 0 6px 6px;
   border-radius: 0 0 6px 6px;

} .sub-navlist > .active > a {

   position: relative;
   z-index: 2;
   padding: 9px 15px;
   border: 0;
   text-shadow: 0 1px 0 rgba(0,0,0,.15);
   -webkit-box-shadow: inset 1px 0 0 rgba(0,0,0,.1), inset -1px 0 0 rgba(0,0,0,.1);
   -moz-box-shadow: inset 1px 0 0 rgba(0,0,0,.1), inset -1px 0 0 rgba(0,0,0,.1);
   box-shadow: inset 1px 0 0 rgba(0,0,0,.1), inset -1px 0 0 rgba(0,0,0,.1);

}

.sub-navlist > .active > a, .sub-navlist > .active > a:hover{

   color: white;
   text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
   background-color: #08C;

} @media (max-width: 980px) {

   /* Sidenav */
   .my-sidebar{
       width: 70%;
       margin: 0 auto;
   }
   .my-sidebar-nav {
       width: auto;
       margin-bottom: 20px;
   }
   .my-sidebar-nav.affix, .my-sidebar-nav.affix-top{
       position: static;
       width: auto;
       top: 0;
   }
   .my-sidebar-nav.affix-bottom {
       position: absolute;
       top: auto;
       bottom: 0px;
   }
   .row-logo {
       width: 200px;
       margin:0 auto;
   }

}