Files
Unraid-Navigator/public/styles.css
T

332 lines
5.1 KiB
CSS

:root {
color-scheme: light dark;
--bg: #f4f6f8;
--surface: #ffffff;
--surface-2: #eef2f5;
--text: #18222d;
--muted: #617182;
--line: #cfd8e1;
--accent: #e86f2d;
--accent-2: #287a65;
--danger: #b52c34;
--shadow: 0 18px 55px rgba(24, 34, 45, 0.22);
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #101418;
--surface: #1b2229;
--surface-2: #242e37;
--text: #eef3f7;
--muted: #a3b0bd;
--line: #36434f;
--shadow: 0 18px 55px rgba(0, 0, 0, 0.44);
}
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
background: var(--bg);
color: var(--text);
font: 14px/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button {
border: 1px solid var(--line);
border-radius: 6px;
background: var(--surface);
color: var(--text);
cursor: pointer;
font: inherit;
min-height: 32px;
padding: 0 10px;
}
button:hover {
border-color: var(--accent);
}
button.primary {
background: var(--accent);
border-color: var(--accent);
color: #fff;
}
button.icon {
align-items: center;
display: inline-flex;
height: 30px;
justify-content: center;
min-height: 30px;
padding: 0;
width: 32px;
}
.app-shell {
display: grid;
grid-template-rows: auto 1fr;
min-height: 100vh;
}
.topbar {
align-items: center;
background: var(--surface);
border-bottom: 1px solid var(--line);
display: flex;
gap: 16px;
justify-content: space-between;
padding: 12px 16px;
}
.topbar h1 {
font-size: 18px;
line-height: 1;
margin: 0 0 4px;
}
.topbar p {
color: var(--muted);
margin: 0;
}
.toolbar {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.workspace {
min-height: 0;
overflow: hidden;
position: relative;
}
.window {
background: var(--surface);
border: 1px solid var(--line);
border-radius: 8px;
box-shadow: var(--shadow);
display: grid;
grid-template-rows: auto 1fr;
min-height: 280px;
min-width: 320px;
overflow: hidden;
position: absolute;
}
.window.focused {
border-color: color-mix(in srgb, var(--accent) 62%, var(--line));
}
.window.maximized {
border-radius: 0;
}
.titlebar {
align-items: center;
background: var(--surface-2);
border-bottom: 1px solid var(--line);
cursor: move;
display: grid;
gap: 8px;
grid-template-columns: 1fr auto;
min-height: 40px;
padding: 5px 8px 5px 12px;
user-select: none;
}
.titlebar strong {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.window-actions {
display: flex;
gap: 6px;
}
.window-body {
min-height: 0;
overflow: auto;
padding: 10px;
}
.resize-handle {
bottom: 0;
cursor: nwse-resize;
height: 18px;
position: absolute;
right: 0;
width: 18px;
}
.resize-handle::after {
border-bottom: 2px solid var(--muted);
border-right: 2px solid var(--muted);
bottom: 5px;
content: "";
height: 8px;
position: absolute;
right: 5px;
width: 8px;
}
.pathbar {
align-items: center;
display: grid;
gap: 8px;
grid-template-columns: auto 1fr auto auto;
margin-bottom: 10px;
}
.pathbar input {
background: var(--surface-2);
border: 1px solid var(--line);
border-radius: 6px;
color: var(--text);
font: inherit;
min-height: 32px;
padding: 0 9px;
width: 100%;
}
.drop-zone {
border: 1px dashed transparent;
border-radius: 8px;
min-height: 180px;
}
.drop-zone.drag-over {
background: color-mix(in srgb, var(--accent) 10%, transparent);
border-color: var(--accent);
}
.file-table {
border-collapse: collapse;
width: 100%;
}
.file-table th,
.file-table td {
border-bottom: 1px solid var(--line);
padding: 8px 7px;
text-align: left;
vertical-align: middle;
}
.file-table th {
color: var(--muted);
font-size: 12px;
font-weight: 600;
}
.file-row {
cursor: default;
}
.file-row:hover,
.file-row.selected {
background: var(--surface-2);
}
.name-cell {
align-items: center;
display: flex;
gap: 8px;
min-width: 150px;
}
.badge {
border: 1px solid var(--line);
border-radius: 999px;
color: var(--muted);
display: inline-flex;
font-size: 12px;
justify-content: center;
min-width: 58px;
padding: 2px 8px;
}
.muted {
color: var(--muted);
}
.queue-list {
display: grid;
gap: 10px;
}
.job {
border: 1px solid var(--line);
border-radius: 8px;
padding: 10px;
}
.progress {
background: var(--surface-2);
border-radius: 999px;
height: 8px;
margin-top: 8px;
overflow: hidden;
}
.progress div {
background: var(--accent-2);
height: 100%;
width: 0;
}
.properties dl {
display: grid;
grid-template-columns: max-content 1fr;
gap: 8px 14px;
margin: 0;
}
.properties dt {
color: var(--muted);
}
.properties dd {
margin: 0;
overflow-wrap: anywhere;
}
@media (max-width: 720px) {
.topbar {
align-items: flex-start;
flex-direction: column;
}
.workspace {
overflow: auto;
}
.window,
.window.maximized {
border-left: 0;
border-radius: 0;
border-right: 0;
height: calc(100vh - 120px) !important;
left: 0 !important;
min-width: 0;
position: relative;
top: 0 !important;
width: 100% !important;
}
.window:not(.focused) {
display: none;
}
.resize-handle {
display: none;
}
}