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
#======================================== | |
# Static Asset Build Makefile | |
# | |
# Author: Wilson Page | |
#======================================== | |
# Shortcuts | |
build-tools = build/tools/ | |
css-dir = static/css/ |
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
.overlay { | |
background: #333; | |
border: solid 1px; | |
border-color: #666 #222 #111 #555; | |
border-radius: 10px; | |
box-shadow: | |
0px 0px 18px rgbA(0,0,0,0.28), | |
1px 1px 6px rgbA(0,0,0,0.2), | |
inset 0px 3px 6px rgbA(255,255,255,0.1); | |
} |
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
#overlay-container { | |
display: none; /* hidden by default */ | |
position: fixed; | |
left: 0px; | |
top: 0px; | |
width: 100%; | |
height: 100%; | |
-webkit-box-orient: horizontal; |
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
/****************************************** | |
** CORE | |
******************************************/ | |
#overlay-container { | |
display: none; /* hidden by default */ | |
position: fixed; | |
left: 0px; | |
top: 0px; |
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
/** | |
* Used to transform a query string of params and | |
* values into a useful javascript object. | |
* | |
* @param {String} str | |
* @return {Object} | |
*/ | |
function parseQueryString(str) { | |
var |
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
/** | |
* Registers module as CommonJS or AMD if support is found | |
* and creates an exports object for the module to use | |
* | |
* @param {boolean} cjs | |
* @param {boolean} amd | |
* @param {Object} ex | |
* @return {Object} | |
*/ | |
var exports = (function(cjs, amd, ex){ |
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
var commentsSchema = new Schema({ | |
content: { type: String }, | |
_user: { type: Schema.ObjectId, ref: 'users' }, | |
}); | |
//... | |
// Get a comment without populating |
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
.module-x { | |
background-color: red; | |
} | |
/** | |
* Exposed API | |
*/ | |
@mixin module-x-blue { | |
background-color: blue; |
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
var Builder = require('component-builder'); | |
var path = require('path'); | |
var fs = require('fs'); | |
var async = require('async'); | |
var builder = new Builder(__dirname + '/../client/item-view'); | |
builder.use(compileSass); | |
builder.build(function(err, res){ |
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 parents(el, cl) { | |
while ((el = el.parentNode) && !~el.className.indexOf(cl)); | |
return el; | |
} |