Typically used to name and normalize spaces in a project. Used for spaces within and between modules and elements of the design. Also takes a multiplier as a second argument. Handy if you want to negate numbers for examples
// setup variable
$sizes: (
huge : 1rem * ($s-golden * 2),
large : 1rem * $s-golden,
medium : 1rem,
small : 1rem * .5
tiny : 1rem * .25
) !default;
// renders a space
@include size(
$name: medium, // name in $sizes
$multiplier: 1 // multiplier
);
Sets up the basic typography for your project. Make sure to set a $breakpoint-default in the settings and populate the $types starting with your default breakpoint. After that the only thing that needs to be defined is whatever differs for each breakpoint.
// setup variable
$types: (
desktop: (
default: (
font-size : 1rem,
font-family : $t-default-font-family,
),
title: (
font-weight : $t-bold,
font-size : 1.75rem,
line-height : 1.2
),
paragraph: (
font-size : 1rem
)
),
mobile: (
default: (
font-size : 1.25rem,
),
title: (
font-size : 3.5rem
)
)
);
// include in your classes
.title--content {
@include type(
$name: title, // name in your typo map
$overwrites: (margin: 0) // overwrites
)
}
// or renders a helper class per item in $typo
@include textClasses(".t-");
The horizontal mixin places things next to each other. It has to be applied to the parent element. The direct child of the element can be specified using the $childSelector argument. The different flavors are; inline (default), samewidth and equidistant
.list {
@include horizontal(
$childSelector: '> li', // child element ex: .module__element
$vAlign: top, // vertical alignment
$type: inline, // samewidth and equidistant
$list: true, // if set true => list reset
$modern: $feature-flexbox // uses the global setting by default
);
}