Guest User

Untitled

a guest
Apr 21st, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. $array:(2,5,1,56);
  2.  
  3. @function minValue($arg) {
  4. $min: nth($arg,1);
  5. @each $item in $arg {
  6. @if($item < $min) {
  7. $min: $item;
  8. }
  9. }
  10. @return $min;
  11. }
  12.  
  13. .test {
  14. width:minValue($array);
  15. }
Add Comment
Please, Sign In to add comment