This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin clearfix { | |
*zoom:1; | |
&:before, &:after { content: " "; display: table; } | |
&:after { clear: both; } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Here we define the lower and upper bounds for each media size | |
$small-range: (0em, 40em); /* 0, 640px */ | |
$medium-range: (40.063em, 64em); /* 641px, 1024px */ | |
$large-range: (64.063em, 90em); /* 1025px, 1440px */ | |
$xlarge-range: (90.063em, 120em); /* 1441px, 1920px */ | |
$xxlarge-range: (120.063em); /* 1921px */ | |
// We use these functions to get the ranges for the media queries variables. | |
@function lower-bound($range){ | |
@if length($range) <= 0 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin position($position, $args) { | |
@each $o in top right bottom left { | |
$i: index($args, $o); | |
@if $i and $i + 1 <= length($args) and type-of(nth($args, $i + 1)) == number { | |
#{$o}: nth($args, $i + 1); | |
} | |
} | |
position: $position; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin size($width, $height: $width) { | |
width: $width; | |
height: $height; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function range() { | |
// the outer most container element that wraps the pages | |
var $viewport = $('.viewport'); | |
// the container element for each pages | |
var $page = $('.page'); | |
// viewport dimension | |
var viewX = $viewport.scrollLeft(), | |
viewY = $viewport.scrollTop(), | |
viewWidth = $viewport.width(), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// sanity checks | |
var $map = $('.map-container'); | |
if ($map.length) { | |
// on page load, run the main map handler | |
google.maps.event.addDomListener(window, 'load', originsMap); | |
} | |
// custom map style. see: http://gmaps-samples-v3.googlecode.com/svn/trunk/styledmaps/wizard/index.html | |
var mapStyle = [{featureType:'water',elementType:'all',stylers:[{hue:'#281d01'},{saturation:100},{lightness:-89},{visibility:'simplified'}]},{featureType:'landscape',elementType:'all',stylers:[{hue:'#d2ac43'},{saturation:47},{lightness:-39},{visibility:'on'}]},{featureType:'road',elementType:'all',stylers:[{hue:'#d2ac43'},{saturation:-39},{lightness:-15},{visibility:'off'}]},{featureType:'poi',elementType:'all',stylers:[{hue:'#d2ac43'},{saturation:32},{lightness:-30},{visibility:'off'}]},{featureType:'administrative.province',elementType:'all',stylers:[{hue:'#d2ac43'},{saturation:61},{lightness:7},{visibility:'off'}]},{featureType:'administrative.locality',elementType:'all',stylers:[{hue:'#d2ac43'},{saturation:61},{lightness:54 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? if ($articles->pagination()->hasPages()): ?> | |
<ul class="pagination"> | |
<? if($articles->pagination()->hasNextPage()): ?> | |
<li><a class="prev" href="<?= $articles->pagination()->nextPageURL() ?>">Older posts</a></li> | |
<? endif; ?> | |
<? foreach($articles->pagination()->range(5) as $paging): ?> | |
<li><a href="<?= $articles->pagination()->pageURL($paging); ?>"><?= $paging; ?></a></li> | |
<? endforeach ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.top-bar { | |
background-color: transparent; | |
&.expanded { | |
.title-area { | |
background-color: transparent; | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// jQuery SheepIt Configuration - http://goo.gl/7VrJu | |
// SheepIt plugin defaults | |
var defaults = { | |
separator: '', | |
// controls | |
allowRemoveLast: true, | |
allowRemoveCurrent: true, | |
allowRemoveAll: false, | |
allowAdd: true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- jQuery SheepIt HTML Template - http://goo.gl/7VrJu --> | |
<!-- start: SheepIt Form --> | |
<div id="myform"> | |
<!-- start: Form template--> | |
<div class="template" id="myform_template"> | |
<label for="myform_#index#_name">Name <span id="myform_label"></span></label> | |
<input id="myform_#index#_name" name="myform_name[#index#]" type="text"/> | |
<div> | |
<a href="#" id="myform_remove_current" class="icon-remove-sign"></a> |