Files
webmanager-mvp/webui/html/style.css
T
2026-03-12 11:45:56 +01:00

727 lines
13 KiB
CSS

:root {
--bottom-reserve: 0px;
--radius-sm: 4px;
--radius-md: 9px;
--shadow-elevated: 0 14px 34px rgba(12, 20, 32, 0.18);
--shadow-panel: 0 2px 8px rgba(8, 14, 22, 0.06);
}
:root[data-theme="dark"] {
--color-page-bg: #161c25;
--color-surface: #1d2531;
--color-surface-elevated: #222c39;
--color-border: #314052;
--color-border-strong: #55739f;
--color-text-primary: #e7edf6;
--color-text-muted: #9aa9bd;
--color-accent: #6aa5ff;
--color-accent-contrast: #07192f;
--color-selection-bg: #233754;
--color-selection-border: #5c8fda;
--color-current-row-bg: #1f2d42;
--color-current-row-border: #6a87b5;
--color-active-pane-border: #78adff;
--color-button-bg: #283444;
--color-button-hover: #314258;
--color-button-secondary-bg: #202935;
--color-list-header-bg: rgba(255, 255, 255, 0.02);
--color-list-row-hover: rgba(106, 165, 255, 0.08);
--color-danger: #ff8e8e;
--color-danger-bg: #462328;
--color-overlay-bg: rgba(8, 12, 18, 0.62);
}
:root[data-theme="light"] {
--color-page-bg: #eef3f9;
--color-surface: #ffffff;
--color-surface-elevated: #f8fbff;
--color-border: #d6e0ec;
--color-border-strong: #7ca0d1;
--color-text-primary: #172233;
--color-text-muted: #617086;
--color-accent: #235ec7;
--color-accent-contrast: #ffffff;
--color-selection-bg: #e5eefc;
--color-selection-border: #7b9fdb;
--color-current-row-bg: #f1f6ff;
--color-current-row-border: #a2bce8;
--color-active-pane-border: #235ec7;
--color-button-bg: #f6f9fd;
--color-button-hover: #edf3fb;
--color-button-secondary-bg: #f3f6fb;
--color-list-header-bg: #f8fbff;
--color-list-row-hover: #f5f9ff;
--color-danger: #b42323;
--color-danger-bg: #fdecec;
--color-overlay-bg: rgba(18, 28, 40, 0.30);
}
:root {
--bg: var(--color-page-bg);
--panel: var(--color-surface);
--border: var(--color-border);
--text: var(--color-text-primary);
--muted: var(--color-text-muted);
--error: var(--color-danger);
--accent: var(--color-accent);
--active-border: var(--color-active-pane-border);
--active-bg: var(--color-surface);
}
* { box-sizing: border-box; }
html, body {
height: 100%;
}
body {
margin: 0;
font-family: Inter, "Segoe UI", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
background: var(--color-page-bg);
color: var(--color-text-primary);
overflow: hidden;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
#app-shell {
height: 100vh;
display: grid;
grid-template-rows: auto 1fr auto;
}
#title-zone {
padding: 8px 12px;
border-bottom: 1px solid var(--color-border);
background: var(--color-surface-elevated);
display: flex;
align-items: center;
justify-content: space-between;
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
}
#title-zone-actions {
display: flex;
align-items: center;
gap: 10px;
min-width: 0;
}
h1, h2, h3 {
margin: 0;
}
h1 {
font-size: 15px;
font-weight: 700;
letter-spacing: -0.01em;
line-height: 1.2;
}
.workspace {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
padding: 8px 12px;
min-height: 0;
}
.panel {
background: var(--color-surface);
border: 1px solid var(--color-border);
border-radius: var(--radius-md);
padding: 8px;
box-shadow: var(--shadow-panel);
}
.pane {
display: flex;
flex-direction: column;
min-height: 0;
height: 100%;
}
.pane.active-pane {
border-color: var(--color-active-pane-border);
box-shadow: 0 0 0 1px var(--color-active-pane-border) inset, var(--shadow-panel);
background: var(--color-surface);
}
.pane-header {
flex: 0 0 auto;
margin-bottom: 5px;
}
.pane-content {
flex: 1 1 auto;
min-height: 0;
overflow-y: auto;
border-top: 1px solid var(--color-border);
padding-top: 5px;
}
.toolbar {
display: flex;
flex-wrap: wrap;
gap: 6px;
align-items: center;
margin-bottom: 4px;
}
.compact-toolbar {
margin-bottom: 2px;
}
.pane-topbar {
justify-content: space-between;
}
.pane-title {
min-width: 42px;
font-size: 12px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--color-text-muted);
}
.checkbox {
color: var(--color-text-muted);
font-size: 13px;
}
input, button, textarea {
font: inherit;
font-size: 13px;
}
input, textarea {
padding: 5px 7px;
color: var(--color-text-primary);
background: var(--color-surface);
border: 1px solid var(--color-border);
border-radius: var(--radius-sm);
}
button {
padding: 4px 7px;
border: 1px solid var(--color-border);
border-radius: var(--radius-sm);
background: var(--color-button-bg);
color: var(--color-text-primary);
cursor: pointer;
transition: background 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}
button:hover {
background: var(--color-button-hover);
border-color: var(--color-accent);
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}
button:disabled {
opacity: 0.56;
cursor: not-allowed;
}
#theme-toggle {
width: 30px;
min-width: 30px;
height: 30px;
padding: 0;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 999px;
background: var(--color-button-secondary-bg);
}
#theme-toggle-icon {
font-size: 14px;
line-height: 1;
}
.pathline {
color: var(--color-text-muted);
margin-bottom: 3px;
font-size: 12px;
}
.compact-line {
display: flex;
gap: 6px;
flex-wrap: wrap;
}
.breadcrumbs {
display: flex;
flex-wrap: wrap;
gap: 4px;
margin-bottom: 4px;
color: var(--color-text-muted);
font-size: 12px;
}
.breadcrumbs button {
padding: 1px 4px;
font-size: 12px;
background: transparent;
color: var(--color-text-muted);
}
.breadcrumbs button:hover {
color: var(--color-accent);
background: var(--color-button-secondary-bg);
}
.list {
list-style: none;
margin: 0;
padding: 0;
}
.list-grid-header {
display: grid;
grid-template-columns: 14px minmax(0, 1fr) 88px 138px;
gap: 6px;
padding: 4px 6px 5px 6px;
border-bottom: 1px solid var(--color-border);
margin-bottom: 3px;
background: var(--color-list-header-bg);
border-radius: var(--radius-sm);
color: var(--color-text-muted);
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.col-size,
.col-modified {
text-align: right;
}
.list li {
border-top: 1px solid var(--color-border);
padding: 6px 6px 5px 6px;
display: grid;
grid-template-columns: 14px minmax(0, 1fr) 88px 138px;
gap: 6px;
align-items: center;
border-radius: var(--radius-sm);
}
.list li.selectable {
cursor: pointer;
}
.list li.selectable:hover {
background: var(--color-list-row-hover);
}
.list li.is-selected {
background: var(--color-selection-bg);
}
.list li.is-current-row {
box-shadow: inset 0 0 0 1px var(--color-current-row-border);
}
.list li.is-current-row:not(.is-selected) {
background: var(--color-current-row-bg);
}
.list li.is-current-row.is-selected {
background: var(--color-selection-bg);
box-shadow: inset 0 0 0 1px var(--color-current-row-border);
}
.select-marker {
appearance: none;
width: 10px;
min-width: 10px;
height: 10px;
border: 1px solid var(--color-border);
border-radius: 2px;
display: inline-block;
margin: 0;
cursor: pointer;
background: var(--color-surface);
}
.list li.is-selected .select-marker,
.select-marker:checked {
background: var(--color-accent);
border-color: var(--color-accent);
}
.entry-name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 13px;
}
.entry-name.entry-dir {
font-weight: 600;
}
.dir-link {
border: 0;
background: transparent;
padding: 0;
color: var(--color-accent);
text-decoration: underline;
cursor: pointer;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.dir-link:hover {
background: transparent;
}
.entry-size,
.entry-modified {
font-size: 12px;
color: var(--color-text-muted);
text-align: right;
white-space: nowrap;
}
.error {
color: var(--color-danger);
min-height: 12px;
margin-bottom: 2px;
font-size: 12px;
}
#status {
color: var(--color-text-muted);
font-size: 12px;
min-width: 0;
text-align: right;
font-weight: 500;
letter-spacing: -0.01em;
}
#footer-bar {
border-top: 1px solid var(--color-border);
background: var(--color-surface-elevated);
padding: 5px 12px 4px 12px;
display: flex;
flex-direction: column;
align-items: center;
gap: 3px;
}
#function-bar-meta {
margin-bottom: 0;
justify-content: center;
}
#function-bar {
margin-bottom: 0;
justify-content: center;
gap: 5px;
width: 100%;
max-width: 760px;
}
#function-bar button {
min-width: 72px;
padding: 4px 9px;
display: inline-flex;
align-items: baseline;
gap: 6px;
justify-content: center;
}
.shortcut-hint {
color: var(--color-text-muted);
font-size: 10px;
line-height: 1;
letter-spacing: 0.02em;
text-transform: uppercase;
}
.popup-overlay {
position: fixed;
inset: 0;
background: var(--color-overlay-bg);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}
.popup-overlay.hidden {
display: none;
}
.hidden {
display: none !important;
}
.popup-card {
width: min(420px, calc(100vw - 24px));
background: var(--color-surface-elevated);
border: 1px solid var(--color-border);
border-radius: var(--radius-md);
padding: 11px;
box-shadow: var(--shadow-elevated);
}
.popup-meta {
color: var(--color-text-muted);
font-size: 12px;
margin: 4px 0 8px 0;
}
.popup-label {
font-size: 12px;
color: var(--color-text-muted);
}
#wildcard-pattern-input,
#move-input {
width: 100%;
margin-top: 4px;
margin-bottom: 6px;
}
#rename-popup .popup-card,
#move-popup .popup-card {
width: min(520px, calc(100vw - 28px));
}
#rename-input {
width: 100%;
margin-top: 4px;
margin-bottom: 6px;
min-width: 0;
}
.popup-actions {
display: flex;
gap: 8px;
justify-content: flex-end;
}
.viewer-card {
position: relative;
width: min(960px, calc(100vw - 32px));
max-height: calc(100vh - 32px);
display: flex;
flex-direction: column;
}
.video-player {
width: 100%;
max-height: calc(100vh - 180px);
background: #000;
border-radius: var(--radius-sm);
border: 1px solid var(--color-border);
}
.search-card {
width: min(680px, calc(100vw - 32px));
}
.info-card {
width: min(620px, calc(100vw - 32px));
}
.info-grid {
display: grid;
grid-template-columns: minmax(110px, 150px) minmax(0, 1fr);
gap: 10px 14px;
margin-top: 12px;
}
.info-label {
color: var(--color-muted);
font-size: 0.88rem;
font-weight: 600;
}
.info-value {
color: var(--color-text);
min-width: 0;
overflow-wrap: anywhere;
}
.search-input {
width: 100%;
}
.search-results {
display: grid;
gap: 8px;
max-height: 320px;
overflow: auto;
margin-top: 10px;
}
.search-result {
display: grid;
gap: 2px;
width: 100%;
text-align: left;
padding: 10px 12px;
border: 1px solid var(--color-border);
border-radius: var(--radius-sm);
background: var(--color-elevated);
}
.search-result:hover {
border-color: var(--color-active-border);
}
.search-result-name {
font-weight: 600;
color: var(--color-text);
}
.search-result-path {
color: var(--color-muted);
font-size: 0.9rem;
}
.search-result-meta {
color: var(--color-muted);
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.04em;
}
.settings-card {
position: relative;
width: min(760px, calc(100vw - 32px));
max-height: calc(100vh - 56px);
display: flex;
flex-direction: column;
gap: 10px;
}
.settings-tabs {
display: flex;
gap: 6px;
padding-bottom: 4px;
border-bottom: 1px solid var(--color-border);
}
.settings-tab {
background: var(--color-button-secondary-bg);
}
.settings-tab.is-active {
border-color: var(--color-accent);
background: var(--color-button-hover);
}
.settings-panel {
min-height: 180px;
}
.settings-placeholder-title {
font-size: 13px;
font-weight: 700;
margin-bottom: 8px;
}
.settings-log-list {
display: flex;
flex-direction: column;
gap: 8px;
max-height: 46vh;
overflow-y: auto;
padding-right: 2px;
}
.settings-log-item {
border: 1px solid var(--color-border);
border-radius: var(--radius-sm);
padding: 8px 9px;
background: var(--color-surface);
}
.settings-log-item.status-failed {
border-color: var(--color-danger);
}
.settings-log-title {
font-size: 12px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.04em;
margin-bottom: 3px;
}
.settings-log-path {
font-size: 13px;
margin-bottom: 4px;
word-break: break-word;
}
.settings-log-meta {
font-size: 12px;
color: var(--color-text-muted);
}
.settings-log-error {
margin-top: 5px;
font-size: 12px;
color: var(--color-danger);
}
.viewer-close {
position: absolute;
top: 10px;
right: 10px;
min-width: 32px;
padding: 2px 8px;
}
.viewer-content,
.editor-content {
margin: 6px 0 0 0;
padding: 11px;
overflow: auto;
border: 1px solid var(--color-border);
border-radius: var(--radius-sm);
background: var(--color-surface);
color: var(--color-text-primary);
font: 12px/1.45 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
.viewer-content {
min-height: 240px;
max-height: calc(100vh - 180px);
white-space: pre-wrap;
word-break: break-word;
user-select: text;
}
.editor-content {
margin-bottom: 8px;
min-height: 280px;
max-height: calc(100vh - 220px);
width: 100%;
resize: vertical;
white-space: pre;
}
@media (max-width: 1200px) {
.workspace {
grid-template-columns: 1fr;
grid-template-rows: 1fr 1fr;
}
.list-grid-header,
.list li {
grid-template-columns: 14px minmax(0, 1fr) 70px 112px;
gap: 4px;
}
}