Skip to content

Instantly share code, notes, and snippets.

View patrickpietens's full-sized avatar

Patrick Pietens patrickpietens

View GitHub Profile
$colors: (
// Basic colors
black: rgb(34, 34, 34),
white: rgb(255, 255, 255),
grey: rgb(245, 245, 245),
// Text styles
default-text-color: rgb(34, 34, 34),
dimmed-text-color: rgb(178, 178, 178),
@function rem($value) {
@return ($value / 10) * 1rem;
}
@mixin hardware-accelerate() {
transform: rotateZ(0);
}
@mixin clearfix() {
overflow: hidden;
@patrickpietens
patrickpietens / gist:36a068100e1c3d5d6b9d
Created March 30, 2015 10:31
Mediaquery mixin to rule them all
$breaks: (
"small": (min: 0em, max: 34.99em),
"normal": (min: 35em, max: 47.99em),
"wide": (min: 48em, max: 64.99em),
"widest": (min: 65em, max: null)
);
@mixin only-responds-to($breakpoint, $portrait: false) {
$myBreakpoint: map-get($breaks, $breakpoint);
$myMin: map-get($myBreakpoint, min);
@patrickpietens
patrickpietens / gist:91f0ef604a73005aea8f
Last active August 29, 2015 14:03
Fix: sortupdate not fired when sorting multiple lists
/*
* HTML5 Sortable jQuery Plugin
* http://farhadi.ir/projects/html5sortable
*
* Copyright 2012, Ali Farhadi
* Released under the MIT license.
*/
(function($) {
var dragging, placeholders = $();
$.fn.sortable = function(options) {