Difference between revisions of "Template:British Columbia 2"

m
m
 
(212 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;
+
 
}
 
}
 +
body {background-color: white; }
 +
  #bodyContent h1, #bodyContent h2, #bodyContent h3, #bodyContent h4, #bodyContent h5 { margin-bottom: 0px; }
 +
  #globalWrapper{ padding-bottom: 0 !important; }
  
.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-color: transparent;
 
}
 
.navbar-default .navbar-brand {
 
  color: #00ccff;
 
}
 
.navbar-default .navbar-brand:hover,
 
.navbar-default .navbar-brand:focus {
 
  color: #0f00ff;
 
}
 
.navbar-default .navbar-text {
 
  color: #00ccff;
 
}
 
.navbar-default .navbar-nav > li > a {
 
  color: #00ccff;
 
}
 
.navbar-default .navbar-nav > li > a:hover,
 
.navbar-default .navbar-nav > li > a:focus {
 
  color: #0f00ff;
 
}
 
.navbar-default .navbar-nav > .active > a,
 
.navbar-default .navbar-nav > .active > a:hover,
 
.navbar-default .navbar-nav > .active > a:focus {
 
  color: #0f00ff;
 
  background-color: transparent;
 
}
 
.navbar-default .navbar-nav > .open > a,
 
.navbar-default .navbar-nav > .open > a:hover,
 
.navbar-default .navbar-nav > .open > a:focus {
 
  color: #0f00ff;
 
  background-color: transparent;
 
}
 
.navbar-default .navbar-toggle {
 
  border-color: transparent;
 
}
 
.navbar-default .navbar-toggle:hover,
 
.navbar-default .navbar-toggle:focus {
 
  background-color: transparent;
 
}
 
.navbar-default .navbar-toggle .icon-bar {
 
  background-color: #00ccff;
 
}
 
.navbar-default .navbar-collapse,
 
.navbar-default .navbar-form {
 
  border-color: #00ccff;
 
}
 
.navbar-default .navbar-link {
 
  color: #00ccff;
 
}
 
.navbar-default .navbar-link:hover {
 
  color: #0f00ff;
 
}
 
 
@media (max-width: 767px) {
 
  .navbar-default .navbar-nav .open .dropdown-menu > li > a {
 
    color: #00ccff;
 
  }
 
  .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
 
  .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
 
    color: #0f00ff;
 
  }
 
  .navbar-default .navbar-nav .open .dropdown-menu > .active > a,
 
  .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover,
 
  .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus {
 
    color: #0f00ff;
 
    background-color: transparent;
 
  }
 
}
 
 
.page-header{
 
.page-header{
 
   border-bottom: 1 px solid black;
 
   border-bottom: 1 px solid black;
 
}
 
}
  
 +
/*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 127: 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 (window.matchMedia("(min-width: 768px)").matches) {
+
#up-next{
   /* the viewport is at least 768pixels wide */
+
   height: 250px; background-color: grey;
  if (document.body.scrollTop > 300 || document.documentElement.scrollTop > 300) {
+
}
        navigationBar.classList.add("opaque-nav");
+
    } else {
+
        navigationBar.classList.remove("opaque-nav");
+
    }
+
  } else {
+
  /* the viewport is less than 768pixels wide */
+
  navigationBar.classList.remove("opaque-nav");
+
  
   }
+
#previous, #next{
 +
   max-height: 250px; overflow: hidden;
 +
  padding-left: 0; padding-right: 0;
 
}
 
}
</script>
 
  
 +
#previous:hover img, #next:hover img{
 +
  transform: scale(1.15);
 +
}
  
</head>
+
#previous figcaption, #next figcaption{
<header>
+
   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%);
   <nav class="navbar navbar-default navbar-fixed-top" id="navigation-bar">
+
  position: absolute; width: 100%; height: 100px;
    <div class="container-fluid">
+
  bottom: 0; left: 0; padding: 25px;
      <div class="navbar-header">
+
  color: #ffffff; font-size: 2em;
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
+
}
        <span class="icon-bar"></span>
+
</style>
        <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>
+
</head>
</body>
+
 
</html>
 
</html>

Latest revision as of 14:14, 18 October 2016

Main CSS