자주 사용하는 CSS 속성이 있다면 Sass
의 mixin
기능을 활용할 수 있다.
@mixin flex($justify: null, $align: null, $direction: null) {
display: flex;
flex-direction: $direction;
justify-content: $justify;
align-items: $align;
}
div {
@include flex(space-between);
// display: flex;
// justify-content: space-between;
}
많이 배워갑니다!