Skip to content
Snippets Groups Projects
_01-variables.scss 1.04 KiB
Newer Older
//////////////////////////
// General Variables
// Note: colors should go into
// components/_patterns/00-base/global/01-colors/_color-vars.scss
// and typography into
// components/_patterns/00-base/global/typography/_typography.scss

// Vertical spacing (y).
$space-y: rem-calc(20);

// More space.
$space-y-plus-half: $space-y * 1.5;
$space-y-double: $space-y * 2;
$space-y-triple: $space-y * 3;

// Less space.
$space-y-two-thirds: $space-y * 0.667;
$space-y-half: $space-y / 2;
$space-y-third: $space-y / 3;
$space-y-quarter: $space-y / 4;

// Horizontal spacing (x).
$space-x: rem-calc(26);

M Miller's avatar
M Miller committed
// More space.
$space-x-double: $space-x * 2;

// Less space.
$space-x-half: $space-x / 2;
$space-x-third: $space-x / 3;
$space-x-quarter: $space-x / 4;

// Typography spacing.
$header-margin-after: rem-calc(16);
$header-margin-after-less: rem-calc(8);

// Box spacing.
$padding-y: rem-calc(18);
$padding-x: rem-calc(22);
$padding-y-bottom: rem-calc(6);

// Grid spacing.
$grid-margin-after: rem-calc(24);

// Shadows.
$drop-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);