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
error_reporting(E_ALL); | |
ini_set('display_errors', TRUE); | |
ini_set('display_startup_errors', 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
/** | |
* @file | |
* Custom theme mixins | |
* | |
* These mixins rely on these variables set these in your init or var file | |
* | |
* $breakpoints: ( | |
* lap: 768px, | |
* desk: 1024px | |
* ); |
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
/* mini reset */ | |
h1,h2,h3,h4,h5,h6,ol,ul,p { | |
margin-top: 0; | |
margin-bottom: $spacing-unit-base; | |
} |
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
/** | |
* @file | |
* A collection of sass functions. | |
*/ | |
/** | |
* spacing unit | |
* This function returns either the base spacing unit, or | |
* the modification passed through. Accepts fractions or decimals | |
* |
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
// Require Gulp | |
var gulp = require('gulp'); | |
var sass = require('gulp-sass'); | |
var sourcemaps = require('gulp-sourcemaps'); | |
var prefix = require('gulp-autoprefixer'); | |
var watch = require('gulp-watch'); | |
// Gulp Sass Task | |
gulp.task('sass', function() { | |
gulp.src('sass/**/*.scss') |
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
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title> | |
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}"> | |
<!-- Inline critical css --> |
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
// Require Gulp | |
var gulp = require('gulp'); | |
var sass = require('gulp-sass'); | |
var sourcemaps = require('gulp-sourcemaps'); | |
var prefix = require('gulp-autoprefixer'); | |
var watch = require('gulp-watch'); | |
var critical = require('critical'); | |
// Gulp Sass Task | |
gulp.task('sass', function() { |
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
/** | |
* Implements hook_theme(). | |
*/ | |
function custom_field_theme() { | |
return array( | |
'custom_field' => array( | |
'template' => 'templates/custom-field', | |
'variables' => array( | |
'name' => NULL, | |
'content' => NULL, |
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
.view-products { | |
.view-content { | |
// micro clearfix, I have a mixin | |
&:after { | |
content: " "; | |
display: table; | |
clear: both; | |
} | |
} | |
OlderNewer