Files
uniare.sori.studio/style/auth-header.css
zenn 2ecf6201c0 v4.0.0: 덱 UX·i18n·썸네일 저장 개선 및 413 수정
즐겨찾기·홀드 미리보기·페이지 도움말·3개국어 번역을 추가하고, 덱 저장 시 썸네일을 1200px로 통일하며 Nginx/API 업로드 제한을 상향했다.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-22 18:50:08 +09:00

136 lines
2.4 KiB
CSS

.auth-header-wrap {
position: relative;
}
.auth-profile-trigger {
display: inline-flex;
align-items: center;
gap: 0.5rem;
max-width: 12.5rem;
padding: 0.125rem 0.5rem 0.125rem 0.125rem;
border: none;
border-radius: 9999px;
background: transparent;
cursor: pointer;
transition: background 0.2s, box-shadow 0.2s;
}
.auth-profile-trigger:hover {
background: #f1f5f9;
}
.auth-profile-trigger:focus-visible {
outline: none;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.auth-profile-trigger--guest {
padding: 0;
}
.auth-profile-trigger--named {
padding-right: 0.625rem;
}
.auth-avatar-circle {
flex-shrink: 0;
width: 36px;
height: 36px;
border-radius: 9999px;
border: 2px solid #e2e8f0;
background: #f1f5f9;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
transition: border-color 0.2s;
}
.auth-profile-trigger:hover .auth-avatar-circle {
border-color: #3b82f6;
}
.auth-avatar-circle img {
width: 100%;
height: 100%;
object-fit: cover;
}
.auth-username {
font-size: 0.8125rem;
font-weight: 700;
color: #334155;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
min-width: 0;
line-height: 1.2;
}
.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;
}