Very Good Web Server Work
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
/* Asset Pilot - Redesigned CSS */
|
||||
|
||||
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&family=Noto+Sans+KR:wght@400;500;600;700&display=swap');
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
@@ -5,349 +9,709 @@
|
||||
}
|
||||
|
||||
:root {
|
||||
/* 핵심 색상 변수 - app.js profit/loss 연동 보존 */
|
||||
--primary-color: #2563eb;
|
||||
--success-color: #10b981;
|
||||
--danger-color: #ef4444;
|
||||
--warning-color: #f59e0b;
|
||||
--bg-color: #f8fafc;
|
||||
--card-bg: #ffffff;
|
||||
--text-primary: #1e293b;
|
||||
--text-secondary: #64748b;
|
||||
--border-color: #e2e8f0;
|
||||
--success-color: #10b981;
|
||||
|
||||
/* 테마 */
|
||||
--bg-color: #161c2a;
|
||||
--bg-secondary: #1e2636;
|
||||
--card-bg: #222d42;
|
||||
--card-border: rgba(255,255,255,0.1);
|
||||
--text-primary: #f0f4ff;
|
||||
--text-secondary: #9aa3ba;
|
||||
--text-muted: #5e6880;
|
||||
--border-color: rgba(255,255,255,0.08);
|
||||
--accent-gold: #f59e0b;
|
||||
--accent-blue: #3b82f6;
|
||||
|
||||
--font-body: 'Noto Sans KR', sans-serif;
|
||||
--font-mono: 'IBM Plex Mono', monospace;
|
||||
}
|
||||
|
||||
/* ─── 기본 ─────────────────────────────────────────── */
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
||||
font-family: var(--font-body);
|
||||
background-color: var(--bg-color);
|
||||
color: var(--text-primary);
|
||||
line-height: 1.6;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
/* 미묘한 배경 그리드 텍스처 */
|
||||
body::before {
|
||||
content: '';
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background-image:
|
||||
linear-gradient(rgba(37,99,235,0.03) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(37,99,235,0.03) 1px, transparent 1px);
|
||||
background-size: 40px 40px;
|
||||
pointer-events: none;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
padding: 20px 24px;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
/* 헤더 */
|
||||
header {
|
||||
background: var(--card-bg);
|
||||
border-radius: 12px;
|
||||
padding: 24px;
|
||||
margin-bottom: 24px;
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
header h1 {
|
||||
font-size: 32px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
color: var(--text-secondary);
|
||||
font-size: 14px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
/* ─── 손익 색상 (app.js profit/loss 연동 - 절대 수정 금지) ─ */
|
||||
.profit { color: var(--danger-color) !important; }
|
||||
.loss { color: var(--primary-color) !important; }
|
||||
.numeric.profit, .numeric.loss { font-weight: 600; }
|
||||
|
||||
/* ─── 상태바 ─────────────────────────────────────────── */
|
||||
.status-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
font-size: 14px;
|
||||
color: var(--text-secondary);
|
||||
background: #111827;
|
||||
color: #8892aa;
|
||||
padding: 7px 20px;
|
||||
font-size: 0.8em;
|
||||
font-family: var(--font-mono);
|
||||
border-bottom: 1px solid rgba(37,99,235,0.25);
|
||||
letter-spacing: 0.02em;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.status-dot {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
.status-bar .status-dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background-color: var(--success-color);
|
||||
margin-right: 10px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.status-healthy {
|
||||
background-color: var(--success-color) !important;
|
||||
box-shadow: 0 0 8px var(--success-color);
|
||||
animation: pulse 2s infinite;
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
0%, 100% { opacity: 1; }
|
||||
50% { opacity: 0.5; }
|
||||
.status-stale {
|
||||
background-color: var(--danger-color) !important;
|
||||
box-shadow: 0 0 8px var(--danger-color);
|
||||
}
|
||||
|
||||
/* 손익 요약 */
|
||||
@keyframes pulse {
|
||||
0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--success-color); }
|
||||
50% { opacity: 0.6; box-shadow: 0 0 3px var(--success-color); }
|
||||
}
|
||||
|
||||
#status-indicator {
|
||||
width: 10px; height: 10px; border-radius: 50%;
|
||||
display: inline-block; vertical-align: middle; margin-right: 5px;
|
||||
}
|
||||
|
||||
/* ─── 헤더 ─────────────────────────────────────────── */
|
||||
header {
|
||||
background: var(--card-bg);
|
||||
border: 1px solid var(--card-border);
|
||||
border-radius: 16px;
|
||||
padding: 20px 28px;
|
||||
margin-bottom: 20px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
header::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0; left: 0; right: 0;
|
||||
height: 2px;
|
||||
background: linear-gradient(90deg, var(--primary-color), #8b5cf6, var(--accent-gold));
|
||||
}
|
||||
|
||||
header h1 {
|
||||
font-size: clamp(22px, 4vw, 30px);
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.02em;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
header .subtitle {
|
||||
color: var(--text-secondary);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.header-actions {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/* ─── 아이콘 버튼 ─────────────────────────────────── */
|
||||
.icon-btn {
|
||||
padding: 8px 14px;
|
||||
background: var(--bg-secondary);
|
||||
border: 1px solid var(--card-border);
|
||||
border-radius: 8px;
|
||||
color: var(--text-secondary);
|
||||
font-size: 13px;
|
||||
font-family: var(--font-body);
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.icon-btn:hover {
|
||||
background: var(--primary-color);
|
||||
color: white;
|
||||
border-color: var(--primary-color);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
/* ─── 손익 요약 카드 ───────────────────────────────── */
|
||||
.pnl-summary {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
||||
gap: 16px;
|
||||
margin-bottom: 24px;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 14px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.pnl-card {
|
||||
background: var(--card-bg);
|
||||
border-radius: 12px;
|
||||
padding: 20px;
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
||||
border: 1px solid var(--card-border);
|
||||
border-radius: 14px;
|
||||
padding: 18px 22px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
transition: transform 0.2s, box-shadow 0.2s;
|
||||
}
|
||||
|
||||
.pnl-card.total {
|
||||
background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
|
||||
color: white;
|
||||
.pnl-card:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 8px 30px rgba(0,0,0,0.3);
|
||||
}
|
||||
|
||||
.pnl-card h3 {
|
||||
font-size: 14px;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
margin-bottom: 12px;
|
||||
opacity: 0.9;
|
||||
color: var(--text-muted);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.pnl-value {
|
||||
font-size: 28px;
|
||||
font-weight: 700;
|
||||
font-family: var(--font-mono);
|
||||
font-size: clamp(18px, 3vw, 26px);
|
||||
font-weight: 600;
|
||||
margin-bottom: 4px;
|
||||
color: var(--text-primary);
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.pnl-percent {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
font-family: var(--font-mono);
|
||||
font-size: 13px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.pnl-value.profit {
|
||||
color: var(--danger-color);
|
||||
/* 총 손익 카드 */
|
||||
.pnl-card.total {
|
||||
background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 60%, #2563eb 100%);
|
||||
border-color: rgba(59,130,246,0.3);
|
||||
}
|
||||
|
||||
.pnl-value.loss {
|
||||
color: var(--primary-color);
|
||||
}
|
||||
.pnl-card.total h3 { color: rgba(255,255,255,0.6); }
|
||||
|
||||
.pnl-card.total .pnl-value,
|
||||
.pnl-card.total .pnl-percent {
|
||||
color: white;
|
||||
.pnl-card.total .pnl-percent,
|
||||
.pnl-card.total .profit,
|
||||
.pnl-card.total .loss {
|
||||
color: #ffffff !important;
|
||||
}
|
||||
|
||||
/* 자산 섹션 */
|
||||
.assets-section {
|
||||
/* 장식 원형 */
|
||||
.pnl-card::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
right: -20px; top: -20px;
|
||||
width: 80px; height: 80px;
|
||||
border-radius: 50%;
|
||||
background: rgba(255,255,255,0.03);
|
||||
}
|
||||
|
||||
/* ─── 테이블 섹션 ──────────────────────────────────── */
|
||||
.table-section, .assets-section {
|
||||
background: var(--card-bg);
|
||||
border-radius: 12px;
|
||||
padding: 24px;
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.section-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
border: 1px solid var(--card-border);
|
||||
border-radius: 16px;
|
||||
overflow: hidden;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.section-header h2 {
|
||||
font-size: 20px;
|
||||
.table-section-header {
|
||||
padding: 16px 22px;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: var(--text-secondary);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
}
|
||||
|
||||
/* 테이블 */
|
||||
.table-container {
|
||||
/* 테이블 가로 스크롤 래퍼 */
|
||||
.table-wrapper {
|
||||
width: 100%;
|
||||
overflow-x: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
min-width: 720px; /* 가로 스크롤 기준점 */
|
||||
}
|
||||
|
||||
th, td {
|
||||
padding: 12px 16px;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
thead tr {
|
||||
background: rgba(0,0,0,0.2);
|
||||
}
|
||||
|
||||
th {
|
||||
background-color: var(--bg-color);
|
||||
padding: 11px 16px;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
font-size: 14px;
|
||||
color: var(--text-secondary);
|
||||
color: var(--text-muted);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
text-align: left;
|
||||
white-space: nowrap;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
td {
|
||||
padding: 13px 16px;
|
||||
font-size: 14px;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
vertical-align: middle;
|
||||
color: var(--text-primary);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
tbody tr:last-child td { border-bottom: none; }
|
||||
|
||||
tbody tr {
|
||||
transition: background 0.15s;
|
||||
}
|
||||
|
||||
tbody tr:hover td {
|
||||
background: rgba(37,99,235,0.06);
|
||||
}
|
||||
|
||||
.numeric {
|
||||
text-align: right;
|
||||
font-family: var(--font-mono);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
/* 입력창 컬럼: 내용에 맞게 최소 너비 고정 */
|
||||
td.input-cell {
|
||||
width: 1%; /* shrink-to-fit */
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
td input {
|
||||
width: 100%;
|
||||
padding: 6px 8px;
|
||||
width: clamp(72px, 8vw, 120px); /* 화면 너비 비례, 최소 72 최대 120 */
|
||||
padding: 4px 8px;
|
||||
background: var(--bg-secondary);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 4px;
|
||||
font-size: 14px;
|
||||
border-radius: 5px;
|
||||
color: var(--text-primary);
|
||||
font-size: 12px;
|
||||
font-family: var(--font-mono);
|
||||
text-align: right;
|
||||
display: block;
|
||||
}
|
||||
|
||||
td input:focus {
|
||||
outline: none;
|
||||
border-color: var(--primary-color);
|
||||
box-shadow: 0 0 0 2px rgba(37,99,235,0.2);
|
||||
}
|
||||
|
||||
.price-up {
|
||||
color: var(--danger-color);
|
||||
}
|
||||
.premium-row td { background-color: rgba(245, 158, 11, 0.04) !important; }
|
||||
|
||||
.price-down {
|
||||
color: var(--primary-color);
|
||||
}
|
||||
|
||||
/* 버튼 */
|
||||
/* ─── 버튼 ────────────────────────────────────────── */
|
||||
.btn {
|
||||
padding: 10px 20px;
|
||||
padding: 9px 18px;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
font-size: 14px;
|
||||
border-radius: 7px;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
font-family: var(--font-body);
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background-color: var(--primary-color);
|
||||
background: var(--primary-color);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background-color: #1e40af;
|
||||
}
|
||||
.btn-primary:hover { background: #1e40af; transform: translateY(-1px); }
|
||||
|
||||
.btn-secondary {
|
||||
background-color: var(--border-color);
|
||||
color: var(--text-primary);
|
||||
background: var(--bg-secondary);
|
||||
color: var(--text-secondary);
|
||||
border: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.btn-secondary:hover {
|
||||
background-color: #cbd5e1;
|
||||
.btn-secondary:hover { background: var(--border-color); }
|
||||
|
||||
.investing-btn {
|
||||
display: inline-block;
|
||||
padding: 4px 10px;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
color: var(--text-secondary);
|
||||
background: var(--bg-secondary);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 5px;
|
||||
text-decoration: none;
|
||||
min-width: 80px;
|
||||
text-align: center;
|
||||
font-family: var(--font-body);
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
/* 모달 */
|
||||
.investing-btn:hover {
|
||||
background: var(--primary-color);
|
||||
color: white !important;
|
||||
border-color: var(--primary-color);
|
||||
box-shadow: 0 2px 8px rgba(37,99,235,0.4);
|
||||
}
|
||||
|
||||
/* ─── 모달 ────────────────────────────────────────── */
|
||||
.modal {
|
||||
display: none;
|
||||
position: fixed;
|
||||
z-index: 1000;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: rgba(0,0,0,0.5);
|
||||
}
|
||||
|
||||
.modal.active {
|
||||
display: flex;
|
||||
z-index: 9999;
|
||||
left: 0; top: 0;
|
||||
width: 100vw; height: 100vh;
|
||||
background-color: rgba(0, 0, 0, 0.75);
|
||||
backdrop-filter: blur(4px);
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.modal-content {
|
||||
background-color: var(--card-bg);
|
||||
border-radius: 12px;
|
||||
width: 90%;
|
||||
max-width: 600px;
|
||||
.modal.active { display: flex !important; }
|
||||
|
||||
.modal .modal-content, .modal-content.card {
|
||||
background: var(--card-bg) !important;
|
||||
border: 1px solid var(--card-border) !important;
|
||||
border-radius: 16px !important;
|
||||
width: 90% !important;
|
||||
max-width: 460px !important;
|
||||
max-height: 90vh;
|
||||
overflow-y: auto;
|
||||
box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
|
||||
box-shadow: 0 30px 60px rgba(0,0,0,0.6) !important;
|
||||
animation: modalFade 0.25s ease-out;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.modal-header {
|
||||
/* 모달 상단 컬러 라인 */
|
||||
.modal .modal-content::before,
|
||||
.modal-content.card::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0; left: 0; right: 0;
|
||||
height: 2px;
|
||||
background: linear-gradient(90deg, var(--primary-color), #8b5cf6);
|
||||
border-radius: 16px 16px 0 0;
|
||||
}
|
||||
|
||||
@keyframes modalFade {
|
||||
from { opacity: 0; transform: translateY(-16px) scale(0.97); }
|
||||
to { opacity: 1; transform: translateY(0) scale(1); }
|
||||
}
|
||||
|
||||
.modal .modal-header {
|
||||
padding: 20px 24px !important;
|
||||
border-bottom: 1px solid var(--border-color) !important;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 20px 24px;
|
||||
}
|
||||
|
||||
.modal .modal-header h2,
|
||||
.modal-content.card h2 {
|
||||
font-size: 17px !important;
|
||||
font-weight: 700 !important;
|
||||
color: var(--text-primary) !important;
|
||||
}
|
||||
|
||||
.modal .modal-body {
|
||||
padding: 22px 28px !important;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.modal .setting-group {
|
||||
width: 100% !important;
|
||||
margin: 0 0 14px 0 !important;
|
||||
padding-bottom: 14px;
|
||||
border-bottom: 1px solid var(--border-color) !important;
|
||||
}
|
||||
|
||||
.modal .setting-group:last-child { border-bottom: none !important; }
|
||||
|
||||
.modal .setting-group h3 {
|
||||
font-size: 12px !important;
|
||||
font-weight: 600 !important;
|
||||
color: var(--text-muted) !important;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
margin-bottom: 10px !important;
|
||||
}
|
||||
|
||||
.modal .setting-group label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
width: 100%;
|
||||
font-size: 14px !important;
|
||||
color: var(--text-primary) !important;
|
||||
margin-bottom: 8px !important;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.modal .setting-group label:last-child { margin-bottom: 0 !important; }
|
||||
|
||||
.modal .setting-group input[type="checkbox"] {
|
||||
width: 16px; height: 16px;
|
||||
flex-shrink: 0;
|
||||
accent-color: var(--primary-color);
|
||||
}
|
||||
|
||||
.modal .setting-group input[type="number"] {
|
||||
width: 100px !important;
|
||||
height: 32px !important;
|
||||
text-align: right !important;
|
||||
padding: 0 8px !important;
|
||||
font-size: 14px !important;
|
||||
font-family: var(--font-mono);
|
||||
background: var(--bg-secondary);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 6px;
|
||||
color: var(--text-primary);
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.modal .setting-group input[type="number"]:focus {
|
||||
outline: none;
|
||||
border-color: var(--primary-color);
|
||||
}
|
||||
|
||||
.modal .setting-group input[type="number"]::-webkit-inner-spin-button,
|
||||
.modal .setting-group input[type="number"]::-webkit-outer-spin-button {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* 기존 모달 비(非)구조 지원 (card 클래스만 있을 때) */
|
||||
.modal-content.card > hr {
|
||||
border: none;
|
||||
border-top: 1px solid var(--border-color);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.modal-content.card > .setting-group {
|
||||
padding: 14px 24px;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.modal-header h2 {
|
||||
font-size: 20px;
|
||||
.modal-content.card > .setting-group label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
font-size: 14px;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 8px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.modal-content.card > .setting-group input[type="number"] {
|
||||
display: block;
|
||||
margin-top: 8px;
|
||||
width: 120px;
|
||||
padding: 6px 10px;
|
||||
background: var(--bg-secondary);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 6px;
|
||||
color: var(--text-primary);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 13px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.modal .sub-setting {
|
||||
margin-top: 8px;
|
||||
font-size: 13px;
|
||||
color: var(--text-secondary);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.modal .sub-setting input[type="number"] {
|
||||
flex: 1;
|
||||
max-width: 130px;
|
||||
}
|
||||
|
||||
.modal .modal-footer {
|
||||
padding: 14px 24px !important;
|
||||
border-top: 1px solid var(--border-color) !important;
|
||||
background: rgba(0,0,0,0.15) !important;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 10px;
|
||||
border-radius: 0 0 16px 16px;
|
||||
}
|
||||
|
||||
.modal-content.card > .modal-footer {
|
||||
padding: 14px 24px;
|
||||
border-top: 1px solid var(--border-color);
|
||||
background: rgba(0,0,0,0.15);
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.close {
|
||||
font-size: 28px;
|
||||
font-weight: 300;
|
||||
font-size: 24px;
|
||||
cursor: pointer;
|
||||
color: var(--text-secondary);
|
||||
color: var(--text-muted);
|
||||
line-height: 1;
|
||||
padding: 2px 6px;
|
||||
border-radius: 4px;
|
||||
transition: all 0.15s;
|
||||
}
|
||||
|
||||
.close:hover {
|
||||
color: var(--text-primary);
|
||||
background: rgba(255,255,255,0.08);
|
||||
}
|
||||
|
||||
.modal-body {
|
||||
padding: 24px;
|
||||
}
|
||||
|
||||
.setting-group {
|
||||
margin-bottom: 24px;
|
||||
padding-bottom: 24px;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.setting-group:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.setting-group h3 {
|
||||
font-size: 16px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.setting-group label {
|
||||
display: block;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.setting-group input[type="checkbox"] {
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
.setting-group input[type="number"] {
|
||||
width: 120px;
|
||||
padding: 8px;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 4px;
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
.modal-footer {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 12px;
|
||||
padding: 20px 24px;
|
||||
border-top: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
/* 푸터 */
|
||||
/* ─── 푸터 ────────────────────────────────────────── */
|
||||
footer {
|
||||
text-align: center;
|
||||
padding: 24px;
|
||||
color: var(--text-secondary);
|
||||
padding: 28px;
|
||||
color: var(--text-muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
footer p {
|
||||
margin-top: 12px;
|
||||
font-size: 14px;
|
||||
}
|
||||
/* ─── 반응형 ───────────────────────────────────────── */
|
||||
|
||||
/* 반응형 */
|
||||
@media (max-width: 768px) {
|
||||
.container {
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
header h1 {
|
||||
font-size: 24px;
|
||||
}
|
||||
/* 태블릿 (768px ~ 1024px) */
|
||||
@media (max-width: 1024px) {
|
||||
.container { padding: 16px; }
|
||||
|
||||
.pnl-summary {
|
||||
grid-template-columns: 1fr;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
table {
|
||||
.pnl-value { font-size: 20px; }
|
||||
|
||||
header { padding: 16px 20px; }
|
||||
header h1 { font-size: 24px; }
|
||||
}
|
||||
|
||||
/* 모바일 (최대 767px) */
|
||||
@media (max-width: 767px) {
|
||||
.container { padding: 12px; }
|
||||
|
||||
/* 헤더 스택 레이아웃 */
|
||||
header {
|
||||
padding: 14px 16px;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
header > div {
|
||||
flex-direction: column !important;
|
||||
align-items: flex-start !important;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
header h1 { font-size: 20px; }
|
||||
header .subtitle { font-size: 12px; }
|
||||
|
||||
.header-actions {
|
||||
width: 100%;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.icon-btn {
|
||||
padding: 7px 11px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
th, td {
|
||||
padding: 8px;
|
||||
/* 손익 카드: 모바일 2+1 레이아웃 */
|
||||
.pnl-summary {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.pnl-card.total {
|
||||
grid-column: 1 / -1; /* 총 손익은 전체 폭 */
|
||||
}
|
||||
|
||||
.pnl-card { padding: 14px 16px; }
|
||||
.pnl-card h3 { font-size: 11px; margin-bottom: 6px; }
|
||||
.pnl-value { font-size: 18px; }
|
||||
.pnl-percent { font-size: 12px; }
|
||||
|
||||
/* 테이블: 가로 스크롤 + 폰트 축소 */
|
||||
.table-section, .assets-section {
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
th { font-size: 10px; padding: 9px 10px; }
|
||||
td { font-size: 12px; padding: 10px 10px; }
|
||||
|
||||
/* 모바일: 입력창 더 작게 */
|
||||
td input { width: clamp(60px, 14vw, 90px); font-size: 11px; padding: 3px 5px; }
|
||||
|
||||
/* 상태바 텍스트 압축 */
|
||||
.status-bar { font-size: 0.72em; padding: 6px 12px; }
|
||||
|
||||
/* 모달 */
|
||||
.modal .modal-content,
|
||||
.modal-content.card {
|
||||
width: 95% !important;
|
||||
max-width: none !important;
|
||||
}
|
||||
|
||||
.modal .modal-body { padding: 16px 18px !important; }
|
||||
.modal .modal-header { padding: 14px 18px !important; }
|
||||
.modal .modal-footer { padding: 12px 18px !important; }
|
||||
}
|
||||
|
||||
/* 초소형 (최대 400px) */
|
||||
@media (max-width: 400px) {
|
||||
.pnl-summary { grid-template-columns: 1fr; }
|
||||
.pnl-card.total { grid-column: auto; }
|
||||
header h1 { font-size: 18px; }
|
||||
}
|
||||
|
||||
/* ─── 스크롤바 스타일 ──────────────────────────────── */
|
||||
::-webkit-scrollbar { width: 5px; height: 5px; }
|
||||
::-webkit-scrollbar-track { background: transparent; }
|
||||
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }
|
||||
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }
|
||||
|
||||
/* ─── 포커스 접근성 ───────────────────────────────── */
|
||||
:focus-visible {
|
||||
outline: 2px solid var(--primary-color);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user