알림팝업 전체닫기 오류 수정

This commit is contained in:
Macbook
2026-05-23 21:25:46 +09:00
parent 70ac67afe7
commit 4df8279a31
11 changed files with 290 additions and 170 deletions
+55 -55
View File
@@ -1,12 +1,12 @@
/* 모의투자 대시보드 (ptd-) — 전체 화면 고정 레이아웃 */
/* 모의투자 대시보드 (ptd-) — 전체 화면 고정 레이아웃, 앱 테마 변수 연동 */
.ptd-page {
flex: 1;
min-height: 0;
overflow: hidden;
display: flex;
flex-direction: column;
background: #0d1117;
color: #c0caf5;
background: var(--bg);
color: var(--text);
padding: 8px 12px 10px;
font-family: var(--font, 'Noto Sans KR', sans-serif);
}
@@ -15,7 +15,7 @@
align-items: center;
justify-content: center;
min-height: 320px;
color: #9aa5ce;
color: var(--text2);
}
.ptd-topbar {
@@ -26,18 +26,18 @@
margin-bottom: 8px;
flex-shrink: 0;
}
.ptd-title { margin: 0; font-size: 18px; font-weight: 800; color: #fff; }
.ptd-title { margin: 0; font-size: 18px; font-weight: 800; color: var(--text); }
.ptd-topbar-actions { display: flex; gap: 8px; flex-shrink: 0; }
.ptd-btn {
padding: 6px 10px;
border-radius: 8px;
border: 1px solid rgba(122,162,247,0.2);
background: #1e222d;
color: #c0caf5;
border: 1px solid var(--border);
background: var(--bg2);
color: var(--text);
font-size: 11px;
cursor: pointer;
}
.ptd-btn:hover { background: #252a38; }
.ptd-btn:hover { background: var(--bg3); }
.ptd-btn--danger { border-color: rgba(239,68,68,0.4); color: #ef4444; }
.ptd-banner {
@@ -68,13 +68,13 @@
gap: 8px;
padding: 8px 10px;
border-radius: 10px;
background: #1e222d;
border: 1px solid rgba(122,162,247,0.12);
background: var(--bg2);
border: 1px solid var(--border);
}
.ptd-metric-icon { font-size: 16px; line-height: 1; }
.ptd-metric-title { font-size: 10px; color: #6272a4; margin-bottom: 2px; }
.ptd-metric-value { font-size: 17px; font-weight: 800; line-height: 1.1; }
.ptd-metric-sub { font-size: 9px; color: #6272a4; margin-top: 2px; }
.ptd-metric-title { font-size: 10px; color: var(--text3); margin-bottom: 2px; }
.ptd-metric-value { font-size: 17px; font-weight: 800; line-height: 1.1; color: var(--text); }
.ptd-metric-sub { font-size: 9px; color: var(--text3); margin-top: 2px; }
.ptd-metric--up .ptd-metric-value { color: #22c55e; }
.ptd-metric--down .ptd-metric-value { color: #ef4444; }
@@ -101,8 +101,8 @@
.ptd-col--right { min-width: 0; }
.ptd-card {
background: #1e222d;
border: 1px solid rgba(122,162,247,0.12);
background: var(--bg2);
border: 1px solid var(--border);
border-radius: 10px;
overflow: hidden;
flex-shrink: 0;
@@ -111,22 +111,22 @@
padding: 8px 10px 0;
font-size: 11px;
font-weight: 700;
color: #9aa5ce;
color: var(--text2);
}
.ptd-asset-card { padding-bottom: 8px; }
.ptd-asset-total {
padding: 4px 10px 0;
font-size: 22px;
font-weight: 800;
color: #fff;
color: var(--text);
}
.ptd-asset-total span { font-size: 12px; color: #6272a4; font-weight: 600; }
.ptd-asset-total span { font-size: 12px; color: var(--text3); font-weight: 600; }
.ptd-asset-ret {
padding: 2px 10px 0;
font-size: 18px;
font-weight: 800;
}
.ptd-asset-sub { padding: 4px 10px 0; font-size: 10px; color: #6272a4; }
.ptd-asset-sub { padding: 4px 10px 0; font-size: 10px; color: var(--text3); }
.ptd-table {
width: 100%;
@@ -136,12 +136,12 @@
.ptd-table th, .ptd-table td {
padding: 6px 8px;
text-align: left;
border-bottom: 1px solid rgba(122,162,247,0.08);
border-bottom: 1px solid var(--sep);
}
.ptd-table th { color: #6272a4; font-weight: 600; }
.ptd-table th { color: var(--text3); font-weight: 600; }
.ptd-table tbody tr { cursor: pointer; }
.ptd-table tbody tr:hover { background: rgba(63,126,245,0.06); }
.ptd-row--sel { background: rgba(63,126,245,0.1); }
.ptd-table tbody tr:hover { background: var(--bg3); }
.ptd-row--sel { background: var(--bg3); }
.ptd-coin {
display: inline-flex;
align-items: center;
@@ -154,8 +154,8 @@
color: #fff;
margin-right: 4px;
}
.ptd-muted { color: #6272a4; text-align: center; padding: 12px; font-size: 11px; }
.ptd-time { color: #6272a4; white-space: nowrap; }
.ptd-muted { color: var(--text3); text-align: center; padding: 12px; font-size: 11px; }
.ptd-time { color: var(--text3); white-space: nowrap; }
.ptd-donut-card { padding-bottom: 8px; }
.ptd-donut-wrap {
@@ -175,20 +175,20 @@
height: 44px;
margin: 14px auto;
border-radius: 50%;
background: #1e222d;
background: var(--bg2);
display: flex;
align-items: center;
justify-content: center;
font-size: 10px;
font-weight: 700;
color: #c0caf5;
color: var(--text);
}
.ptd-donut-legend {
list-style: none;
margin: 0;
padding: 0;
font-size: 10px;
color: #9aa5ce;
color: var(--text2);
}
.ptd-donut-legend li { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.ptd-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
@@ -215,7 +215,7 @@
margin-bottom: 6px;
flex-shrink: 0;
}
.ptd-chart-title { font-size: 12px; font-weight: 700; }
.ptd-chart-title { font-size: 12px; font-weight: 700; color: var(--text); }
.ptd-ws-badge {
font-size: 9px;
padding: 2px 6px;
@@ -235,7 +235,7 @@
inset: 40% 0 auto;
text-align: center;
font-size: 11px;
color: #6272a4;
color: var(--text3);
pointer-events: none;
}
.ptd-tf-row {
@@ -248,16 +248,16 @@
.ptd-tf-btn {
padding: 3px 7px;
border-radius: 6px;
border: 1px solid rgba(122,162,247,0.15);
background: #121520;
color: #9aa5ce;
border: 1px solid var(--border);
background: var(--bg3);
color: var(--text2);
font-size: 9px;
cursor: pointer;
}
.ptd-tf-btn--active {
border-color: #3f7ef5;
color: #3f7ef5;
background: rgba(63,126,245,0.12);
border-color: var(--accent);
color: var(--accent);
background: var(--bg2);
}
.ptd-indicators {
@@ -265,16 +265,16 @@
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 6px;
padding: 0 10px 8px;
border-top: 1px solid rgba(122,162,247,0.08);
border-top: 1px solid var(--sep);
flex-shrink: 0;
}
.ptd-ind-panel {
background: #121520;
background: var(--bg3);
border-radius: 8px;
padding: 4px 6px;
min-height: 52px;
}
.ptd-ind-label { font-size: 9px; color: #6272a4; margin-bottom: 2px; }
.ptd-ind-label { font-size: 9px; color: var(--text3); margin-bottom: 2px; }
.ptd-ind-svg { width: 100%; height: 36px; display: block; }
/* 우측 패널 — 매매/호가 탭 */
@@ -283,14 +283,14 @@
display: flex;
flex-direction: column;
min-height: 0;
background: #1e222d;
border: 1px solid rgba(122,162,247,0.12);
background: var(--bg2);
border: 1px solid var(--border);
border-radius: 10px;
overflow: hidden;
}
.ptd-tabs--main {
flex-shrink: 0;
background: #121520;
background: var(--bg3);
}
.ptd-tabs--main .ptd-tab {
padding: 10px;
@@ -320,11 +320,11 @@
.ptd-order-card .top-panel { padding: 4px 2px; background: transparent; }
.ptd-order-card .top-field { margin-bottom: 4px; }
.ptd-order-card .top-submit--buy { background: #22c55e !important; border-color: #22c55e !important; }
.ptd-order-card .top-submit--sell { background: #3f7ef5 !important; border-color: #3f7ef5 !important; }
.ptd-order-card .top-submit--sell { background: var(--accent) !important; border-color: var(--accent) !important; }
.ptd-ob {
background: #1e222d;
border: 1px solid rgba(122,162,247,0.12);
background: var(--bg2);
border: 1px solid var(--border);
border-radius: 10px;
overflow: hidden;
}
@@ -339,8 +339,8 @@
padding: 8px 10px;
font-size: 11px;
font-weight: 700;
color: #9aa5ce;
border-bottom: 1px solid rgba(122,162,247,0.08);
color: var(--text2);
border-bottom: 1px solid var(--sep);
flex-shrink: 0;
}
.ptd-ob-body {
@@ -378,15 +378,15 @@
.ptd-ob-row--bid .ptd-ob-bar { background: #22c55e; left: 0; right: auto; }
.ptd-ob-row--ask .ptd-ob-price { color: #ef4444; position: relative; z-index: 1; }
.ptd-ob-row--bid .ptd-ob-price { color: #22c55e; position: relative; z-index: 1; }
.ptd-ob-size { position: relative; z-index: 1; color: #6272a4; }
.ptd-ob-size { position: relative; z-index: 1; color: var(--text3); }
.ptd-ob-mid {
text-align: center;
padding: 5px;
font-size: 12px;
font-weight: 800;
color: #fff;
border-top: 1px solid rgba(122,162,247,0.08);
border-bottom: 1px solid rgba(122,162,247,0.08);
color: var(--text);
border-top: 1px solid var(--sep);
border-bottom: 1px solid var(--sep);
}
.ptd-history-card {
@@ -402,17 +402,17 @@
flex: 1;
min-height: 0;
}
.ptd-tabs { display: flex; border-bottom: 1px solid rgba(122,162,247,0.1); flex-shrink: 0; }
.ptd-tabs { display: flex; border-bottom: 1px solid var(--sep); flex-shrink: 0; }
.ptd-tab {
flex: 1;
padding: 7px;
border: none;
background: transparent;
color: #6272a4;
color: var(--text3);
font-size: 10px;
cursor: pointer;
}
.ptd-tab.active { color: #3f7ef5; font-weight: 700; border-bottom: 2px solid #3f7ef5; }
.ptd-tab.active { color: var(--accent); font-weight: 700; border-bottom: 2px solid var(--accent); }
.ptd-table--compact { font-size: 9px; }
.ptd-table--compact th,
.ptd-table--compact td { padding: 5px 6px; }