Sass 문법
[Sass] Sass 맛보기
[Sass] Sass 맛보기
2022.01.11🎯 Sass 맛보기 Syntactically Awesome Style Sheets. CSS Preprocessor. SCSS, Sass 문법을 지원한다. 모듈, 믹스인, nested style, 변수, 조건문, 반복문 등의 기능으로 CSS를 프로그래밍 언어적으로 활용하도록 확장. styled-components는 Sass를 기본적으로 지원한다. 📝 & .reset-button { &.active {} &.disabled {} &:hover {} &:not(:first-of-type) {} & + & {} & ~ & {} & > button {} } &는 자기 자신을 나타내는 placeholder다. &.active {}는 컴파일하면 reset-button.active{}로 치환된다. 기존 CSS의 sel..