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
// --- | |
// Sass (v3.2.9) | |
// --- | |
$color-one: red; | |
$color-two: blue; | |
@mixin color($prefix, $colors) { | |
@each $color in $colors { |
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
<html class="no-js no-touch"> | |
<script>(function(docEl) { | |
docEl.className = docEl.className.replace(/\bno-js\b/, 'js'); | |
if ('ontouchstart' in docEl) { docEl.className = docEl.className.replace(/\bno-touch\b/, 'touch'); } | |
})(document.documentElement);</script> | |
<!-- <link stylsheet /> | |
<body> | |
<script> --> | |
</html> |
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
$flex-media-selector: false !default; // false: @extend will be used (or include if extend is not appropriate); | |
$flex-media-default-ratio: 1 !default; | |
$flex-media-ratios: "16-9" 16/9, "4-3" 4/3, "1-1" 1 !default; | |
$flex-media-selector-prefix: ".flex-media--" !default; | |
$flex-media-class: ".flex-media__item" !default; | |
$flex-media-overflow: hidden !default; | |
$flex-media-unknown-suffix: "unknown" !default; | |
// requirements | |
@mixin flex-media-requirements( |
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
<!doctype html> | |
<!-- require livereload --> | |
<link rel="stylesheet" href="index.css"></script> | |
<!-- require templates/* --> | |
<script src="index.js"></script> |
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
/* Templates Rules (using Sass placeholders) */ | |
%template-name | |
%template-name--modifier-name | |
%template-name__sub-object | |
%template-name__sub-object--modifier-name | |
/* Component Rules */ | |
.component-name | |
.component-name--modifier-name | |
.component-name__sub-object |
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
/*global module:false require:true*/ | |
module.exports = function(grunt) { | |
"use strict"; | |
grunt.loadNpmTasks('grunt-contrib-concat'); | |
grunt.loadNpmTasks('grunt-contrib-uglify'); | |
// set option | |
grunt.option('env', typeof grunt.option('env') !== 'undefined' ? grunt.option('env') : 'dev'); |
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 getRealFirstChild(el){ | |
var firstChild = el.firstChild; | |
// skip TextNodes | |
while(firstChild !== null && firstChild.nodeType === 3) { | |
firstChild = firstChild.nextSibling; | |
} | |
return firstChild; | |
} | |
function getRealChilds(el){ |
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
// querySelectorAll polyfill | |
(function(window){ | |
var document = window.document; | |
//No need to polyfill | |
if(document.querySelector) { | |
return; | |
} | |
var polyfill_querySelectorAll = function (element, selector) { |
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
{ | |
"//field": "These 'double quote' 'double quote' are used as comments, because JSON doesnt' allow comment", | |
"field": {}, | |
"#another-field": "Another comment", | |
"another-field": {}, | |
"/*stuff": "Be careful to use them when you have full control of the content :)", | |
"stuff": [], | |
"bla": "bla" | |
} |
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
... |