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
// =================================================== | |
// Font Face Rules | |
// =================================================== | |
@font-face { | |
font-family: 'Clear Sans'; | |
font-style: normal; | |
font-weight: 100; | |
src: local('ClearSans-Thin'), local('Clear Sans Thin'), | |
url('../fonts/clearsans/ClearSans-Thin.eot'), |
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
<!-- The `data-ratio` attribute contains the width and height of the image --> | |
<div data-ratio="560-300" class="responsive-wrapper"> | |
<img src="http://placehold.it/560x300" class="fill-container"/> | |
</div> | |
<div data-ratio="420-315" class="responsive-wrapper"> | |
<iframe width="420" height="315" src="//www.youtube.com/embed/dQw4w9WgXcQ?rel=0" frameborder="0" allowfullscreen class="fill-container"></iframe> | |
</div> |
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
// Generated on 2014-03-14 using generator-webapp 0.4.8 | |
'use strict'; | |
// # Globbing | |
// for performance reasons we're only matching one level down: | |
// 'test/spec/{,*/}*.js' | |
// use this if you want to recursively match all subfolders: | |
// 'test/spec/**/*.js' | |
module.exports = function (grunt) { |
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
// -------------------------------------------------- | |
// Flexbox LESS mixins | |
// The spec: http://www.w3.org/TR/css3-flexbox | |
// -------------------------------------------------- | |
// Flexbox display | |
// flex or inline-flex | |
.flex-display(@display: flex) { | |
.old-flex-display(@display); | |
display: ~"-webkit-@{display}"; |
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
//- The breacrumb text and links | |
-var menu = { 'item 1': '#', 'item 2': '#', 'item 3': '#', 'item 4' : '#', 'item 5': '#'} | |
//- Allow us to override this within a child template | |
block vars | |
-var selected = 'item 1' //- default | |
-var enabled = true //- Use links until changed to disabled, then use divs | |
ol.breadcrumb | |
each val, key in menu |
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
<?php | |
class description_walker extends Walker_Nav_Menu | |
{ | |
function start_el(&$output, $item, $depth, $args) | |
{ | |
global $wp_query; | |
$indent = ( $depth ) ? str_repeat( "\t", $depth ) : ''; | |
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
var p = new $.Deferred().resolve(); | |
$.each([ | |
[$marker, 100], | |
[$america, 150], | |
[$england, 80], | |
[$australia, 300] | |
], function(_, x) { | |
p = p.then(function() { | |
return x[0].animate({ | |
top : x[1]+'px' |
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
<fieldset> | |
<legend class="section-title">Direct Debit Details</legend> | |
<div class="form-row"> | |
<fieldset> | |
<legend>Sort Code</legend> | |
<div class="input-wrap input-type-text js-combine-trigger"> | |
<label for="q13-1">First 2 digits of sort code</label> | |
<input type="text" id="q13-1" minlength="2" maxlength="2" pattern="[0-9]" required aria-required="true"> | |
</div> | |
<div class="input-wrap input-type-text js-combine-trigger"> |
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
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
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
.responsive-img(@width, @height) { | |
@ratio: (@height / @width) * 100; | |
position: relative; | |
padding-bottom: ~"@{ratio}%"; | |
height: 0; | |
img { | |
position: absolute; | |
top: 0; |