Files
juc500/dist-offline/juc500-offline-update-20260721-124543/juc500_xfer/static/styles.css
T
2026-07-21 21:11:19 +09:00

772 lines
16 KiB
CSS

:root {
--bg: #c9d1d8;
--bg-deep: #b4c0c8;
--window: #eceff1;
--titlebar: linear-gradient(180deg, #f6f7f8 0%, #e3e6ea 100%);
--toolbar: #e8ebef;
--row: #ffffff;
--row-alt: #f5f7f9;
--row-hover: #e8f0fe;
--row-selected: #0a5fff;
--row-selected-text: #ffffff;
--ink: #1c1c1e;
--muted: #6b7280;
--line: #c5CAD1;
--accent: #0b5fff;
--accent-2: #0047d9;
--danger: #c0392b;
--folder: #5cadff;
--folder-dark: #2f7fd4;
--file: #8e99a8;
--shadow: 0 10px 28px rgba(20, 28, 36, 0.14);
--radius: 10px;
--font: -apple-system, "SF Pro Text", "Segoe UI", "Apple SD Gothic Neo", sans-serif;
--mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body {
height: 100%;
overflow: hidden;
}
body {
margin: 0;
font-family: var(--font);
color: var(--ink);
background:
linear-gradient(180deg, #d7dee5 0%, #bbc5cf 100%);
}
.app {
width: 100%;
max-width: none;
margin: 0;
/* 좌·우 여백 = 하단과 동일 (14px) */
padding: 12px 14px 14px;
height: 100%;
max-height: 100dvh;
display: flex;
flex-direction: column;
gap: 8px;
overflow: hidden;
}
.top {
display: flex;
flex-wrap: wrap;
gap: 14px;
justify-content: space-between;
align-items: flex-end;
flex: 0 0 auto;
}
.brand-mark {
display: block;
font-size: 1.7rem;
font-weight: 700;
letter-spacing: -0.03em;
line-height: 1;
}
.brand-row {
display: flex;
align-items: baseline;
gap: 10px;
}
.brand-version {
font-family: var(--mono);
font-size: 0.72rem;
font-weight: 500;
color: var(--muted);
letter-spacing: -0.02em;
white-space: nowrap;
}
.brand-sub { color: var(--muted); font-size: 0.88rem; }
.conn {
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: center;
}
.auto-badge {
display: inline-flex;
align-items: center;
padding: 8px 12px;
border-radius: 999px;
background: #e8f0fe;
color: var(--accent);
font-weight: 650;
font-size: 0.88rem;
border: 1px solid #c5d7f5;
}
.auto-badge.ok { background: #dff5e8; color: #0f6e56; border-color: #b7ddd1; }
.auto-badge.wait { background: #eef1f4; color: var(--muted); border-color: var(--line); }
button {
font: inherit;
border-radius: 8px;
border: 1px solid var(--line);
padding: 9px 13px;
cursor: pointer;
background: #fff;
color: var(--ink);
}
button:disabled { opacity: 0.4; cursor: not-allowed; }
button.primary {
background: var(--accent);
border-color: var(--accent);
color: #fff;
}
button.primary:hover:not(:disabled) { background: var(--accent-2); }
button.primary.compact { padding: 6px 12px; font-size: 0.84rem; }
button.ghost:hover:not(:disabled) { background: #e8ebef; }
.control-switch {
display: inline-flex;
border: 1px solid var(--line);
border-radius: 8px;
overflow: hidden;
background: #f4f6f8;
}
.control-switch .control-btn {
border: none;
border-radius: 0;
padding: 8px 11px;
font-size: 0.84rem;
background: transparent;
}
.control-switch .control-btn + .control-btn {
border-left: 1px solid var(--line);
}
.control-switch .control-btn.active {
background: var(--accent);
color: #fff;
font-weight: 650;
}
.control-switch .control-btn:hover:not(:disabled):not(.active) {
background: #e8ebef;
}
.cable-switch .control-btn {
min-width: 4.6rem;
font-weight: 600;
letter-spacing: 0.01em;
}
.cable-switch .control-btn.cable-hidden {
display: none;
}
.cable-switch.cable-single {
gap: 0;
}
.peer-bar {
background: rgba(255,255,255,0.72);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 10px 14px;
display: flex;
justify-content: space-between;
gap: 12px;
color: var(--muted);
font-size: 0.88rem;
box-shadow: var(--shadow);
flex: 0 0 auto;
}
.main {
display: grid;
grid-template-columns: 1fr 1fr 0.75fr;
gap: 12px;
flex: 1 1 auto;
min-height: 0; /* flex 자식이 늘어나지 않고 내부 스크롤 */
overflow: hidden;
}
.main.ftp-layout {
grid-template-columns: minmax(0, 1fr) 132px minmax(0, 1fr);
align-items: stretch;
}
@media (max-width: 1100px) {
html, body { overflow: auto; }
.app {
height: auto;
max-height: none;
overflow: visible;
}
.main,
.main.ftp-layout {
grid-template-columns: 1fr;
min-height: 0;
overflow: visible;
}
.finder,
.transfer-rail {
height: min(70dvh, 640px);
max-height: 70dvh;
min-height: 280px;
}
.transfer-rail {
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
padding: 12px;
}
.rail-paths { width: 100%; }
.rail-progress { width: 100%; }
}
/* ===== Finder / Explorer window ===== */
.finder {
background: var(--window);
border: 1px solid #9aa3ad;
border-radius: 11px;
box-shadow: var(--shadow);
display: flex;
flex-direction: column;
min-height: 0;
height: 100%;
max-height: 100%;
overflow: hidden;
}
.finder-titlebar {
background: var(--titlebar);
border-bottom: 1px solid #c0c6cd;
padding: 8px 12px;
display: flex;
align-items: baseline;
gap: 10px;
user-select: none;
}
.finder-title { font-weight: 700; font-size: 0.92rem; }
.finder-subtitle { color: var(--muted); font-size: 0.78rem; }
.finder-toolbar {
background: var(--toolbar);
border-bottom: 1px solid #cfd4da;
padding: 8px 10px;
display: flex;
gap: 8px;
align-items: center;
}
.nav-group {
display: flex;
gap: 4px;
flex: 0 0 auto;
}
.tool-btn {
width: 32px;
height: 28px;
padding: 0;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 7px;
background: linear-gradient(180deg, #fff, #eef1f4);
border: 1px solid #b8c0c9;
}
.tool-btn.wide {
width: auto;
padding: 0 10px;
font-size: 0.78rem;
font-weight: 600;
}
.tool-btn svg {
width: 14px;
height: 14px;
fill: #3a4450;
}
.tool-btn:hover:not(:disabled) { background: #fff; }
.tool-btn:active:not(:disabled) { background: #dde3ea; }
.address-bar {
flex: 1;
min-width: 0;
height: 28px;
display: flex;
align-items: center;
gap: 2px;
padding: 0 8px;
background: #fff;
border: 1px solid #b8c0c9;
border-radius: 7px;
overflow: hidden;
white-space: nowrap;
font-family: var(--mono);
font-size: 0.78rem;
}
.path-sep { color: #9aa3ad; flex: 0 0 auto; }
button.path-crumb {
flex: 0 1 auto;
min-width: 0;
max-width: 36%;
padding: 2px 6px;
border: none;
border-radius: 4px;
background: transparent;
color: var(--ink);
font: inherit;
font-family: var(--mono);
font-size: 0.78rem;
overflow: hidden;
text-overflow: ellipsis;
}
button.path-crumb:hover {
background: var(--row-hover);
color: var(--accent);
}
.finder-cols {
display: grid;
grid-template-columns: minmax(140px, 1.6fr) 140px 88px 90px;
gap: 0;
background: linear-gradient(180deg, #f4f5f7, #e7eaee);
border-bottom: 1px solid #c5CAD1;
user-select: none;
}
.col-btn {
border: none;
border-right: 1px solid #d0d5db;
border-radius: 0;
background: transparent;
text-align: left;
padding: 6px 10px;
font-size: 0.72rem;
font-weight: 650;
color: #4b5563;
letter-spacing: -0.01em;
}
.col-btn:last-child { border-right: none; }
.col-btn:hover { background: rgba(255,255,255,0.55); }
.col-btn.active { color: var(--accent); }
.finder.drop-target {
outline: 2px solid var(--accent);
outline-offset: -2px;
background: #eef4ff;
}
.finder-table tr.drop-target {
background: #d6e6ff !important;
box-shadow: inset 0 0 0 2px var(--accent);
}
.finder-table tr.parent-row .name-cell span {
font-weight: 700;
letter-spacing: 0.04em;
}
.finder-table tr.parent-row {
position: sticky;
top: 0;
z-index: 2;
background: #eef3f8 !important;
box-shadow: 0 1px 0 #c5cad1;
cursor: pointer;
}
.finder-table tr.parent-row:hover {
background: #e0ebf8 !important;
}
.finder-table tr.parent-row-root {
opacity: 0.55;
cursor: default;
}
.finder-table tr.parent-row:hover:not(.selected):not(.checked) {
background: #e0ebf8 !important;
}
.finder.local-browser.drop-target .finder-empty,
.finder.remote-browser.drop-target .finder-empty {
color: var(--accent);
}
.finder-titlebar,
.finder-toolbar,
.finder-cols,
.finder-status {
flex: 0 0 auto;
}
.finder-scroll {
flex: 1 1 auto;
min-height: 0; /* 핵심: 목록만 스크롤 */
overflow: auto;
background: var(--row);
position: relative;
overscroll-behavior: contain;
}
.finder-table {
width: 100%;
border-collapse: collapse;
table-layout: fixed;
}
.finder-table tr {
cursor: default;
user-select: none;
}
.finder-table tr:nth-child(even):not(.selected):not(.checked) {
background: var(--row-alt);
}
.finder-table tr:hover:not(.selected):not(.checked) {
background: var(--row-hover);
}
.finder-table tr.selected,
.finder-table tr.checked {
background: var(--row-selected) !important;
color: var(--row-selected-text);
}
.finder-table tr.selected .muted,
.finder-table tr.checked .muted,
.finder-table tr.selected .kind,
.finder-table tr.checked .kind {
color: rgba(255,255,255,0.85);
}
.finder-table td {
padding: 5px 10px;
font-size: 0.84rem;
border-bottom: 1px solid transparent;
vertical-align: middle;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.finder-table .name-cell {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
}
.finder-table .name-cell span {
overflow: hidden;
text-overflow: ellipsis;
}
.finder-table .col-name { width: auto; }
.finder-table .col-date { width: 140px; color: var(--muted); font-variant-numeric: tabular-nums; }
.finder-table .col-size { width: 88px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.finder-table .col-kind { width: 90px; color: var(--muted); }
.item-icon {
width: 18px;
height: 18px;
flex: 0 0 auto;
}
.item-icon.folder { color: var(--folder); }
.item-icon.file { color: var(--file); }
.finder-table tr.selected .item-icon,
.finder-table tr.checked .item-icon { color: #fff; }
.finder-empty {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
color: var(--muted);
font-size: 0.9rem;
pointer-events: none;
padding: 24px;
text-align: center;
}
.finder-empty.hidden { display: none; }
.finder-status {
border-top: 1px solid #cfd4da;
background: #eef1f4;
padding: 8px 12px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
font-size: 0.78rem;
color: var(--muted);
}
.dest-hint strong {
color: var(--ink);
font-family: var(--mono);
font-weight: 600;
}
.path-hint {
font-family: var(--mono);
color: var(--ink);
max-width: 55%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* FTP 가운데 전송 레일 */
.transfer-rail {
background: var(--window);
border: 1px solid #9aa3ad;
border-radius: 11px;
box-shadow: var(--shadow);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 10px;
padding: 14px 10px;
min-height: 0;
height: 100%;
max-height: 100%;
overflow: auto;
}
.rail-paths {
width: 100%;
display: flex;
flex-direction: column;
gap: 8px;
margin-bottom: 4px;
}
.rail-path {
background: #fff;
border: 1px solid var(--line);
border-radius: 8px;
padding: 6px 8px;
font-size: 0.72rem;
min-width: 0;
}
.rail-label {
display: block;
color: var(--muted);
margin-bottom: 2px;
}
.rail-path strong {
display: block;
font-family: var(--mono);
font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.xfer-btn {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 2px;
padding: 12px 8px;
border-radius: 10px;
border: 1px solid #b8c0c9;
background: linear-gradient(180deg, #fff, #eef1f4);
font-weight: 700;
}
.xfer-btn:hover:not(:disabled) {
border-color: var(--accent);
background: #e8f0fe;
color: var(--accent);
}
.xfer-arrow {
font-size: 1.35rem;
line-height: 1;
}
.xfer-text { font-size: 0.78rem; }
.rail-hint {
margin: 4px 0 0;
text-align: center;
color: var(--muted);
font-size: 0.72rem;
line-height: 1.35;
}
.rail-progress {
width: 100%;
margin-top: auto;
display: flex;
flex-direction: column;
gap: 8px;
}
.rail-progress .status {
font-size: 0.72rem;
text-align: center;
word-break: keep-all;
}
.drop-pane {
display: none;
}
.drop-zone {
flex: 1;
border: 2px dashed #9aa8b8;
border-radius: 12px;
background: linear-gradient(180deg, #f7f9fb, #e8eef4);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: 24px;
transition: border-color 0.15s ease, background 0.15s ease;
}
.drop-zone.dragover {
border-color: var(--accent);
background: #e8f0fe;
}
.drop-title {
margin: 0 0 8px;
font-size: 1.1rem;
font-weight: 700;
}
.drop-hint {
margin: 0 0 16px;
color: var(--muted);
max-width: 26ch;
line-height: 1.45;
font-size: 0.88rem;
}
.file-pick {
display: inline-block;
padding: 8px 14px;
border-radius: 8px;
border: 1px solid var(--line);
background: #fff;
cursor: pointer;
font-size: 0.88rem;
}
.file-pick:hover { border-color: var(--accent); color: var(--accent); }
.progress-wrap {
height: 8px;
background: #d5dbe3;
border-radius: 999px;
overflow: hidden;
}
.progress-bar {
height: 100%;
width: 0%;
background: linear-gradient(90deg, var(--accent), #5cadff);
transition: width 0.12s linear;
}
.status {
min-height: 1.35em;
color: var(--muted);
font-size: 0.88rem;
}
.status.error { color: var(--danger); }
.hidden { display: none !important; }
.settings-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 38px;
height: 38px;
padding: 0;
}
.settings-btn svg { display: block; }
.modal {
position: fixed;
inset: 0;
z-index: 1000;
display: flex;
align-items: center;
justify-content: center;
padding: 18px;
}
.modal-backdrop {
position: absolute;
inset: 0;
background: rgba(18, 24, 32, 0.38);
}
.modal-panel {
position: relative;
width: min(520px, 100%);
max-height: min(86vh, 720px);
overflow: auto;
background: #f7f8fa;
border: 1px solid var(--line);
border-radius: 12px;
box-shadow: var(--shadow);
padding: 18px 18px 16px;
}
.modal-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 6px;
}
.modal-head h2 {
margin: 0;
font-size: 1.2rem;
letter-spacing: -0.02em;
}
.modal-lead {
margin: 0 0 14px;
color: var(--muted);
font-size: 0.9rem;
line-height: 1.45;
}
.ports-form {
display: flex;
flex-direction: column;
gap: 10px;
}
.port-row {
display: grid;
grid-template-columns: 1fr 118px;
gap: 10px;
align-items: center;
padding: 10px 12px;
background: #fff;
border: 1px solid var(--line);
border-radius: 10px;
}
.port-meta {
min-width: 0;
}
.port-label {
display: block;
font-weight: 650;
font-size: 0.92rem;
}
.port-desc {
display: block;
color: var(--muted);
font-size: 0.8rem;
margin-top: 2px;
line-height: 1.35;
}
.port-proto {
display: inline-block;
margin-top: 4px;
font-family: var(--mono);
font-size: 0.72rem;
color: #4b5563;
background: #eef1f4;
border-radius: 4px;
padding: 1px 6px;
}
.port-input {
width: 100%;
font: inherit;
font-family: var(--mono);
font-size: 0.95rem;
text-align: right;
padding: 8px 10px;
border: 1px solid var(--line);
border-radius: 8px;
background: #fafbfc;
}
.port-input:focus {
outline: 2px solid #c5d7f5;
border-color: var(--accent);
}
.ports-path {
margin: 12px 0 0;
font-size: 0.78rem;
word-break: break-all;
}
.settings-msg {
margin: 10px 0 0;
font-size: 0.88rem;
color: var(--accent);
}
.settings-msg.error { color: var(--danger); }
.modal-actions {
display: flex;
justify-content: flex-end;
gap: 8px;
margin-top: 16px;
}
@media (max-width: 560px) {
.port-row {
grid-template-columns: 1fr;
}
.port-input { text-align: left; }
}