본문 바로가기
728x90
반응형

> 메모/SASS3

[SASS] 태그 중첩 사용 HTML 햄버거 메뉴 만들기에서span 태그에 css 넣고 싶을 경우SCSS.banner-header { display: flex; align-items: center; position: relative; width: 100%; height: 90px; .hamburger_menu { width: 80px; height: 65px; // span 태그에 스타일 적용 span { display: block; height: 10px; background-color: $main_color; margin: 15px 0; transition: .. 2024. 6. 21.
[SASS] _reset 파일과 SASS 문법 reset 파일 - 후에 @use 로 임포트 해줌.- 파일이름은 _reset.scss 으로 생성./* CSS - 기본 설정 */* { margin: 0; padding: 0; box-sizing: border-box; position: relative; // pointer-events: none; text-decoration: none; list-style: none;}html { font-size: 16px;}a,a:link,a:visited { color: inherit; //하단 밑줄 색깔 없애기}전체에 position:relative 를 준 경우 주의 사항 전체 요소에 position: relative를 적용하는 접근은 일반적으로 권장되지 않음.필요한 요소에만 position: r.. 2024. 6. 19.
[SASS] & 의 사용법 &의 역할&는 부모 선택자를 참조하는 특수한 키워드&를 사용하면 현재 규칙의 부모 선택자를 참조&:last-child.parent { color: blue; &:last-child { color: red; }}&:last-child는 부모 요소의 마지막 자식 요소를 선택하는 CSS 의사 클래스입니다.&:last-child 는 .parent:last-child 로 해석&:last-child의 역할.background { display: flex; justify-content: space-between; width: 100%; height: 100vh; position: absolute; padding: 0 1rem; span { display: block; h.. 2024. 5. 5.
728x90
반응형