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