TIL | SCSS &(상위 선택자)

cos·2022년 1월 12일
0
post-thumbnail

CSS

.btn {
  position: absoulte;
}

.btn.active {
  color: red;
}

.list li:last-child {
  margin-right: 0;
}

⬇️

SCSS

.btn {
  position: absolute;
  &.active {
    color: red;
  }
}
profile
The journey is the reward

0개의 댓글

관련 채용 정보