Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 카드 셔플
- leetCode #코알못의도전기 #코드알고리즘기초 #1일1알고리즘 #알고리즘공부 #코드챌린지
- git 팁
- 코알못의도전 #알고리즘기초 #공부하는블로그
- multiple
- zsh설치
- 유용꿀gittip
- 업무시유용한git
- ngrok
- zsh설치 후
- @at-root여러번
- .bash_profile적용안됨
- 해시 #map&set
- .bash_profile실행
- @at-root
Archives
- Today
- Total
흑염소처럼
@at-root 여러번 사용 본문
scss에서 @ at- root 를 사용하면서 불편했던 점은 동일한 스타일을 쓰는데 @ at-root를 중복나열하여 사용할 수 없어 아래 코드와 같이 사용하고 싶으나 사용할 수 없습니다.
그럴 때 아래와 같이 사용할 수 있습니다.
//아래와 같이 사용 못함
.test_wrap{
@at-root .join_coupon &,@at-root .identical_product &{
top: 50%;
transform: rotate(45deg) translateY(-50%);
}
}
//scss 속성을 사용하여 처리 가능
.test_wrap{
@at-root #{selector-nest(".test1,.test2","#{&}")}{
top: 50%;
transform: rotate(45deg) translateY(-50%);
}//.test1 .test_wrap, .test2 .test_wrap
}
사용한 속성 : https://sass-lang.com/documentation/modules/selector
'scss' 카테고리의 다른 글
원하는 태그만 선택적으로 reset.scss 만들기 (0) | 2020.08.26 |
---|---|
[SCSS Rule] 변수 선언하기 @for @function @each unquote($string) (0) | 2020.08.10 |
Scss $i 변수 @for문에 사용하기 (0) | 2020.07.15 |
Comments