전체 글
-
버튼 기본 , active 활성화 했을 때 상태CSS 2022. 11. 29. 10:18
a.accordion-btn { position:relative; display:block; &:after { content:''; position:absolute; display:block; width:24px; height:24px; top:50%; right:20px; transform: translateY(-50%) rotate(0deg); -webkit-transition: all 0.5s ease; transition: all 0.2s ease; background:url(../../assets/images/arrow-down.svg) no-repeat center; } &.active { &:after { transform: translateY(-50%) rotate(-180deg); -we..
-
focus-withinCSS 2022. 11. 28. 18:35
.project-description:focus-within { border: 1px solid #ffffff; }
-
scss 파일 분리 시 / 파일명에 _언더바는 언제 사용하는걸까?기타메모 2022. 11. 28. 17:57
가장 Best는 common.scss 와 sub.scss에 다른 파일들이 @import로만 이루어져 있는것. 그게 아닌 경우에는 1. common.scss 에 -> 공통 컨테이너, 레이아웃, 공통 컴포넌트 작성하기. 2. 아코디언 같이 규모가 큰 공통 컴포넌트의 경우 따로 분리해서 common.scss 안에서 @import * 폴더안에 scss 쓰고 그걸 다른 쪽에 임포트 하게 되는 경우 파일에 _언더바 안 붙이게 되면 해당 폴더까지 생성되어 컴파일 되니 결국 의도한대로 import 경로가 맞지 않게될 가능성이 높음. ---> 임포트는 하는 파일 이름에는 _언더바 사용해서 이름 짓기