View breakpoints.scss
@function str-split($string, $separator) { | |
$split-arr: (); | |
$index : str-index($string, $separator); | |
@while $index != null { | |
$item: str-slice($string, 1, $index - 1); | |
$split-arr: append($split-arr, $item); | |
$string: str-slice($string, $index + 1); | |
$index : str-index($string, $separator); | |
} |
View dynamic_colors.scss
$colors: ( | |
null: #000, | |
"body.color-red": #f00, | |
"body.color-green": #0f0, | |
"body.color-blue": #00f, | |
); | |
@mixin colors() { | |
@each $scope, $color in $colors { | |
@if $scope == null { |
View url_parser.html
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>URL Parser</title> | |
<meta charset="utf-8" /> | |
<style> | |
html, body { | |
height: 100%; | |
} |
View lib.jq
# === Type utilities === | |
def isnumber: | |
type == "number"; | |
def isboolean: | |
type == "boolean"; | |
def isarray: | |
type == "array"; |
View 0_grid-gutters.scss
@import "functions"; | |
@import "variables"; | |
@import "mixins"; | |
@import "utilities"; |
View utilities.scss
@function negativify-map($map) { | |
$result: (); | |
@each $key, $value in $map { | |
@if $key != 0 { | |
$result: map-merge($result, ("n" + $key: (-$value))); | |
} | |
} | |
@return $result; | |
} |