Skip to content

Instantly share code, notes, and snippets.

View AdamStuartClark's full-sized avatar

Adam Clark AdamStuartClark

View GitHub Profile
[
{
"id": 1,
"fullname": "Holly Wood",
"firstname": "Holly",
"lastname": "Wood",
"email": "[email protected]",
"job": "Talent Scout",
"image": "https://i.pravatar.cc/64",
"dob": "1964/12/20",
@mixin absolute-position($top, $right, $bottom, $left) {
position: absolute;
@if $top != '' {
top: $top;
}
@if $right != '' {
right: $right;
}
@if $bottom != '' {
bottom: $bottom;
@AdamStuartClark
AdamStuartClark / palettes.scss
Created August 15, 2017 09:28
Using a function to call named colour tone variations from a sass map
// MAP: Colour names map (palette) with tone-baed sub-names (light, dark, base, etc)
$palettes: (
blue: (
base: hsla(220, 100%, 20%, 1),
light: hsla(220, 50%, 50%, 1),
dark: hsla(220, 50%, 10%, 1)
),
gold: (
base: hsla(45, 100%, 70%, 1),
light: hsla(45, 100%, 90%, 1),