121 lines
4.5 KiB
CSS
121 lines
4.5 KiB
CSS
/* MS Edge 브라우저의 자체 비밀번호 보기 아이콘 숨기기 */
|
|
input[type="password"]::-ms-reveal {
|
|
display: none;
|
|
}
|
|
|
|
/* 아이콘 버튼 기본 스타일 */
|
|
#togglePassword {
|
|
position: absolute;
|
|
top: 50%;
|
|
right: 10px;
|
|
transform: translateY(-50%);
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
/* 버튼 크기를 직접 지정 */
|
|
width: 28px;
|
|
height: 28px;
|
|
padding: 4px; /* SVG 아이콘 주변 여백을 위해 padding 사용 */
|
|
/* 배경이미지 설정 */
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
background-size: 20px 20px; /* 아이콘 크기 */
|
|
}
|
|
|
|
/* 기본 상태 (보이는 눈 아이콘) */
|
|
#togglePassword {
|
|
background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23888"%3E%3Cpath d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"/%3E%3C/svg%3E');
|
|
}
|
|
|
|
#togglePassword.is-toggled {
|
|
background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23888"%3E%3Cpath d="M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.44-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L21.73 22 20.46 23.27 3.27 6 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"/%3E%3C/svg%3E');
|
|
}
|
|
|
|
.lgnForm li {
|
|
position: relative;
|
|
}
|
|
|
|
.lgnForm input[type="password"] {
|
|
padding-right: 40px;
|
|
}
|
|
|
|
.lgnForm input[type="text"],
|
|
.lgnForm input[type="password"] {
|
|
border: 1px solid #ccc; /* 테두리를 깔끔하게 정의 */
|
|
border-radius: 6px; /* ★ 여기가 라운딩 값입니다 ★ */
|
|
transition: border-color 0.2s ease-in-out; /* 클릭 시 색상 변경을 부드럽게 */
|
|
}
|
|
|
|
.lgnForm input[type="text"]:focus,
|
|
.lgnForm input[type="password"]:focus {
|
|
outline: none;
|
|
border-color: #007bff;
|
|
}
|
|
|
|
.lgnChk input[type="checkbox"] {
|
|
border-radius: 4px; /* 체크박스 모서리 둥글게 */
|
|
/* 필요하다면 기본 체크박스 크기 조절 */
|
|
/* width: 16px; */
|
|
/* height: 16px; */
|
|
}
|
|
|
|
/* 체크박스 레이블과 간격 조절 (선택 사항) */
|
|
.lgnChk label {
|
|
vertical-align: middle; /* 체크박스와 텍스트를 같은 줄에 정렬 */
|
|
margin-left: 5px; /* 체크박스와 텍스트 사이 간격 */
|
|
}
|
|
|
|
/* 기존 체크박스는 안 보이게 숨김 처리 */
|
|
.lgnChk input[type="checkbox"] {
|
|
display: none;
|
|
}
|
|
|
|
/* 가짜 체크박스가 될 label의 기본 스타일 */
|
|
.lgnChk label {
|
|
position: relative; /* 자식 요소 위치 기준 */
|
|
padding-left: 28px; /* 아이콘이 들어갈 공간 확보 */
|
|
cursor: pointer;
|
|
font-size: 16px; /* 폰트 크기 (필요시 조절) */
|
|
vertical-align: middle;
|
|
}
|
|
|
|
/* 가짜 체크박스 테두리 만들기 (::before 가상 요소) */
|
|
.lgnChk label::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 20px;
|
|
height: 20px;
|
|
border: 2px solid #aaa;
|
|
border-radius: 6px;
|
|
background-color: #fff;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
/* ★ 실제 체크박스가 체크되었을 때 ★ 가짜 체크박스 스타일 변경 */
|
|
.lgnChk input[type="checkbox"]:checked + label::before {
|
|
background-color: #007bff; /* 배경색 채우기 */
|
|
border-color: #007bff; /* 테두리색 변경 */
|
|
}
|
|
|
|
/* 체크 표시 만들기 (::after 가상 요소) */
|
|
.lgnChk label::after {
|
|
content: '';
|
|
position: absolute;
|
|
left: 7px;
|
|
top: 50%;
|
|
transform: translateY(-60%) rotate(45deg); /* 위치 및 각도 조절 */
|
|
width: 6px;
|
|
height: 12px;
|
|
border: solid white;
|
|
border-width: 0 3px 3px 0;
|
|
opacity: 0; /* 평소에는 안 보이게 */
|
|
transition: opacity 0.2s ease;
|
|
}
|
|
|
|
/* ★ 실제 체크박스가 체크되었을 때 ★ 체크 표시 보여주기 */
|
|
.lgnChk input[type="checkbox"]:checked + label::after {
|
|
opacity: 1; /* 보이게 처리 */
|
|
} |