<aside> ❗ CSS 파일이 컴파일 되기 전의 문서로써, CSS를 좀더 편리하게 활용할 수 있다.
</aside>
1. CSS 방식
/* background-color: orange; */
2. SCSS 방식
/* background-color: orange; */
**//** background-color: orange;
.container {
**>** ul {
li {
font-size: 40px;
.name {
color: royalblue;
}
.age {
color: orange;
}
}
}
}
.btn {
position: absolute;
&.active {
color: red;
}
}
**// SCSS**
.box {
font**:** {
weight: bold;
size: 10px;
family: sans-serif;
}**;**
}
**// CSS**
.box {
font-weight: bold;
font-size: 10px;
font-family: sans-serif;
}