Files
uniare.sori.studio/style/profile.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

370 lines
6.2 KiB
CSS

/**
* 내 프로필 페이지 (profile.html)
*/
.profile-page {
/* 배경·폰트는 .app-page */
}
.profile-content {
width: 100%;
max-width: 42rem;
}
.profile-header {
margin-bottom: 1.5rem;
}
.profile-header .page-title-row {
margin-bottom: 0;
}
.profile-header h1 {
font-size: 1.75rem;
font-weight: 900;
letter-spacing: -0.02em;
}
.profile-card {
background: #fff;
border: 1px solid #e2e8f0;
border-radius: 1.25rem;
box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
overflow: hidden;
}
.profile-hero {
padding: 1.75rem 1.5rem 1.25rem;
background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
border-bottom: 1px solid #e2e8f0;
display: flex;
align-items: center;
gap: 1.25rem;
}
.profile-avatar-wrap {
position: relative;
flex-shrink: 0;
}
.profile-avatar {
width: 5.5rem;
height: 5.5rem;
border-radius: 9999px;
object-fit: cover;
background: #fff;
border: 3px solid #fff;
box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
}
.profile-avatar-btn {
position: absolute;
right: -0.125rem;
bottom: -0.125rem;
width: 2rem;
height: 2rem;
border-radius: 9999px;
border: 2px solid #fff;
background: #2563eb;
color: #fff;
font-size: 0.875rem;
cursor: pointer;
}
.profile-hero-text h2 {
margin: 0;
font-size: 1.25rem;
font-weight: 800;
}
.profile-hero-text p {
margin: 0.25rem 0 0;
font-size: 0.8125rem;
color: #64748b;
}
.profile-avatar-remove {
margin-top: 0.75rem;
font-size: 0.75rem;
color: #94a3b8;
background: none;
border: none;
cursor: pointer;
padding: 0;
text-decoration: underline;
}
.profile-body {
padding: 1.5rem;
}
.profile-field {
margin-bottom: 1.125rem;
}
.profile-label {
display: block;
font-size: 0.6875rem;
font-weight: 700;
color: #94a3b8;
text-transform: uppercase;
letter-spacing: 0.04em;
margin-bottom: 0.375rem;
}
.profile-input {
display: block;
width: 100%;
box-sizing: border-box;
border: 1px solid #e2e8f0;
border-radius: 0.75rem;
padding: 0.75rem 1rem;
font-size: 0.875rem;
outline: none;
}
.profile-input:focus {
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.profile-divider {
height: 1px;
background: #e2e8f0;
margin: 1.25rem 0;
}
.profile-btn {
display: block;
width: 100%;
padding: 0.875rem 1rem;
border: none;
border-radius: 0.75rem;
font-size: 0.875rem;
font-weight: 700;
cursor: pointer;
}
.profile-btn-primary {
background: #2563eb;
color: #fff;
}
.profile-btn-primary:hover {
background: #1d4ed8;
}
.profile-btn-primary:disabled {
background: #cbd5e1;
cursor: not-allowed;
}
.profile-section-title {
margin: 0;
font-size: 1rem;
font-weight: 800;
color: #0f172a;
}
.profile-section-head {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 0.75rem;
}
.profile-section-head .profile-section-title {
flex: 1;
min-width: 0;
}
.profile-settings-panel {
margin-bottom: 0.5rem;
padding: 0.25rem 1rem;
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 1rem;
}
.profile-section-desc {
margin: 0 0 1rem;
font-size: 0.8125rem;
color: #64748b;
}
.profile-toggle-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
padding: 0.875rem 0;
}
.profile-toggle-row + .profile-toggle-row {
border-top: 1px solid #e2e8f0;
}
.profile-toggle-text {
flex: 1;
min-width: 0;
cursor: pointer;
}
.profile-toggle-label {
display: block;
font-size: 0.875rem;
font-weight: 700;
color: #0f172a;
}
.profile-toggle-hint {
display: block;
font-size: 0.75rem;
color: #64748b;
margin-top: 0.2rem;
line-height: 1.4;
}
.profile-toggle-wrap {
display: flex;
flex-shrink: 0;
align-items: center;
gap: 0.5rem;
}
.profile-toggle-state {
min-width: 1.75rem;
font-size: 0.6875rem;
font-weight: 800;
letter-spacing: 0.04em;
text-align: right;
color: #94a3b8;
}
.profile-toggle-state.is-on {
color: #2563eb;
}
.profile-toggle {
position: relative;
flex-shrink: 0;
display: inline-flex;
width: 3rem;
height: 1.625rem;
align-items: center;
border: none;
border-radius: 9999px;
background: #cbd5e1;
cursor: pointer;
transition: background 0.2s;
padding: 0;
}
.profile-toggle.is-on {
background: #2563eb;
}
.profile-toggle:focus-visible {
outline: 2px solid #93c5fd;
outline-offset: 2px;
}
.profile-toggle-circle {
display: inline-block;
width: 1.25rem;
height: 1.25rem;
border-radius: 9999px;
background: #fff;
transform: translateX(0.2rem);
transition: transform 0.2s;
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
pointer-events: none;
}
.profile-toggle-circle.is-on {
transform: translateX(1.55rem);
}
.profile-prefs-notice {
margin: 0.5rem 0 0;
font-size: 0.75rem;
font-weight: 600;
color: #059669;
min-height: 1.125rem;
}
.profile-prefs-notice:empty {
display: none;
}
.profile-btn-outline {
background: #fff;
color: #475569;
border: 1px solid #e2e8f0;
}
.profile-btn-outline:hover {
background: #f8fafc;
}
.profile-error {
margin-top: 0.75rem;
font-size: 0.8125rem;
color: #ef4444;
}
.profile-error.hidden,
.profile-success.hidden {
display: none;
}
.profile-success {
margin-top: 0.75rem;
font-size: 0.8125rem;
color: #059669;
}
.profile-modal {
position: fixed;
inset: 0;
z-index: 100;
display: none;
align-items: center;
justify-content: center;
padding: 1rem;
background: rgba(15, 23, 42, 0.5);
}
.profile-modal.open {
display: flex;
}
.profile-modal-box {
width: 100%;
max-width: 24rem;
background: #fff;
border-radius: 1rem;
padding: 1.5rem;
box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}
.profile-modal-box h3 {
margin: 0 0 1rem;
font-size: 1.0625rem;
font-weight: 800;
}
.profile-modal-actions {
display: flex;
gap: 0.5rem;
margin-top: 1rem;
}
.profile-modal-actions .profile-btn {
flex: 1;
}
.hidden {
display: none !important;
}