반응형
Sass-단일 태그의 두 클래스
이 질문에 이미 답변이 있습니다.
그래서 난 스타일이 필요해
.question_actions.active
내 기존 CSS
.question_actions {
float: right;
font-size: 1em;
width: 110px;
}
.question_action {
margin-bottom: 8px;
padding: 3px;
}
.question_actions.active {
/* some CSS */
}
그것들을 결합하는 구문은 무엇입니까?
여기 있습니다 :
.question_actions {
float: right;
font-size: 1em;
width: 110px;
.question_action {
margin-bottom:8px;
padding: 3px;
}
&.active {
//some css
}
}
참고 URL : https://stackoverflow.com/questions/8360866/sass-two-classes-in-a-single-tag
반응형
'developer tip' 카테고리의 다른 글
3면 테두리 (0) | 2020.11.04 |
---|---|
PowerShell에서 사용되는 GetType, 변수 간의 차이 (0) | 2020.11.04 |
Dart 언어의 Console.log (0) | 2020.11.04 |
자바 스크립트를 사용한 부동 합계 (0) | 2020.11.04 |
Selenium Webdriver를 사용하여 전체 페이지가 아닌 특정 요소의 스크린 샷을 캡처하는 방법은 무엇입니까? (0) | 2020.11.04 |