Skip to content

Instantly share code, notes, and snippets.

View jestho's full-sized avatar

Jesper Thøgersen jestho

View GitHub Profile
@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);
// ----
// Sass (v3.4.4)
// Compass (v1.0.1)
// ----
$default-list: (
key1 : value1,
key2 : value2
) !default;
@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;
@jestho
jestho / .npmrc
Last active August 29, 2015 14:07
Dokku Grunt
unsafe-perm = true
@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 / arrows.scss
Last active January 30, 2016 21:21
Generated by SassMeister.com.
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
div {
background: #000;
margin: 1em auto;
width: 5em;
height: 5em;
@jestho
jestho / getset.scss
Last active January 30, 2016 21:23
set/get args
// ----
// libsass (v3.2.5)
// ----
$args-map: () !default;
@function set($id, $args...) {
$new-args: ($id: $args);
$args-map: map-merge($args-map, $new-args) !global;
@return map-get($args-map, $id);
@jestho
jestho / SuperDuperBreakpoints.css
Last active August 29, 2015 14:27
Generated by SassMeister.com.
/* Media Query */
@media (max-width: 767px) {
body {
content: "Small screen"; } }
@media (min-width: 768px) and (max-width: 1024px) {
body {
content: "Medium screen"; } }
@media (min-width: 1025px) {
@jestho
jestho / esnextbin.md
Created March 20, 2016 19:21
esnextbin sketch
@jestho
jestho / esnextbin.md
Last active October 13, 2016 10:18
esnextbin sketch