Template:Team:Calgary Entrepreneurial/BasicPage

From 2013.igem.org

(Difference between revisions)
 
(62 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;*/ /*weird borders on iOS with background*/
+
-
display: inline-block;
+
-
min-width: 100px;
+
-
margin-right: 0;
+
-
margin-top: 9em;
+
-
max-width: 270px;
+
-
position: relative;
+
-
width: 24%;
+
-
}
+
-
+
-
/*only cascades when the sidebar hits the top*/
+
-
#sidebar.fixed{
+
-
margin-top: 4em;
+
-
position: fixed;
+
-
}
+
-
+
-
#sidebar ul{
+
-
border: none;
+
-
border-right: 3px solid #777777;
+
-
}
+
-
+
-
#sidebar ul li{
+
-
display: block;
+
-
margin: 0;
+
-
padding: 0.5em 1em 0.5em 0.5em;
+
-
text-align: right;
+
-
}
+
-
+
-
#sidebar ul li a{
+
-
color: #333333 !important;
+
-
font-size: 1.2rem;
+
-
line-height: 1.35rem;
+
-
padding: 0;
+
-
}
+
-
+
-
#sidebar ul li a:hover{
+
-
background: transparent;
+
-
color: #7cb83d !important;
+
-
}
+
-
 
+
-
/*submenu*/
+
-
#sidebar ul li ul{
+
-
border: none;
+
-
margin: .5em .5em -.5em 0; /*adjusts positioning to bottom w/ indent*/
+
-
}
+
-
/*submenu li*/
+
-
#sidebar ul li ul li{
+
-
margin: 0;
+
-
padding: .25em 0;
+
-
}
+
-
+
-
/*submenu link*/
+
-
#sidebar ul li ul li a{
+
-
color: #000000 !important;
+
-
font-size: 1rem;
+
-
font-weight: 500;
+
-
line-height: 1.2rem;
+
-
}
+
-
+
-
#maincontent{
+
-
display: inline-block;
+
-
float: right;
+
-
width: 72.5%;
+
-
margin-left: 0;
+
-
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;
+
-
}
+
-
 
+
-
@media screen and (max-width: 1050px){
+
-
#sidebar ul{
+
-
border: none;
+
-
border-right: 3px solid #777777;
+
-
}
+
-
+
-
#sidebar ul li{
+
-
display: block;
+
-
padding: 0.35em .75em 0.35em 0.5em;
+
-
text-align: right;
+
-
}
+
-
+
-
#sidebar ul li a{
+
-
color: #333333 !important;
+
-
font-size: 1.05rem;
+
-
line-height: 1.2rem;
+
-
padding: 0;
+
-
}
+
-
 
+
-
#sidebar ul li ul{
+
-
margin-bottom: -.2em;
+
-
}
+
-
+
-
/*submenu li*/
+
-
#sidebar ul li ul li{
+
-
margin: 0;
+
-
padding: .25em 0;
+
-
}
+
-
+
-
/*submenu link*/
+
-
#sidebar ul li ul li a{
+
-
color: #000000 !important;
+
-
font-size: .9rem;
+
-
font-weight: 500;
+
-
line-height: 1.1rem;
+
-
}
+
-
+
-
#maincontent{
+
-
width: 74%;
+
-
}
+
-
}
+
-
 
+
-
</style>
+
<script>
<script>
Line 201: Line 19:
$(window).scroll(function(){
$(window).scroll(function(){
-
//locks the sidebar
+
//resolution-specific
-
if(window.pageYOffset > pos){
+
if(viewport().width > 768){
-
sidebar.addClass('fixed');
+
//locks the sidebar
-
content.addClass('fixed');
+
if(window.pageYOffset > pos){
-
/*
+
sidebar.addClass('fixed');
-
var margin = 4 * ems;
+
content.addClass('fixed');
-
sidebar.css('margin-top', margin);
+
/*
-
//*/
+
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);
 +
//*/
 +
}
}
}
-
//allows it to move again
 
else{
else{
 +
//reset everything just in case they're set
sidebar.removeClass('fixed');
sidebar.removeClass('fixed');
content.removeClass('fixed');
content.removeClass('fixed');
-
 
-
/*
 
-
var margin = 9 * ems;
 
-
sidebar.css('margin-top', margin);
 
-
//*/
 
}
}
-
 
});
});
Line 232: 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 247: 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.