Skip to content

Commit

Permalink
feat: add input:focus and hide-btn
Browse files Browse the repository at this point in the history
input focus 테두리 추가(outline), 비밀번호 보이기/숨기기 버튼 추가
  • Loading branch information
reenact11 committed May 9, 2024
1 parent 27f3421 commit 6d1e1dd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions login.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ <h1>
<label class="form__label">
<p class="label__name">비밀번호</p>
<input class="label__input" type="password" placeholder="비밀번호를 입력해주세요" required>
<img class="hide-btn" src="../img/icon/btn__visibility-off.svg" alt="비밀번호숨기거나보이기" width="24"
height="24" />
</label>
</div>
<button class="submit-btn" type="submit">로그인</button>
Expand Down
11 changes: 11 additions & 0 deletions styles/login.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
}

.form__label {
position: relative;
display: flex;
flex-direction: column;
font-size: 18px;
Expand All @@ -53,6 +54,16 @@
background-color: var(--gray100);
}

.label__input:focus-visible {
outline: 3px solid #3692ff;
}

.hide-btn {
position: absolute;
right:24px;
bottom: 16px;
}

.submit-btn {
font-size: 20px;
font-weight: 600;
Expand Down

0 comments on commit 6d1e1dd

Please sign in to comment.