140 lines
12 KiB
CSS
140 lines
12 KiB
CSS
:root {
|
|
color-scheme: dark;
|
|
--bg: #0d1218;
|
|
--panel: #131a22;
|
|
--panel-2: #18212b;
|
|
--panel-3: #0f151c;
|
|
--line: #2a3542;
|
|
--line-soft: #202a35;
|
|
--text: #eef3f8;
|
|
--muted: #9aa8b7;
|
|
--primary: #4f87ff;
|
|
--primary-hover: #6a99ff;
|
|
--primary-soft: rgba(79, 135, 255, 0.18);
|
|
--success: #54c98a;
|
|
--warning: #e4b35c;
|
|
--danger: #ed6a72;
|
|
--shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
|
|
button, input, select, textarea { font: inherit; }
|
|
button { color: inherit; }
|
|
|
|
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
|
|
.topbar { height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #151c24, #111820); }
|
|
.brand { display: flex; align-items: center; gap: 12px; }
|
|
.brand-mark { width: 34px; height: 34px; border: 1px solid #5d8df6; color: #8aafff; border-radius: 7px; display: grid; place-items: center; font-weight: 700; }
|
|
.brand h1 { margin: 0; font-size: 20px; }
|
|
.brand p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
|
|
.top-actions { display: flex; gap: 10px; }
|
|
|
|
.workspace { flex: 1; min-height: calc(100vh - 70px); display: grid; grid-template-columns: minmax(260px, 320px) minmax(480px, 1fr) minmax(330px, 420px); overflow: hidden; }
|
|
.sidebar { background: var(--panel); min-height: 0; display: flex; flex-direction: column; }
|
|
.left-panel { border-right: 1px solid var(--line); }
|
|
.right-panel { border-left: 1px solid var(--line); }
|
|
.panel-section { padding: 18px; border-bottom: 1px solid var(--line-soft); }
|
|
.section-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
|
|
.section-heading { display: flex; justify-content: space-between; align-items: center; font-weight: 650; margin-bottom: 12px; }
|
|
.folder-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
|
|
.folder-row strong, .folder-row span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.folder-row strong { max-width: 185px; }
|
|
.folder-row span { color: var(--muted); font-size: 12px; margin-top: 4px; max-width: 185px; }
|
|
.progress-track { height: 7px; display: flex; background: #2a3440; border-radius: 99px; overflow: hidden; }
|
|
.progress-segment { width: 0; height: 100%; flex: 0 0 auto; transition: width .2s ease; }
|
|
.progress-segment.saved { background: var(--success); }
|
|
.progress-segment.skipped { background: var(--warning); }
|
|
.progress-segment.failed { background: var(--danger); }
|
|
.status-legend { display: flex; gap: 12px; margin-top: 11px; color: var(--muted); font-size: 11px; }
|
|
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; }
|
|
.dot.saved { background: var(--success); }.dot.skipped { background: #c49a5a; }.dot.pending { background: #748294; }.dot.failed { background: var(--danger); }
|
|
.file-section { flex: 1; display: flex; min-height: 0; flex-direction: column; }
|
|
.file-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
|
|
.filename-filter { grid-column: 1 / -1; }
|
|
.file-list { flex: 1; min-height: 120px; overflow: auto; margin-top: 10px; padding-right: 3px; }
|
|
.empty-list { color: var(--muted); font-size: 13px; line-height: 1.55; padding: 15px 5px; }
|
|
.file-row { width: 100%; border: 0; border-radius: 8px; background: transparent; display: grid; grid-template-columns: 50px minmax(0, 1fr) 22px; align-items: center; gap: 10px; padding: 8px; text-align: left; cursor: pointer; }
|
|
.file-row:hover { background: rgba(255,255,255,.045); }
|
|
.file-row.active { background: var(--primary-soft); outline: 1px solid rgba(79,135,255,.4); }
|
|
.file-thumb { width: 50px; height: 44px; object-fit: cover; background: #0b1015; border-radius: 5px; }
|
|
.file-meta { min-width: 0; }
|
|
.file-meta strong, .file-meta span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.file-meta strong { font-size: 13px; }.file-meta span { margin-top: 4px; color: var(--muted); font-size: 11px; }
|
|
.file-state { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; border: 1px solid #536071; color: #8390a0; }
|
|
.file-state.saved { color: #092b1b; background: var(--success); border-color: var(--success); font-weight: 800; }
|
|
.file-state.skipped { color: #2e2111; background: #c49a5a; border-color: #c49a5a; font-weight: 800; }
|
|
.file-state.failed { color: white; background: var(--danger); border-color: var(--danger); }
|
|
.sidebar-footer, .right-footer { padding: 16px 18px; border-top: 1px solid var(--line-soft); margin-top: auto; }
|
|
|
|
.viewer-panel { min-width: 0; min-height: 0; display: flex; background: #0a0f14; }
|
|
.viewer-empty { margin: auto; text-align: center; max-width: 470px; padding: 35px; }
|
|
.empty-icon { font-size: 48px; color: #6685ae; }.viewer-empty h2 { margin: 15px 0 7px; }.viewer-empty p { color: var(--muted); line-height: 1.6; margin: 0 0 22px; }
|
|
.viewer-content { width: 100%; min-height: 0; display: grid; grid-template-rows: minmax(300px, 1fr) auto 76px; }
|
|
.image-stage { min-height: 0; display: grid; place-items: center; overflow: auto; padding: 18px; background-image: radial-gradient(circle at 50% 40%, #18212a 0, #0a0f14 68%); }
|
|
.image-stage img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: var(--shadow); transition: transform .15s ease; transform-origin: center; }
|
|
.viewer-tools { border-top: 1px solid var(--line-soft); min-height: 58px; display: grid; grid-template-columns: 1fr minmax(170px, auto) 1fr; align-items: center; padding: 10px 18px; gap: 18px; background: #10171f; }
|
|
.viewer-tools > :last-child { justify-self: end; }
|
|
.tool-group { display: flex; align-items: center; gap: 7px; }
|
|
.filename-block { text-align: center; min-width: 0; }.filename-block strong, .filename-block span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.filename-block span { color: var(--muted); font-size: 11px; margin-top: 3px; }
|
|
.navigation-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 15px 18px; border-top: 1px solid var(--line); background: #111820; }
|
|
.navigation-actions { display: flex; gap: 8px; justify-self: end; }.position { font-size: 18px; color: #c8d1da; min-width: 90px; text-align: center; }
|
|
|
|
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
|
|
.tab { border: 0; border-bottom: 3px solid transparent; background: transparent; padding: 18px 8px 14px; cursor: pointer; color: var(--muted); }
|
|
.tab:hover { color: var(--text); }.tab.active { color: var(--text); border-bottom-color: var(--primary); }
|
|
#metadata-form { flex: 1; min-height: 0; overflow: auto; padding: 20px; }
|
|
.tab-panel { display: none; }.tab-panel.active { display: block; }
|
|
fieldset { border: 0; padding: 0; margin: 0 0 22px; } legend { font-weight: 650; margin-bottom: 10px; }
|
|
.radio-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; cursor: pointer; }.radio-row input { accent-color: var(--primary); }
|
|
.field { display: block; margin-bottom: 17px; }.field > span { display: block; font-size: 12px; font-weight: 650; margin-bottom: 7px; color: #cbd4dd; }
|
|
.field-grid { display: grid; gap: 10px; }.date-grid { grid-template-columns: 78px 1fr 105px; }
|
|
.input { width: 100%; border: 1px solid #384555; border-radius: 7px; background: #10171f; color: var(--text); padding: 10px 11px; outline: none; }
|
|
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,135,255,.13); }.input:disabled { opacity: .45; cursor: not-allowed; }.filter { padding: 9px 10px; }
|
|
.textarea { resize: vertical; min-height: 125px; line-height: 1.55; }
|
|
.field-help, .helper-row { color: var(--muted); font-size: 11px; line-height: 1.5; }.helper-row { display: flex; justify-content: space-between; margin-top: -9px; }
|
|
.info-card { border: 1px solid #4c4434; background: #211d16; padding: 12px; border-radius: 8px; color: #d7c8a9; font-size: 12px; line-height: 1.5; }.info-card strong { color: #ead4a6; }.info-card p { margin: 4px 0 0; }
|
|
.save-status { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }.save-status .status-icon { color: #748294; }.save-status strong, .save-status span { display: block; }.save-status strong { font-size: 13px; }.save-status span { color: var(--muted); font-size: 11px; margin-top: 3px; }.save-status.loading .status-icon, .save-status.saving .status-icon { color: var(--warning); }.save-status.saved .status-icon { color: var(--success); }.save-status.skipped .status-icon { color: #c49a5a; }.save-status.failed .status-icon { color: var(--danger); }
|
|
|
|
.button, .icon-button { border: 1px solid #354150; background: #1a232d; border-radius: 7px; cursor: pointer; transition: .15s ease; }
|
|
.button { padding: 10px 14px; }.button:hover, .icon-button:hover { border-color: #566578; background: #222d39; }.button:disabled, .icon-button:disabled { opacity: .45; cursor: not-allowed; }.button.primary { border-color: #4f87ff; background: #376fdf; }.button.primary:hover { background: #477feb; }.button.ghost { background: transparent; }.button.compact { padding: 8px 11px; }.button.large { padding: 12px 18px; }.button.wide { width: 100%; }.icon-button { width: 38px; height: 38px; display: grid; place-items: center; font-size: 18px; }
|
|
.hidden { display: none !important; }
|
|
|
|
#shortcuts-dialog { width: min(520px, calc(100vw - 30px)); background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
|
|
#shortcuts-dialog::backdrop { background: rgba(0,0,0,.65); }.dialog-heading { display: flex; justify-content: space-between; align-items: center; }.dialog-heading h2 { margin: 0; }.shortcut-list > div { display: grid; grid-template-columns: 180px 1fr; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }.shortcut-list dt { font-weight: 700; }.shortcut-list dd { margin: 0; color: var(--muted); }
|
|
.toast { position: fixed; left: 50%; bottom: 25px; transform: translate(-50%, 25px); opacity: 0; pointer-events: none; padding: 11px 16px; border: 1px solid var(--line); border-radius: 8px; background: #1c2631; box-shadow: var(--shadow); transition: .2s ease; z-index: 30; }.toast.show { opacity: 1; transform: translate(-50%, 0); }.toast.error { border-color: var(--danger); }
|
|
|
|
@media (max-width: 1100px) {
|
|
.workspace { grid-template-columns: 250px minmax(380px, 1fr) 340px; }
|
|
}
|
|
@media (max-width: 850px) {
|
|
.topbar { height: auto; min-height: 70px; flex-wrap: wrap; gap: 10px; padding: 12px; }.brand p { display: none; }
|
|
.workspace { display: block; overflow: visible; }.left-panel, .right-panel { border: 0; }.left-panel { max-height: 480px; }.viewer-panel { min-height: 620px; }.right-panel { min-height: 600px; }
|
|
}
|
|
|
|
/* v0.4 location editor */
|
|
.tabs { grid-template-columns: repeat(4, 1fr); }
|
|
.location-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
|
|
.location-search-field { margin-bottom: 0; }
|
|
.address-results { display: grid; gap: 6px; margin: 10px 0; max-height: 160px; overflow: auto; }
|
|
.address-result { width: 100%; border: 1px solid var(--line); border-radius: 7px; background: #10171f; padding: 9px 10px; text-align: left; cursor: pointer; }
|
|
.address-result:hover { border-color: var(--primary); background: #172131; }
|
|
.address-result strong, .address-result span { display: block; }
|
|
.address-result strong { font-size: 12px; line-height: 1.4; }
|
|
.address-result span { margin-top: 3px; color: var(--muted); font-size: 10px; }
|
|
.address-results .search-message { color: var(--muted); font-size: 11px; padding: 4px 1px; }
|
|
.location-map { height: 310px; min-height: 240px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #0b1118; }
|
|
.location-map:focus-within { outline: 2px solid rgba(79,135,255,.35); }
|
|
.map-help { margin: 8px 0 15px; }
|
|
.coordinate-grid { grid-template-columns: 1fr 1fr; }
|
|
.location-actions { display: flex; justify-content: flex-end; margin: -3px 0 16px; }
|
|
.location-info { margin-top: 0; }
|
|
.leaflet-container { background: #0b1118; font-family: inherit; }
|
|
.leaflet-control-attribution { font-size: 9px; }
|
|
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #18212b; color: var(--text); }
|
|
|
|
@media (max-width: 1100px) {
|
|
.tab { font-size: 12px; padding-inline: 5px; }
|
|
}
|
|
.search-privacy { margin: 7px 0 0; }
|