Files
NFD2NFC/src/renderer/styles.css
jung-geun 08f1de7ea0 src/preload + src/renderer: contextBridge + React 19 popover/settings
preload/index.ts: window.api 노출 (dirs/watcher/undo/settings/events/app).
renderer/popover: 트레이 팝오버 (300×400, frameless, alwaysOnTop, blur시 자동 닫힘).
renderer/settings: 설정창 (720×560, 3탭: 디렉토리/Undo기록/일반).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-09 15:41:18 +09:00

167 lines
4.9 KiB
CSS

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
font-size: 13px;
color: #1d1d1f;
background: #f5f5f7;
-webkit-font-smoothing: antialiased;
}
/* ── 공통 ── */
button {
cursor: pointer;
border: none;
border-radius: 6px;
padding: 5px 12px;
font-size: 12px;
font-family: inherit;
background: #0071e3;
color: #fff;
transition: opacity 0.1s;
}
button:hover { opacity: 0.85; }
button:disabled { opacity: 0.4; cursor: default; }
button.secondary { background: #e5e5ea; color: #1d1d1f; }
button.danger { background: #ff3b30; }
input[type="checkbox"] { accent-color: #0071e3; }
input[type="text"], select {
border: 1px solid #d1d1d6;
border-radius: 6px;
padding: 5px 8px;
font-size: 13px;
font-family: inherit;
background: #fff;
outline: none;
}
input[type="text"]:focus, select:focus { border-color: #0071e3; }
/* ── 팝오버 ── */
.popover {
display: flex;
flex-direction: column;
height: 100vh;
background: rgba(240,240,245,0.95);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
}
.popover-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 14px 8px;
border-bottom: 1px solid rgba(0,0,0,0.08);
}
.popover-header h1 { font-size: 14px; font-weight: 600; }
.popover-actions { display: flex; gap: 6px; }
.dir-list { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.dir-row {
display: flex;
align-items: center;
justify-content: space-between;
background: #fff;
border-radius: 8px;
padding: 8px 10px;
gap: 8px;
}
.dir-row .dir-info { flex: 1; overflow: hidden; }
.dir-row .dir-path {
font-size: 11px;
color: #8e8e93;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.dir-row .dir-name { font-size: 13px; font-weight: 500; }
.status-dot {
width: 8px; height: 8px;
border-radius: 50%;
flex-shrink: 0;
}
.status-dot.active { background: #34c759; }
.status-dot.paused { background: #ff9500; }
.status-dot.disabled { background: #c7c7cc; }
.activity-log {
padding: 8px 14px;
border-top: 1px solid rgba(0,0,0,0.08);
max-height: 110px;
overflow-y: auto;
}
.activity-log h3 { font-size: 11px; color: #8e8e93; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.activity-item { font-size: 11px; color: #3c3c43; padding: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-item.error { color: #ff3b30; }
.popover-footer {
display: flex;
justify-content: space-between;
padding: 8px 14px;
border-top: 1px solid rgba(0,0,0,0.08);
}
.empty-state { padding: 20px; text-align: center; color: #8e8e93; font-size: 12px; }
/* ── 설정 ── */
.settings { display: flex; flex-direction: column; height: 100vh; }
.settings-header {
padding: 16px 20px 12px;
border-bottom: 1px solid #e5e5ea;
background: #fff;
}
.settings-header h1 { font-size: 16px; font-weight: 600; }
.tabs { display: flex; gap: 0; border-bottom: 1px solid #e5e5ea; background: #fff; padding: 0 20px; }
.tab-btn {
background: none;
color: #8e8e93;
padding: 8px 14px;
border-radius: 0;
border-bottom: 2px solid transparent;
font-size: 13px;
margin-bottom: -1px;
}
.tab-btn.active { color: #0071e3; border-bottom-color: #0071e3; }
.tab-content { flex: 1; overflow-y: auto; padding: 16px 20px; }
.section { margin-bottom: 20px; }
.section-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: #8e8e93; margin-bottom: 8px; }
.card { background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid #e5e5ea; }
.card-row {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 14px;
border-bottom: 1px solid #f2f2f7;
gap: 12px;
}
.card-row:last-child { border-bottom: none; }
.card-row label { font-size: 13px; color: #1d1d1f; }
.card-row .row-desc { font-size: 11px; color: #8e8e93; margin-top: 2px; }
.add-dir-bar {
display: flex;
gap: 8px;
margin-bottom: 12px;
align-items: center;
}
.range-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.range-tag {
background: #e5e5ea;
border-radius: 4px;
padding: 2px 8px;
font-size: 11px;
cursor: pointer;
}
.range-tag:hover { background: #ff3b30; color: #fff; }
.undo-list { display: flex; flex-direction: column; gap: 4px; }
.undo-item {
background: #fff;
border-radius: 8px;
padding: 8px 12px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
border: 1px solid #e5e5ea;
}
.undo-item.reverted { opacity: 0.5; }
.undo-paths { flex: 1; overflow: hidden; }
.undo-old { font-size: 11px; color: #ff3b30; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.undo-new { font-size: 11px; color: #34c759; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.undo-ts { font-size: 10px; color: #8e8e93; flex-shrink: 0; }