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
// update paths as needed if /fonts/ is not right for your site | |
@mixin font-face($fontname, $filename: $fontname, $weight: normal, $style: normal) { | |
@font-face { | |
font-family: $fontname; | |
src: url('/fonts/#{$filename}.woff2') format('woff2'), | |
url('/fonts/#{$filename}.woff') format('woff'); | |
font-weight: $weight; | |
font-style: $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
// Include gulp | |
var gulp = require('gulp'); | |
// Polyfill so we don't need >= node 0.12 | |
require('es6-promise').polyfill(); | |
// Include plugins | |
var sass = require('gulp-sass'); | |
var minifyCSS = require('gulp-minify-css'); | |
var autoprefixer = require('gulp-autoprefixer'); |
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
sudo apt-get install -y python-software-properties python g++ make | |
sudo add-apt-repository ppa:chris-lea/node.js | |
sudo apt-get update | |
sudo apt-get install -y nodejs | |
sudo npm install -g bower | |
sudo chown -R $(whoami) ~/.npm |
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 families! | |
.font-face(@fontname; @filename: @fontname; @weight: normal; @style: normal) { | |
// based on font squirrel output, without SVG (too legacy) | |
@font-face { | |
font-family: @fontname; | |
src:url('../fonts/@{filename}.eot'); | |
src:url('../fonts/@{filename}.eot?#iefix') format('embedded-opentype'), | |
url('../fonts/@{filename}.woff2') format('woff2'), | |
url('../fonts/@{filename}.woff') format('woff'), | |
url('../fonts/@{filename}.ttf') format('truetype'); |
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 families! | |
@mixin font-face($fontname, $filename: $fontname, $weight: normal, $style: normal) { | |
// based on font squirrel output, without SVG (too legacy) | |
@font-face { | |
font-family: $fontname; | |
src:url('../fonts/#{$filename}.eot'); | |
src:url('../fonts/#{$filename}.eot?#iefix') format('embedded-opentype'), | |
url('../fonts/#{$filename}.woff2') format('woff2'), | |
url('../fonts/#{$filename}.woff') format('woff'), | |
url('../fonts/#{$filename}.ttf') format('truetype'); |