Files
uniare.sori.studio/style/auth-header.css
zenn dbf02241e2 v4.0.0: 회원·덱 API, 인증 UI, 프로필 및 레이아웃 통일
Express/SQLite API와 Docker 구성을 추가하고 로그인·덱 저장·공개 덱·관리자·프로필 화면을 구현했다. 결과 화면 저장 UX, 헤더 프로필, 애드센스용 app-shell 레이아웃(1280px) 및 문서를 반영했다.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-22 16:59:36 +09:00

135 lines
2.4 KiB
CSS

.auth-header-wrap {
position: relative;
}
.auth-avatar-btn {
height: 36px;
border-radius: 9999px;
border: 2px solid #e2e8f0;
background: #f1f5f9;
cursor: pointer;
overflow: hidden;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0;
padding: 0;
transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-avatar-btn.auth-profile-btn--named {
padding-right: 12px;
gap: 8px;
max-width: 180px;
}
.auth-avatar-btn:hover {
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.auth-avatar-wrap {
flex-shrink: 0;
width: 32px;
height: 32px;
margin: 2px;
border-radius: 9999px;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
}
.auth-avatar-wrap img {
width: 100%;
height: 100%;
object-fit: cover;
}
.auth-username {
font-size: 13px;
font-weight: 700;
color: #334155;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
min-width: 0;
}
.auth-avatar-btn:not(.auth-profile-btn--named) {
width: 36px;
}
.auth-avatar-btn:not(.auth-profile-btn--named) .auth-avatar-wrap {
width: 100%;
height: 100%;
margin: 0;
}
.auth-dropdown {
position: absolute;
right: 0;
top: calc(100% + 8px);
min-width: 200px;
background: white;
border: 1px solid #e2e8f0;
border-radius: 12px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
padding: 6px;
z-index: 200;
display: none;
}
.auth-dropdown.open {
display: block;
}
.auth-dropdown-header {
padding: 10px 12px;
border-bottom: 1px solid #f1f5f9;
margin-bottom: 4px;
}
.auth-dropdown-name {
font-size: 13px;
font-weight: 700;
color: #1e293b;
}
.auth-dropdown-email {
font-size: 11px;
color: #94a3b8;
margin-top: 2px;
}
.auth-dropdown-item {
display: block;
width: 100%;
text-align: left;
padding: 10px 12px;
font-size: 13px;
font-weight: 600;
color: #475569;
border-radius: 8px;
border: none;
background: none;
cursor: pointer;
text-decoration: none;
}
.auth-dropdown-item:hover {
background: #f8fafc;
color: #2563eb;
}
.auth-dropdown-item.danger:hover {
color: #ef4444;
background: #fef2f2;
}
.auth-dropdown-divider {
height: 1px;
background: #f1f5f9;
margin: 4px 0;
}