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) { | |
// load all grunt tasks | |
pkg: grunt.file.readJSON('package.json'), | |
// Project configuration. | |
grunt.initConfig({ | |
copy: { | |
dist: { |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
/* | |
* Grid | |
*/ | |
@import "vars"; | |
#grid { | |
/* Dimensions - same width as your grid with gutters */ | |
width: $max-width; |
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
util = require "gulp-util" | |
exec = require("child_process").exec | |
gulp.task "_fontcustom", (fontsDone) -> | |
exec 'cd ../assets/ && fontcustom compile', (error, stdout, stderr) -> | |
util.log stdout | |
logExit error if error | |
fontsDone() | |
return | |
return |
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
React = require "react" | |
Style = require 'utils/style-constants' | |
_ = require 'lodash' | |
ReactTransitionGroup = React.addons.TransitionGroup | |
VelocityTransitionGroupChild = React.createClass | |
displayName: "VelocityTransitionGroupChild" |
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
React = require 'react/addons' | |
module.exports = React.createClass | |
displayName: 'Icon' | |
propTypes: | |
className: React.PropTypes.string | |
icon: React.PropTypes.string.isRequired | |
render: -> | |
React.createElement 'span', | |
dangerouslySetInnerHTML: |
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
gulp = require('gulp') | |
util = require('gulp-util') | |
environmentHelper = require('./gulp/environmentHelper') | |
fileserver = require('./fileserver.coffee') | |
target = environmentHelper.get('target', 'dist/') | |
skipWatch = environmentHelper.get('skipWatch', 'false') | |
fs = require 'fs' | |
logExit = (error) -> | |
util.log util.colors.red(error) |
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
exports.init = (gulp) -> | |
theo = require('theo') | |
props = './styles/properties/props.json' | |
dest = './styles/generated' | |
_ = require 'lodash' | |
gulp.task 'default', ['theo-sass', 'theo-js'] | |
gulp.task 'theo-sass', (done) -> |
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
Style = require '../styles/props' | |
_ = require 'lodash' | |
module.exports = | |
_setScreenWidth: -> | |
if @isMounted() then @setState {screenWidth: window.innerWidth} | |
getInitialState: -> screenWidth: window?.innerWidth or 1280 | |
screenWidth: (minName, maxName) -> |
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 = React.createClass | |
displayName: 'InViewWrapper' | |
propsTypes: | |
onInView: React.PropTypes.func.isRequired | |
inViewOffset: React.PropTypes.number | |
getDefaultProps: -> | |
inViewOffset: 0 |
OlderNewer