This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@use 'sass:list'; | |
@use 'sass:string'; | |
@use 'sass:map'; | |
@use 'sass:meta'; | |
@use 'sass:math'; | |
$base-font-size: 16px; /* ~1rem */ | |
$base-line-height: 1.12; | |
@function strip-unit($number) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@use "sass:list"; | |
@use "sass:map"; | |
@use "sass:string"; | |
/// Grid place simplifier | |
/// @param {List} $items (align, justify) - define align and justify position of grid items: { | |
/// start, end, center, stretch, baseline | |
/// } | |
/// @param {List} $content [false] (align, justify) - define align and justify position of | |
/// grid container in parent: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@use "sass:list"; | |
@use "sass:map"; | |
@use "sass:string"; | |
/// Flexbox simplifier | |
/// @param {List} $prop [false] - List of flexbox properties: { | |
/// inline, column, column-reverse, row-reverse, wrap, wrap-reverse | |
/// } | |
@mixin flex($prop: false) { | |
$attr: ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Vertical rhythm grid unit | |
/// @param {Number} $multiplier [1] - vertical rhythm multiplier | |
/// @return {Rem} - vertical rhythm unit | |
@function grid-unit($multiplier: 1) { | |
@return #{strip-unit($base-font-size) * $multiplier * $base-line-height * 0.0625}rem; | |
} | |
/// Remove the unit of a length | |
/// @param {Number} $number - Number to remove unit from | |
/// @return {Number} - Unitless number |