Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// list-remove
- /// Remove an item from a list
- /// @param $list - A SASS list
- /// @param $index - The list index to remove
- /// @returns A SASS list
- /// @author Jake Wilson <jake.e.wilson@gmail.com>
- @function list-remove($list, $index) {
- $newList: ();
- @for $i from 1 through length($list) {
- @if $i != $index {
- $newList: append($newList, nth($list,$i), 'space');
- }
- }
- @return $newList;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement