box-model ()
Gets the value of the specified side from the given shorthand box model value.
Parameters
$values
- The shorthand value of a box model to analyze for a value.
- Type
List{1,4}
$side
- The side of the box model for which to determine a value.
- Type
'top' | 'right' | 'bottom' | 'left'
Return Value
*
- Returns a single value that corresponds to the requested side of the given box model value.
Example
@use '@sass-fairy/list';
@debug list.box-model(1em, 'top');
// 1em
@debug list.box-model(1em 0.5em, 'bottom');
// 1em
@debug list.box-model(1em 0.5em 0.75em, 'bottom');
// 0.75em