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
| /* | |
| Gulpfile.js file for the tutorial: | |
| Using Gulp, SASS and Browser-Sync for your front end web development - DESIGNfromWITHIN | |
| http://designfromwithin.com/blog/gulp-sass-browser-sync-front-end-dev | |
| Steps: | |
| 1. Install gulp globally: | |
| npm install --global gulp |
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 | |
| <?php | |
| /** | |
| * @file | |
| * Includes preproces of html | |
| */ | |
| /** | |
| * Implements hook_preprocess_html(). | |
| */ |
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
| /* Override inline dom styles from modal.js */ | |
| #modalContent { | |
| position: fixed !important; | |
| top: 12% !important; | |
| bottom: 12% !important; | |
| right: 4% !important; | |
| left: 4% !important; | |
| } | |
| /* Limit max width to 1000px */ | |
| div.ctools-modal-content { |
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
| @import "susy"; | |
| $total-columns : 7; | |
| $column-width : 4em; | |
| $gutter-width : 1em; | |
| $grid-padding : $gutter-width; | |
| $break : 12; | |
| @mixin flex-span-columns($columns, $context: $total-columns, $padding: false, $from: $from-direction, $style: fix-static-misalignment()){ | |
| @include span-columns($columns, $context, $padding, $from, $style); |
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
| // Margins and Padding | |
| // ------------------------- | |
| $i: 0; | |
| @while $i <= 50 { | |
| .mt#{$i} { margin-top: 1px * $i; } | |
| .mb#{$i} { margin-bottom: 1px * $i; } | |
| .ml#{$i} { margin-left: 1px * $i; } | |
| .mr#{$i} { margin-right: 1px * $i; } | |
| .pt#{$i} { padding-top: 1px * $i; } |
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
| module.exports = function (grunt) { | |
| "use strict"; | |
| var neat = require('node-neat').includePaths; | |
| // Config... | |
| grunt.initConfig({ | |
| pkg: grunt.file.readJSON('package.json'), | |
| connect: { | |
| server: { | |
| options: { | |
| port: 9001, |
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
| module Jekyll | |
| module Generators | |
| class Pagination | |
| # Monkey patch this method to exclude some cats and tags from all standard | |
| # paginators | |
| # | |
| # For this to take effect, you have to define a ``exclude_home`` property in your _config.yml: | |
| # | |
| # exclude_home: | |
| # categories: [notes] |
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() { | |
| var slider, // Global slider value to force playing and pausing by direct access of the slider control | |
| canSlide = true; // Global switch to monitor video state | |
| // Load the YouTube API. For some reason it's required to load it like this | |
| var tag = document.createElement('script'); | |
| tag.src = "//www.youtube.com/iframe_api"; | |
| var firstScriptTag = document.getElementsByTagName('script')[0]; | |
| firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); | |
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 urlFromHash() { | |
| if (location.hash.substr(0, 2) != '#!') { | |
| return null; | |
| } | |
| // why not location.hash? => http://stackoverflow.com/q/4835784/298479 | |
| return location.href.split('#')[1].substr(1); | |
| } | |
| $('#gallery').magnificPopup({ | |
| type: 'image', |
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
| module.exports = function(grunt) { | |
| grunt.initConfig({ | |
| pkg: grunt.file.readJSON('package.json'), | |
| shell: { | |
| jekyllBuild: { | |
| command: 'jekyll build' | |
| }, | |
| jekyllServe: { | |
| command: 'jekyll serve' | |
| } |