@function z($name) { @if index($z-indexes, $name) { @return (length($z-indexes) - index($z-indexes, $name)) + 1; } @else { @warn 'There is no item "#{$name}" in this list; choose one of: #{$z-indexes}'; @return null; } } @function ls($name) { $value: map_get($ls, $name); @return $value / 1000 * 1em; } @function themed($key) { @return map-get($theme-map, $key); } @function calcSideWidth() { $grid_max: $grid_max_width + $grid_max_unit; $grid_main_main: $grid_main_main_width + $grid_main_main_unit; $grid_main_side: $grid_main_side_width + $grid_main_side_unit; $grid_column_gap: $grid_column_gap_width + $grid_column_gap_unit; @if $grid_main_main_unit == fr and $grid_main_side_unit == fr { @if $grid_max_unit == px { @return #{($grid_main_side_width / ($grid_main_main_width + $grid_main_side_width)) * $grid_max_width - $grid_column_gap_width}px; } @else if $grid_max_unit == "%" { @return ($grid_main_side_width / ($grid_main_main_width + $grid_main_side_width) * 100)*1%; } } @else if $grid_main_side_unit == px { @return $grid_main_side; } }