Difference between revisions of "Template:British Columbia 2"

m
m
 
(254 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<html lang="en">
 
<html lang="en">
 
<head>
 
<head>
   <title>Home</title>
+
   <title>Main CSS</title>
   <meta charset="utf-8">
+
   <!--Important to only include bootstrap in ONE of the templates, things will break if you include it twice.-->
  <meta name="viewport" content="width=device-width, initial-scale=1">
+
  <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
+
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
+
  <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
+
 
+
 
<style>
 
<style>
 
html, body{
 
html, body{
   height: 100%; min-height: 100%;
+
   height: 100vh; max-height: 100%;
   width: 100%; min-width: 100%;
+
   width: 100vw; max-width: 100%;
 
   top: 18px;
 
   top: 18px;
  font-family: Arial;
 
 
   box-sizing: border-box;
 
   box-sizing: border-box;
 
}
 
}
  
/********************************* NOT REALLY DEFAULT WIKI SETTINGS  ********************************/
+
/********************************* Overriding the default wiki settings, rest in peace #sideMenu.*****************/
 +
#sideMenu, #top_title {display:none;}
 +
#sideMenu { z-index: 10 !important; background-color: white; position: fixed;}
 +
#content {
 +
  margin-left: 0 !important; all: initial;
 +
  height: 100%; width: 100%; padding:0px;
 +
  font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
 +
}
 +
body {background-color: white; }
 +
  #bodyContent h1, #bodyContent h2, #bodyContent h3, #bodyContent h4, #bodyContent h5 { margin-bottom: 0px; }
 +
  #globalWrapper{ padding-bottom: 0 !important; }
  
#sideMenu, #top_title {display:none;}
 
#content {
 
          all: initial;
 
          height: 100%; width: 100%; padding:0px; margin-top:-7px;
 
          font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
 
        }
 
body {background-color:white; }
 
#bodyContent h1, #bodyContent h2, #bodyContent h3, #bodyContent h4, #bodyContent h5 { margin-bottom: 0px; }
 
  
 
+
.page-header{
span.glyphicon-grain{
+
   border-bottom: 1 px solid black;
    font-size: 2em;
+
}
+
 
+
.navbar-header, .navbar-nav > li > a{
+
   margin-top: 14px !important;
+
 
}
 
}
  
 +
/*cover image (the trees and mountains) styling*/
 
.cover{
 
.cover{
 +
  background: #0F9347; /*backup in case the header image does not load*/
 
   position: relative;
 
   position: relative;
 +
  top: -14px !important; left: 0 !important;
 
   overflow: hidden;
 
   overflow: hidden;
   height: 50%;
+
   height: 50vh; min-height: 50%; width: 100vw; max-width: 100%;
  background: url("http://www.indiamike.com/files/images/06/26/51/majestic-bird.jpg");
+
  background-size: cover; background-repeat: no-repeat;
+
 
}
 
}
  
Line 48: Line 40:
 
   position: absolute;
 
   position: absolute;
 
   bottom: 0;
 
   bottom: 0;
   color: #E4F9F5;
+
   color: #ffffff;
   font-size: 3em;
+
   padding-left: 60px;
 
}
 
}
  
.transparent-nav{
+
#title{
   background-color: transparent;
+
   text-shadow: 0px 0px 15px black; /*helps the title text inside the cover image stand out*/
  border: transparent;
+
 
}
 
}
  
 +
/*breadcrumb navigation to show which path in the website you are on*/
 +
#breadcrumbs{
 +
  background-color: #8CC63F;
 +
  height: 50px; color: #ffffff; line-height: 50px; font-size: 1em;
 +
  padding-left: 30px; margin-top: -14px;
 +
  z-index: 2;
 +
}
  
</style>
+
#breadcrumbs a{
<script>
+
  color: #ffffff;
// get the value of the bottom of the #main element by adding the offset of that element plus its height, set it as a variable
+
}
var mainbottom = $(".cover").offset().top + $(".cover").height();
+
  
// on scroll,  
+
/*generic content wrapper, ensures pages do not exceed 100% width*/
$(window).on("scroll",function(){
+
.content-wrap{
 +
  position: relative;
 +
  height: 100%;
 +
  background-color: white;
 +
  padding: 25px;
 +
  width: 100vw; max-width: 100%;
 +
}
  
    // we round here to reduce a little workload
+
.content-wrap p{
    stop = Math.round($(window).scrollTop());
+
  font-size: 16px !important;
    if (stop > mainbottom) {
+
  text-indent: 50px;
        $('.navbar-default').removeClass('transparent-nav');
+
}
    } else {
+
        $('.navbar-default').addClass('transparent-nav');
+
  }
+
  
});
+
/*styling for the links below each page encouraging readers to visit other sections of the website*/
</script>
+
#read-more{
</head>
+
  background-color: #8CC63F;
<header>
+
  height: 50px; color: #ffffff; line-height: 50px;
  <nav class="navbar navbar-default navbar-fixed-top">
+
  margin-bottom: 0;
    <div class="container-fluid">
+
  text-align: center !important; font-size: 1em !important;
      <div class="navbar-header">
+
}
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
+
        <span class="icon-bar"></span>
+
        <span class="icon-bar"></span>
+
        <span class="icon-bar"></span>
+
      </button>
+
        <a class="navbar-brand page-scroll" href="#page-top"><span class="glyphicon glyphicon-grain"></span></a>
+
      </div>
+
      <div class="collapse navbar-collapse">
+
        <ul class="nav navbar-nav navbar-right">
+
          <li class="dropdown">
+
            <a class="dropdown-toggle" data-toggle="dropdown" href="https://2016.igem.org/Team:British_Columbia/Project">Project
+
        <span class="caret"></span></a>
+
            <ul class="dropdown-menu">
+
              <li><a href="https://2016.igem.org/Team:British_Columbia/Project/Overview">Overview</a></li>
+
              <li><a href="https://2016.igem.org/Team:British_Columbia/Project/S-Layer">S-layer Engineering</a></li>
+
              <li><a href="https://2016.igem.org/Team:British_Columbia/Project/Bio-Pathways">Biosynthetic Pathways</a></li>
+
              <li><a href="https://2016.igem.org/Team:British_Columbia/Project/Consortia">Consortia</a></li>
+
            </ul>
+
          </li>
+
          <li><a href="https://2016.igem.org/Team:British_Columbia/Model">Modelling</a></li>
+
          <li><a href="https://2016.igem.org/Team:British_Columbia/Human_Practices">Human Practices</a></li>
+
          <li class="dropdown">
+
            <a class="dropdown-toggle" data-toggle="dropdown" href="https://2016.igem.org/Team:British_Columbia/Team">Team
+
        <span class="caret"></span></a>
+
            <ul class="dropdown-menu">
+
              <li><a href="https://2016.igem.org/Team:British_Columbia/Team/Bios">Bios</a></li>
+
              <li><a href="https://2016.igem.org/Team:British_Columbia/Team/Attributions">Attributions</a></li>
+
              <li><a href="https://2016.igem.org/Team:British_Columbia/Team/Sponsors">Sponsors</a></li>
+
            </ul>
+
          </li>
+
          <li><a href="https://2016.igem.org/Team:British_Columbia/Notebook">Notebook</a></li>
+
          <li class="dropdown">
+
            <a class="dropdown-toggle" data-toggle="dropdown" href="https://2016.igem.org/Team:British_Columbia/Achievements">Achievements
+
        <span class="caret"></span></a>
+
            <ul class="dropdown-menu">
+
              <li><a href="https://2016.igem.org/Team:British_Columbia/Achievements/Collaborations">Collaborations</a></li>
+
              <li><a href="https://2016.igem.org/Team:British_Columbia/Achievements/Medal_Criteria">Medal Criteria</a></li>
+
              <li><a href="https://2016.igem.org/Team:British_Columbia/Achievements/Parts">Parts</a></li>
+
            </ul>
+
          </li>
+
        </ul>
+
      </div>
+
      <!--collapse navbar-collapse -->
+
    </div>
+
    <!-- container-fluid -->
+
  </nav>
+
</header>
+
  
<body></body>
+
#up-next{
 +
  height: 250px; background-color: grey;
 +
}
 +
 
 +
#previous, #next{
 +
  max-height: 250px; overflow: hidden;
 +
  padding-left: 0; padding-right: 0;
 +
}
 +
 
 +
#previous:hover img, #next:hover img{
 +
  transform: scale(1.15);
 +
}
 +
 
 +
#previous figcaption, #next figcaption{
 +
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.40) 50%, rgba(0, 0, 0, 0.55) 100%);
 +
  position: absolute; width: 100%; height: 100px;
 +
  bottom: 0; left: 0; padding: 25px;
 +
  color: #ffffff; font-size: 2em;
 +
}
 +
</style>
 +
 
 +
</head>
 
</html>
 
</html>

Latest revision as of 14:14, 18 October 2016

Main CSS