feat: 모바일 하단 내비게이션·설정 패널 도입
This commit is contained in:
1 parent
bb0ab91bcc
commit
54e5d14127
11 files changed
+613
-375
No files matched your search
+131
-142
@@ -458,27 +458,33 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* 모바일: 하단 탭바에 가리지 않도록 띄운다 */
|
||||
@media (max-width: 767px) {
|
||||
.bottom-button-container {
|
||||
bottom: calc(var(--bottom-nav-height) + 16px);
|
||||
}
|
||||
}
|
||||
|
||||
/* =====================================================
|
||||
Sidebar Components
|
||||
===================================================== */
|
||||
|
||||
/* Sidebar Container */
|
||||
.sidebar {
|
||||
position: fixed;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
height: 100vh;
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background-color: var(--color-bg-dark);
|
||||
border-right: 1px solid var(--color-border-white-5);
|
||||
transition: all var(--transition-slow);
|
||||
z-index: 50;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
@media (max-width: 767px) {
|
||||
.sidebar {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
flex-shrink: 0;
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -486,24 +492,6 @@
|
||||
width: 15rem;
|
||||
}
|
||||
|
||||
.sidebar.collapsed {
|
||||
width: 5rem;
|
||||
}
|
||||
|
||||
.sidebar.mobile-open {
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
.sidebar.mobile-closed {
|
||||
transform: translateX(-100%);
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.sidebar.mobile-closed {
|
||||
transform: translateX(0);
|
||||
}
|
||||
}
|
||||
|
||||
/* Sidebar Header */
|
||||
.sidebar-header {
|
||||
padding: 1.25rem;
|
||||
@@ -512,11 +500,6 @@
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.sidebar-header.collapsed {
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
/* Sidebar Logo */
|
||||
.sidebar-logo {
|
||||
font-family: 'Playfair Display', serif;
|
||||
@@ -555,15 +538,6 @@
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.sidebar-item.collapsed {
|
||||
justify-content: center;
|
||||
width: 3rem;
|
||||
height: 3rem;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.sidebar-item.active {
|
||||
background-color: var(--color-mint);
|
||||
color: var(--color-bg-dark);
|
||||
@@ -677,10 +651,6 @@
|
||||
padding: 0 0.5rem;
|
||||
}
|
||||
|
||||
.profile-section.collapsed {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.profile-avatar {
|
||||
width: 2.5rem;
|
||||
height: 2.5rem;
|
||||
@@ -778,25 +748,6 @@
|
||||
transform: translateX(calc(100% + 2px));
|
||||
}
|
||||
|
||||
/* Collapsed state - simple button */
|
||||
.lang-toggle-collapsed {
|
||||
padding: 4px 6px;
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.03em;
|
||||
color: rgba(255, 255, 255, 0.5);
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.lang-toggle-collapsed:hover {
|
||||
color: #ffffff;
|
||||
background: rgba(255, 255, 255, 0.15);
|
||||
}
|
||||
|
||||
/* Sidebar Footer Actions */
|
||||
.sidebar-footer-actions {
|
||||
display: flex;
|
||||
@@ -825,11 +776,6 @@
|
||||
color: var(--color-text-white);
|
||||
}
|
||||
|
||||
.sidebar-inquiry-btn.collapsed {
|
||||
justify-content: center;
|
||||
padding: 0.75rem;
|
||||
}
|
||||
|
||||
/* Logout Button */
|
||||
.logout-btn {
|
||||
width: 100%;
|
||||
@@ -848,100 +794,143 @@
|
||||
color: var(--color-text-white);
|
||||
}
|
||||
|
||||
.logout-btn.collapsed {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.logout-btn-label {
|
||||
font-size: var(--text-sm);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
/* 모바일 전용 사이드바 튜토리얼 토글 */
|
||||
.sidebar-tutorial-btn {
|
||||
/* Settings Panel (Sidebar 4번째 메뉴 / BottomNav 설정 버튼 공용) */
|
||||
.settings-panel {
|
||||
background: var(--color-bg-card);
|
||||
border: 1px solid var(--color-border-white-10);
|
||||
border-radius: var(--radius-2xl);
|
||||
padding: 0.5rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.125rem;
|
||||
z-index: 60;
|
||||
}
|
||||
|
||||
.settings-panel-profile {
|
||||
padding: 0.625rem 0.75rem;
|
||||
}
|
||||
|
||||
.settings-panel-divider {
|
||||
height: 1px;
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
margin: 0.375rem 0.25rem;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.sidebar-settings-anchor {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.settings-panel--sidebar {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: calc(100% + 8px);
|
||||
width: 210px;
|
||||
max-height: calc(100vh - 96px);
|
||||
overflow-y: auto;
|
||||
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
|
||||
}
|
||||
|
||||
.settings-panel--bottom {
|
||||
position: fixed;
|
||||
/* 설정 버튼이 탭바 오른쪽 끝이므로 오른쪽에 앵커한다 */
|
||||
right: 8px;
|
||||
width: 210px;
|
||||
max-width: calc(100vw - 24px);
|
||||
bottom: calc(var(--bottom-nav-height) - 5px);
|
||||
max-height: calc(100vh - 120px);
|
||||
overflow-y: auto;
|
||||
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
|
||||
}
|
||||
|
||||
.settings-panel-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
padding: 0.625rem 0.75rem;
|
||||
border-radius: var(--radius-lg);
|
||||
color: var(--color-text-gray-400);
|
||||
background: none;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
font-size: var(--text-sm);
|
||||
font-weight: 700;
|
||||
text-decoration: none;
|
||||
text-align: left;
|
||||
width: 100%;
|
||||
transition: color var(--transition-normal), background-color var(--transition-normal);
|
||||
}
|
||||
|
||||
.settings-panel-item:hover {
|
||||
color: var(--color-text-white);
|
||||
background-color: rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
|
||||
.settings-panel-item.active {
|
||||
color: var(--color-mint);
|
||||
}
|
||||
|
||||
.settings-panel-item svg {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.settings-panel-language {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
padding: 0.375rem 0.75rem;
|
||||
}
|
||||
|
||||
.settings-backdrop {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 55;
|
||||
}
|
||||
|
||||
/* Mobile Bottom Nav */
|
||||
.bottom-nav {
|
||||
display: none;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
z-index: 50;
|
||||
height: var(--bottom-nav-height);
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
background: var(--color-bg-dark);
|
||||
border-top: 1px solid var(--color-border-white-5);
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.sidebar-tutorial-btn {
|
||||
.bottom-nav {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
width: 100%;
|
||||
margin-top: 0.5rem;
|
||||
padding: 0.75rem;
|
||||
border-radius: var(--radius-lg);
|
||||
color: var(--color-text-gray-400);
|
||||
border: none;
|
||||
background: none;
|
||||
cursor: pointer;
|
||||
font-size: var(--text-sm);
|
||||
font-weight: 500;
|
||||
transition: color var(--transition-normal), background-color var(--transition-normal);
|
||||
}
|
||||
|
||||
.sidebar-tutorial-btn:hover {
|
||||
color: var(--color-text-white);
|
||||
background-color: rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
|
||||
.sidebar-tutorial-btn.active {
|
||||
color: var(--color-mint);
|
||||
}
|
||||
|
||||
.sidebar-tutorial-label {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.sidebar-tutorial-badge {
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.sidebar-tutorial-badge.on {
|
||||
color: var(--color-mint);
|
||||
}
|
||||
|
||||
.sidebar-tutorial-badge.off {
|
||||
color: var(--color-text-gray-400);
|
||||
.has-bottom-nav {
|
||||
padding-bottom: var(--bottom-nav-height);
|
||||
}
|
||||
}
|
||||
|
||||
/* Mobile Menu Button */
|
||||
.mobile-menu-btn {
|
||||
position: fixed;
|
||||
top: 1rem;
|
||||
right: 1rem;
|
||||
z-index: 40;
|
||||
padding: 0.625rem;
|
||||
background-color: var(--color-bg-card);
|
||||
border-radius: var(--radius-lg);
|
||||
border: 1px solid var(--color-border-white-10);
|
||||
.bottom-nav-item {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 4px;
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
color: var(--color-text-gray-400);
|
||||
background: none;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.mobile-menu-btn:hover {
|
||||
color: var(--color-text-white);
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.mobile-menu-btn {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* Mobile Overlay */
|
||||
.mobile-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
z-index: 40;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.mobile-overlay {
|
||||
display: none;
|
||||
}
|
||||
.bottom-nav-item.active {
|
||||
color: var(--color-mint);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user