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
/// Contexts | |
/// @author Loïc Goyet | |
/// @param {Unit} $element1 | |
/// @param {Unit} $element2 | |
/// @param {Bool} $invert | |
/// @warn the params $big-element & $small-element must share the same type of | |
/// unit | |
@function get-diff-to-align($element1, $element2, $invert: true) { | |
$big-element: if($element1 > $element2, $element1, $element2); | |
$small-element: if($element1 > $element2, $element2, $element1); |