TIL | SCSS :(중첩 선택자)

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

CSS

.box {
  font-weight: bold;
  font-size: 10px;
  font-family: sans-serif;
  margin-top: 10px;
  margin-left: 20px;
  padding-bottom: 40px;
  padding-right: 30px;
}

⬇️

SCSS

.box {
  font: {
    weight: bold;
    size: 10px;
    family: sans-serif;
  };

  margin: {
    top: 10px;
    left: 20px;
  };
  
  padding: {
    bottom: 40px;
    right: 30px;
  };
}
profile
The journey is the reward

0개의 댓글

관련 채용 정보