Skip to content

Instantly share code, notes, and snippets.

View jestho's full-sized avatar

Jesper Thøgersen jestho

View GitHub Profile
@jestho
jestho / _important.scss
Last active January 30, 2016 21:22
Function for determining important selectors. Nice for frameworks.
// ----
// Sass (v3.4.12)
// ----
@function _important() {
$apply-importants: true !default;
@return if($apply-importants, !important, null);
}
@jestho
jestho / .npmrc
Last active August 29, 2015 14:07
Dokku Grunt
unsafe-perm = true
@jestho
jestho / Creator.scss
Last active August 29, 2015 14:07
Inspired by csstyle (www.csstyle.io)
$elem-prefix: "" !default;
$part-prefix: "__" !default;
$mod-prefix: "--" !default;
@function get-element($elem) {
@return "." + $elem-prefix + $elem;
}
@function get-part($part) {
@return $part-prefix + $part;
// ----
// Sass (v3.4.4)
// Compass (v1.0.1)
// ----
$default-list: (
key1 : value1,
key2 : value2
) !default;
@jestho
jestho / Pulsating background
Last active August 29, 2015 14:06
Generated by SassMeister.com.
// ----
// Sass (v3.4.0.rc.1)
// Compass (v1.0.0.alpha.20)
// ----
$pulse-bg-colors: ();
@mixin pulse-bg($color) {
// Name the current animation for later use.
$animation-id: 'pulse-bg_' + str-slice(inspect($color), 2);