Template:Team:Calgary Entrepreneurial/BasicPage

From 2013.igem.org

(Difference between revisions)
 
(83 intermediate revisions not shown)
Line 4: Line 4:
<head>
<head>
-
<style type="text/css">
+
<link rel="stylesheet" href="https://2013.igem.org/Team:Calgary_Entrepreneurial/Stylesheets/basicpage.css?action=raw&ctype=text/css" type="text/css"/>
-
 
+
-
#bodyContent{
+
-
background: #FDFDFD;
+
-
}
+
-
 
+
-
#maincontainer{
+
-
position: relative;
+
-
margin: 0 auto 0 auto;
+
-
max-width: 1150px;
+
-
width: 100%;
+
-
}
+
-
+
-
#sidebar{
+
-
background: #FDFDFD;
+
-
margin-top: 9em;
+
-
float: left;
+
-
min-width: 100px;
+
-
max-width: 242px;
+
-
width: 21%;
+
-
margin-right: 0;
+
-
}
+
-
 
+
-
#sidebar ul{
+
-
border: none;
+
-
border-right: 3px solid #777777;
+
-
}
+
-
+
-
#sidebar ul li{
+
-
display: block;
+
-
padding: 0.75em 1em 0.75em 0.5em;
+
-
text-align: right;
+
-
}
+
-
+
-
#sidebar ul li a{
+
-
color: #333333 !important;
+
-
line-height: 1.9rem;
+
-
padding: 0;
+
-
}
+
-
+
-
#sidebar ul li a:hover{
+
-
background: transparent;
+
-
color: #7cb83d !important;
+
-
}
+
-
 
+
-
#maincontent{
+
-
display: inline-block;
+
-
width: 75.5%;
+
-
margin-left: 2%;
+
-
margin-top: 3em;
+
-
padding-top: 6em; /*used to activate JS menu a little faster*/
+
-
padding-bottom: 2em;
+
-
}
+
-
+
-
#maincontainer p{
+
-
padding: 0.5rem 0 0.5rem 1rem;
+
-
}
+
-
+
-
#abstractbox{
+
-
background: #7cb83d;
+
-
display: inline-block;
+
-
margin-bottom: .5em;
+
-
padding: 1.5em;
+
-
width: 90%;
+
-
}
+
-
+
-
#abstractbox h1, #abstractbox p{
+
-
color: white;
+
-
padding: 0;
+
-
}
+
-
+
-
#abstractbox h1{
+
-
font-size: 1.8rem;
+
-
margin: 0 0 1.5rem 0 !important;
+
-
}
+
-
+
-
#abstractbox + p{
+
-
margin: 0;
+
-
padding: 0;
+
-
}
+
-
+
-
div.thumb{
+
-
border: none;
+
-
margin: 1em 0;
+
-
}
+
-
+
-
div.thumb div{
+
-
background: #FFFFFF;
+
-
border: none;
+
-
}
+
-
+
-
div.thumb > div{
+
-
box-shadow: 0px 2px 5px #AAAAAA;
+
-
}
+
-
+
-
/*figure*/
+
-
div.thumb div a img{
+
-
border: none;
+
-
}
+
-
+
-
/*caption*/
+
-
div.thumb div div.thumbcaption{
+
-
border-top: 2px solid #AAAAAA;
+
-
color: #333333;
+
-
font-family: Roboto, sans-serif;
+
-
font-size: .9rem;
+
-
font-weight: 500;
+
-
line-height: 1.2rem;
+
-
padding-top: .7em !important;
+
-
}
+
-
+
-
</style>
+
<script>
<script>
Line 124: Line 13:
var white = $('#whiteheader');
var white = $('#whiteheader');
var content = $('#maincontent');
var content = $('#maincontent');
 +
var ems = $("#em").height();
var ems = $("#em").height();
var pos = sidebar.offset().top - (4*ems);
var pos = sidebar.offset().top - (4*ems);
Line 129: Line 19:
$(window).scroll(function(){
$(window).scroll(function(){
-
//fades in the white header when the white portion hits the top
+
//resolution-specific
-
if(window.pageYOffset > pos){
+
if(viewport().width > 768){
-
sidebar.css('position', 'fixed');
+
//locks the sidebar
-
content.css('margin-left', '23%');
+
if(window.pageYOffset > pos){
-
var margin = 4 * ems;
+
sidebar.addClass('fixed');
-
sidebar.css('margin-top', margin);
+
content.addClass('fixed');
 +
/*
 +
var margin = 4 * ems;
 +
sidebar.css('margin-top', margin);
 +
//*/
 +
}
 +
//allows it to move again
 +
else{
 +
sidebar.removeClass('fixed');
 +
content.removeClass('fixed');
 +
 +
/*
 +
var margin = 9 * ems;
 +
sidebar.css('margin-top', margin);
 +
//*/
 +
}
}
}
-
//fade out otherwise
 
else{
else{
-
sidebar.css('position', 'relative');
+
//reset everything just in case they're set
-
content.css('margin-left', '2%');
+
sidebar.removeClass('fixed');
-
var margin = 9 * ems;
+
content.removeClass('fixed');
-
sidebar.css('margin-top', margin);
+
}
}
-
 
});
});
Line 155: Line 57:
<div id="maincontainer">
<div id="maincontainer">
<nav id="sidebar">
<nav id="sidebar">
-
</html>{{{SIDENAV|
+
</html>
 +
{{{SIDENAV|
<html>
<html>
<ul>
<ul>
-
<li><a href="#">Link 1</a></li>
+
<li><a href="#">Link 1</a>
 +
<ul>
 +
<li><a href="#">Submenu Link First</a></li>
 +
<li><a href="#">Submenu Link Beta-Lactamase</a></li>
 +
<li><a href="#">Submenu Link Q</a></li>
 +
<li><a href="#">Submenu Link QQQ</a></li>
 +
</ul>
 +
</li>
<li><a href="#">Link 2</a></li>
<li><a href="#">Link 2</a></li>
-
<li><a href="#">Link 3</a></li>
+
<li><a href="#">Link 3</a>
 +
<ul>
 +
<li><a href="#">Submenu Link</a></li>
 +
<li><a href="#">Submenu Link On Two Lines or Something</a></li>
 +
<li><a href="#">Submenu Link X</a></li>
 +
<li><a href="#">Submenu Link YZAlpha</a></li>
 +
</ul>
 +
</li>
<li><a href="#">Link 4</a></li>
<li><a href="#">Link 4</a></li>
<li><a href="#">Longer Link 5</a></li>
<li><a href="#">Longer Link 5</a></li>
Line 170: Line 87:
<div id="maincontent">
<div id="maincontent">
-
+
<div id="abstractcontainer" class="</html>{{{NOCHALK|}}}<html>">
-
<div id="abstractbox">
+
<div id="abstractbox">
-
</html>
+
</html>
-
{{{ABSTRACT|
+
{{{ABSTRACT|
 +
<html>
 +
<h1>We have a tagline.</h1>
 +
<p>This is the place where you can put a brief descriptive blurb that describes what this page is all about. Try to keep it short and sweet since we want this to grab the readers' attention and let them read further down. What is the purpose of this page?</p>
 +
</html>
 +
}}}
<html>
<html>
-
<h1>We have a tagline.</h1>
+
</div>
-
<p>This is the place where you can put a brief descriptive blurb that describes what this page is all about. Try to keep it short and sweet since we want this to grab the readers' attention and let them read further down. What is the purpose of this page? You're trying to be a little edgy, right?</p>
+
</html>
</html>
-
}}}
+
{{{CHALK|}}}
-
<html>
+
<html>
</div>
</div>
</html>
</html>

Latest revision as of 16:59, 28 October 2013

FREDsense's website works best with Javascript enabled, especially on mobile devices. Please enable Javascript for optimal viewing.

We have a tagline.

This is the place where you can put a brief descriptive blurb that describes what this page is all about. Try to keep it short and sweet since we want this to grab the readers' attention and let them read further down. What is the purpose of this page?

This is another body of content. Add whatever you feel like here.

Aliquam et mauris ut quam molestie volutpat. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vitae malesuada leo. Donec tincidunt ornare tortor eget tristique. Quisque lacus sapien, luctus eu blandit id, gravida ut risus. Vivamus a scelerisque nisl. Vestibulum at sodales massa, nec dapibus ante. In in nulla quis nunc facilisis auctor. Donec semper lectus eu sollicitudin consequat.

Title appearance

Subheader

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus luctus orci quis blandit porttitor. Proin convallis lobortis consectetur. Integer metus quam, fermentum ut massa in, vehicula interdum velit. Curabitur in volutpat est. In tincidunt enim in facilisis rutrum. Morbi ut purus tellus. Integer pretium justo sagittis, ultricies turpis vitae, lacinia eros. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Morbi vel leo lacinia, accumsan nibh sed, molestie dui. Sed a ligula eget sem faucibus placerat id vitae nunc. Donec pellentesque, ante ut vehicula laoreet, magna metus faucibus ante, eu suscipit lorem tortor a ipsum. Vestibulum bibendum eget dolor a pulvinar. Vivamus scelerisque malesuada euismod. Mauris at aliquam mi. Morbi suscipit nunc in urna aliquam, non scelerisque tellus porta.

Third subheader

Nulla pharetra nisi quam, non aliquam risus volutpat eget. Proin semper, sapien sed pulvinar aliquam, nibh augue egestas sapien, at sodales magna magna eget leo. Mauris sem lorem, sagittis accumsan tellus quis, interdum consectetur nunc. Etiam accumsan, sem id scelerisque dapibus, quam felis lobortis elit, sed molestie neque tortor eget dui. Etiam at imperdiet turpis, vitae lacinia est. Nulla non urna posuere, ultrices eros ac, blandit ante. Aenean et arcu ornare, venenatis turpis eget, molestie ipsum. Nunc dignissim nulla imperdiet rutrum tempor.