선 그리는 방법
1. padding, margin 조절. (적절하지 않음. XXX)
2. 가상 요소 사용하기
.menu-option {
position: relative; /* 가상 요소의 절대 위치를 위한 상대 위치 지정 */
&:not(:last-child)::after {
content: '';
position: absolute;
bottom: 0;
left: 10px;
right: 10px;
border-bottom: 1px solid #ddd; /* 원하는 색상으로 변경 */
}
}
.option-button {
width: 100%;
padding: 10px;
&:hover {
background-color: #e0e0e0;
}
&:focus {
background-color: #e0e0e0;
}
}
'프로젝트 > 스마트해양물류 ✖ ICT멘토링' 카테고리의 다른 글
[SEAYA] Jira + Bitbucket, GitHub PR 추적, 트러블 슈팅 (0) | 2024.09.14 |
---|---|
[SEAYA] ESLint/Prettier Airbnb 스타일 + TypeScript 설정 (0) | 2024.08.11 |
[SEAYA] Vite + React + TS (Yarn 패키지 매니저) (0) | 2024.07.25 |