Skip to content

Instantly share code, notes, and snippets.

View murger's full-sized avatar
🦎

Gürhan Mermer murger

🦎
View GitHub Profile
@murger
murger / media.scss
Created February 14, 2018 10:59
@media mixin
$breakpoints: (
tiny: 320px,
x-small: 640px,
small: 768px,
medium: 1024px,
large: 1280px,
x-large: 1440px,
);
@mixin media($rule, $bp) {
@murger
murger / getElementsByClassName.js
Created March 22, 2012 14:00
getElementsByClassName polyfill
/**
* This polyfill is originally a part of: http://github.com/murger/Qj/
* MIT license (http://opensource.org/licenses/mit-license.php)
* usage: getElementsByClassName.call(document, 'awesome')
*/
var getElementsByClassName = (function () {
if (typeof document.getElementsByClassName === 'function') {
return document.getElementsByClassName;
}