first()
리스트의 첫번째 아이템 반환 유틸리티 함수
용도
사용법
$direction: left bottom right top;
@debug first($direction); // left (리스트의 첫번째 아이템) 반환@debug first(map-keys($colors)); // black (첫번째 컬러 이름) 반환로직
@function first($list) {
@return nth($list, 1);
}참고
Last updated