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
{ | |
"parser": "babel-eslint", | |
"extends": [ | |
"airbnb" | |
], | |
"rules": { | |
"import/newline-after-import": "off" | |
} | |
} |
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
{ | |
"plugins": [ | |
"stylelint-scss" | |
], | |
"extends": [ | |
"stylelint-config-sass-guidelines", | |
"stylelint-config-standard" | |
], | |
"rules": { | |
"indentation": 2, |
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 Code | |
.selector { | |
// This mixin's content block will be wrapped in this media query: | |
// `@media (min-width: 540px)` | |
@include size-class(regular) { | |
width: span(5); | |
@include font-size(auto, vw) { | |
// Will output a font-size property and value within a media query: |
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($) { | |
$.fn.iframeScale = function() { | |
this.each(function() { | |
var $iframe = $(this).find("iframe"); | |
var scaleFactor = $(this).width() / $iframe.width(); | |
$iframe.css({ | |
webkitTransform: "scale(" + scaleFactor + ")", | |
mozTransform: "scale(" + scaleFactor + ")", | |
msTransform: "scale(" + scaleFactor + ")", | |
transform: "scale(" + scaleFactor + ")" |
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> | |
<html> | |
<head> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.29.5"></script> | |
<script type="text/javascript" src="http://polymaps.org/polymaps.min.js?2.5.0"></script> | |
<style type="text/css"> | |
html, body { | |
height: 100%; | |
background: #E6E6E6; |
NewerOlder