Difference between revisions of "Template:British Columbia 2"

m
m
 
(218 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{
Line 13: Line 8:
 
   width: 100vw; max-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, #top_title {display:none;}
+
#sideMenu { z-index: 10 !important; background-color: white; position: fixed;}
#content {  
+
#content {  
          all: initial;
+
  margin-left: 0 !important; all: initial;
          height: 100%; width: 100%; padding:0px; margin-top:-7px;
+
  height: 100%; width: 100%; padding:0px;  
          font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
+
  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; }
+
 
+
 
+
span.glyphicon-grain{
+
    font-size: 2em;
+
}
+
 
+
.navbar-header, .navbar-nav > li > a{
+
  margin-top: 14px !important;
+
}
+
 
+
@media screen and (min-width: 768px) {
+
.navbar-default .navbar-brand, .navbar-default .navbar-nav>li>a{
+
  color: #E4F9F5 !important;
+
}
+
 
+
.navbar-default {
+
    background-color:transparent;
+
    border: transparent;
+
}
+
 
+
.navbar-default .navbar-nav>.active>a, .navbar-default .navbar-nav>.active>a:focus, .navbar-default .navbar-nav>.active>a:hover{
+
  background-color: transparent;
+
  border-bottom: 2px solid #E4F9F5;
+
  }
+
 
+
 
}
 
}
 +
body {background-color: white; }
 +
  #bodyContent h1, #bodyContent h2, #bodyContent h3, #bodyContent h4, #bodyContent h5 { margin-bottom: 0px; }
 +
  #globalWrapper{ padding-bottom: 0 !important; }
  
  
Line 59: Line 28:
 
}
 
}
  
 +
/*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;
+
   top: -14px !important; left: 0 !important;  
 
   overflow: hidden;
 
   overflow: hidden;
 
   height: 50vh; min-height: 50%; width: 100vw; max-width: 100%;
 
   height: 50vh; min-height: 50%; width: 100vw; max-width: 100%;
  background: url("https://upload.wikimedia.org/wikipedia/commons/thumb/a/a7/RedcrestedTuraco.jpg/800px-RedcrestedTuraco.jpg");
 
  background-size: cover; background-repeat: no-repeat;
 
 
}
 
}
  
Line 71: Line 40:
 
   position: absolute;
 
   position: absolute;
 
   bottom: 0;
 
   bottom: 0;
   color: #E4F9F5;
+
   color: #ffffff;
 
   padding-left: 60px;
 
   padding-left: 60px;
 
}
 
}
  
.content{
+
#title{
 +
  text-shadow: 0px 0px 15px black; /*helps the title text inside the cover image stand out*/
 +
}
 +
 
 +
/*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;
 +
}
 +
 
 +
#breadcrumbs a{
 +
  color: #ffffff;
 +
}
 +
 
 +
/*generic content wrapper, ensures pages do not exceed 100% width*/
 +
.content-wrap{
 
   position: relative;
 
   position: relative;
   height: 2000px;  
+
   height: 100%;  
 
   background-color: white;
 
   background-color: white;
 +
  padding: 25px;
 +
  width: 100vw; max-width: 100%;
 
}
 
}
  
.opaque-nav{
+
.content-wrap p{
   background-color: grey;
+
   font-size: 16px !important;
 +
  text-indent: 50px;
 
}
 
}
</style>
 
<script>
 
window.onscroll = function(){scrollFunction()};
 
  
function scrollFunction(){
+
/*styling for the links below each page encouraging readers to visit other sections of the website*/
    var navigationBar = document.getElementById("navigation-bar");
+
#read-more{
 +
  background-color: #8CC63F;  
 +
  height: 50px; color: #ffffff; line-height: 50px;
 +
  margin-bottom: 0;
 +
  text-align: center !important; font-size: 1em !important;
 +
}
  
    if (document.body.scrollTop > 339 || document.documentElement.scrollTop > 339) {
+
#up-next{
        navigationBar.classList.add("opaque-nav");
+
  height: 250px; background-color: grey;
    } else {
+
        navigationBar.classList.remove("opaque-nav");
+
    }
+
 
}
 
}
</script>
 
</head>
 
<header>
 
  <nav class="navbar navbar-default navbar-fixed-top" id="navigation-bar">
 
    <div class="container-fluid">
 
      <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="https://2016.igem.org/Team:British_Columbia"><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>
+
#previous, #next{
</body>
+
  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