This file contains 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 generate-color-classes(){ | |
@each $name, $color in $foundation-palette { | |
.color-#{$name}{ | |
color: $color; | |
} | |
.background-#{$name}{ | |
background-color: $color; | |
} | |
} | |
} |
This file contains 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 | |
namespace Roots\Sage\PDF; | |
use Roots\Sage\Assets; | |
/* | |
add_filter( 'query_vars', function ( $query_vars ) { | |
$query_vars[] = 'pdf'; | |
return $query_vars; | |
} ); |
This file contains 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
# deploy.rb from https://github.com/roots/bedrock-capistrano modified by FEW Agency, https://github.com/fewagency/ | |
# FEW-comment: from Capistrano doc: | |
# Here we'd set the name of the application, must be in a format that's safe for | |
# filenames on your target operating system. | |
set :application, 'APPLICATIONNAME' | |
# FEW-comment: use the SSH url for the repo from GitHub | |
set :repo_url, '[email protected]:USER/REPO.git' |
This file contains 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
## Description Add the below To any Foundation 6 theme and change the iniialUlClass to whatever your tab ul class is. | |
## Author : Daniel Coull <[email protected]> | |
var tabsToAccordian = { | |
initialUlClass: '.easytabs', | |
accordian: null, | |
tabs:null, |
This file contains 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
body.is-reveal-open { | |
overflow: visible; | |
} | |
.reveal-overlay { | |
overflow-y: hidden; | |
} |
This file contains 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
add_filter('template_include', function(){ | |
if(is_tax('taxonomy-name')) | |
$template = get_query_template('archive-post-type'); | |
return $template; | |
}); |
This file contains 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 fetch(:stage) == 'production' | |
set :application, 'example.com' | |
else | |
set :application, 'staging.example.com' | |
end | |
set :repo_url, '[email protected]:example/example.com.git' | |
# Branch options | |
# Prompts for the branch name (defaults to current branch) |
This file contains 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 createFunctionWithTimeout(callback, opt_timeout) { | |
var called = false; | |
function fn() { | |
if (!called) { | |
called = true; | |
callback(); | |
} | |
} | |
setTimeout(fn, opt_timeout || 1000); | |
return fn; |
This file contains 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
figure { display: table; } | |
figcaption { display: table-caption; caption-side: bottom ; } |
NewerOlder