Files
Unraid-Navigator/server/public/styles.css
T

743 lines
14 KiB
CSS

.u-nav {
--bg: #f4f6f8;
--surface: #ffffff;
--surface-2: #eef2f5;
--text: #18222d;
--muted: #617182;
--line: #cfd8e1;
--accent: #e86f2d;
--accent-2: #287a65;
--shadow: 0 18px 55px rgba(24, 34, 45, 0.22);
background: var(--bg);
color: var(--text);
display: grid;
font: 14px/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
grid-template-rows: auto 1fr;
min-height: calc(100vh - 170px);
overflow: hidden;
position: relative;
}
@media (prefers-color-scheme: dark) {
.u-nav {
--bg: #101418;
--surface: #1b2229;
--surface-2: #242e37;
--text: #eef3f7;
--muted: #a3b0bd;
--line: #36434f;
--shadow: 0 18px 55px rgba(0, 0, 0, 0.44);
}
}
.u-nav *,
.u-nav *::before,
.u-nav *::after {
box-sizing: border-box;
}
.u-nav button {
background: var(--surface);
border: 1px solid var(--line);
border-radius: 6px;
color: var(--text);
cursor: pointer;
font: inherit;
min-height: 32px;
padding: 0 10px;
}
.u-nav button:hover {
border-color: var(--accent);
}
.u-nav button.icon {
align-items: center;
display: inline-flex;
height: 30px;
justify-content: center;
min-height: 30px;
padding: 0;
width: 32px;
}
.u-nav .topbar {
align-items: center;
background: var(--surface);
border-bottom: 1px solid var(--line);
display: flex;
gap: 16px;
justify-content: space-between;
padding: 12px 16px;
}
.u-nav .topbar h1 {
color: var(--text);
font-size: 18px;
line-height: 1;
margin: 0 0 4px;
}
.u-nav .topbar p,
.u-nav .muted {
color: var(--muted);
margin: 0;
}
.u-nav .toolbar {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.u-nav .toolbar button.active {
background: var(--surface-2);
border-color: var(--accent);
}
.u-nav .workspace {
min-height: 0;
overflow: hidden;
position: relative;
}
.u-nav .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;
}
.u-nav .window.focused {
border-color: color-mix(in srgb, var(--accent) 62%, var(--line));
}
.u-nav .window.maximized {
border-radius: 0;
}
.u-nav .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;
}
.u-nav .titlebar strong {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.u-nav .window-actions {
display: flex;
gap: 6px;
}
.u-nav .window-body {
min-height: 0;
overflow: auto;
padding: 10px;
}
.u-nav .resize-handle {
bottom: 0;
cursor: nwse-resize;
height: 18px;
position: absolute;
right: 0;
width: 18px;
}
.u-nav .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;
}
.u-nav .pathbar {
align-items: center;
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 10px;
}
.u-nav .pathbar input {
background: var(--surface-2);
border: 1px solid var(--line);
border-radius: 6px;
color: var(--text);
font: inherit;
min-height: 32px;
min-width: 180px;
padding: 0 9px;
flex: 1 1 220px;
}
.u-nav .pathbar .up-button {
flex: 0 0 32px;
font-size: 18px;
line-height: 1;
}
.u-nav .pathbar > button.icon,
.u-nav .pathbar .view-toggle {
flex: 0 0 auto;
}
.u-nav .drop-zone {
border: 1px dashed transparent;
border-radius: 8px;
min-height: 180px;
}
.u-nav .drop-zone.drag-over {
background: color-mix(in srgb, var(--accent) 18%, transparent);
border-color: var(--accent);
border-style: solid;
box-shadow: inset 0 0 0 2px var(--accent);
}
.u-nav .view-toggle {
display: inline-flex;
gap: 0;
white-space: nowrap;
}
.u-nav .view-toggle button {
border-radius: 0;
flex: 0 0 auto;
min-width: 32px;
overflow: visible;
}
.u-nav .view-toggle button:first-child {
border-radius: 6px 0 0 6px;
}
.u-nav .view-toggle button:last-child {
border-radius: 0 6px 6px 0;
margin-left: -1px;
}
.u-nav .view-toggle button.active {
background: var(--surface-2);
border-color: var(--accent);
position: relative;
z-index: 1;
}
.u-nav .file-table {
border-collapse: collapse;
background: var(--surface);
color: var(--text);
width: 100%;
}
.u-nav .file-table th,
.u-nav .file-table td {
background: var(--surface) !important;
border-bottom: 1px solid var(--line);
color: var(--text) !important;
padding: 8px 7px;
text-align: left;
vertical-align: middle;
}
.u-nav .file-table th {
background: var(--surface-2) !important;
color: var(--muted);
font-size: 12px;
font-weight: 600;
}
.u-nav .file-row {
background: var(--surface);
color: var(--text);
cursor: default;
-webkit-user-drag: none;
}
.u-nav .file-row:hover,
.u-nav .file-row.selected,
.u-nav .file-row.dragging,
.u-nav .file-row.drop-candidate,
.u-nav .file-row.drop-target {
background: var(--surface-2);
}
.u-nav .file-row:hover td,
.u-nav .file-row.selected td,
.u-nav .file-row.dragging td,
.u-nav .file-row.drop-candidate td,
.u-nav .file-row.drop-target td {
background: var(--surface-2) !important;
}
.u-nav .file-row.drop-candidate td:first-child {
box-shadow: inset 3px 0 0 color-mix(in srgb, var(--accent) 72%, transparent);
}
.u-nav .file-row {
-webkit-user-drag: none;
user-select: none;
}
.u-nav .file-row.dragging {
opacity: 0.55;
}
.u-nav-dragging {
cursor: grabbing;
}
.u-nav .name-cell {
align-items: center;
display: flex;
gap: 8px;
-webkit-user-drag: none;
min-width: 150px;
user-select: none;
}
.u-nav .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;
-webkit-user-drag: none;
user-select: none;
}
.u-nav .icon-grid {
display: grid;
gap: 10px;
grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
padding: 4px;
}
.u-nav .icon-item {
align-items: center;
background: var(--surface);
border: 1px solid transparent;
border-radius: 8px;
color: var(--text);
display: grid;
gap: 6px;
grid-template-rows: auto minmax(32px, auto) auto;
justify-items: center;
min-height: 126px;
padding: 10px 8px;
text-align: center;
width: 100%;
}
.u-nav .icon-item:hover,
.u-nav .icon-item.selected,
.u-nav .icon-item.dragging,
.u-nav .icon-item.drop-candidate,
.u-nav .icon-item.drop-target {
background: var(--surface-2);
border-color: var(--line);
}
.u-nav .icon-item.selected,
.u-nav .icon-item.drop-candidate,
.u-nav .icon-item.drop-target {
border-color: var(--accent);
}
.u-nav .icon-item.drop-candidate {
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent);
}
.u-nav .file-icon {
display: block;
height: 52px;
position: relative;
width: 64px;
}
.u-nav .file-icon.directory {
background: linear-gradient(180deg, #ff9b4f 0%, var(--accent) 100%);
border: 1px solid color-mix(in srgb, var(--accent) 78%, #5b2b12);
border-radius: 7px 7px 6px 6px;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 5px 12px rgba(24, 34, 45, 0.14);
height: 40px;
margin-top: 10px;
}
.u-nav .file-icon.directory::before {
background: linear-gradient(180deg, #ffb16e 0%, #f58a3a 100%);
border: 1px solid color-mix(in srgb, var(--accent) 72%, #5b2b12);
border-bottom: 0;
border-radius: 6px 6px 0 0;
content: "";
height: 12px;
left: 5px;
position: absolute;
top: -9px;
width: 27px;
}
.u-nav .file-icon.directory::after {
background: rgba(255, 255, 255, 0.18);
border-radius: 999px;
content: "";
height: 3px;
left: 8px;
position: absolute;
right: 8px;
top: 8px;
}
.u-nav .file-icon.file,
.u-nav .file-icon.symlink,
.u-nav .file-icon.other {
background: linear-gradient(180deg, #ffffff 0%, #eef3f7 100%);
border: 1px solid var(--line);
border-radius: 6px;
box-shadow: 0 5px 12px rgba(24, 34, 45, 0.12);
height: 50px;
width: 42px;
}
.u-nav .file-icon.file::before,
.u-nav .file-icon.symlink::before,
.u-nav .file-icon.other::before {
background: linear-gradient(135deg, #dce5ee 0%, #ffffff 48%, #cfd8e1 49%, #cfd8e1 100%);
border-left: 1px solid var(--line);
border-bottom: 1px solid var(--line);
border-radius: 0 5px 0 4px;
content: "";
height: 13px;
position: absolute;
right: -1px;
top: -1px;
width: 13px;
}
.u-nav .file-icon.file::after,
.u-nav .file-icon.symlink::after,
.u-nav .file-icon.other::after {
background:
linear-gradient(var(--muted), var(--muted)) 0 0 / 22px 2px no-repeat,
linear-gradient(var(--muted), var(--muted)) 0 9px / 26px 2px no-repeat,
linear-gradient(var(--muted), var(--muted)) 0 18px / 18px 2px no-repeat;
content: "";
height: 22px;
left: 8px;
opacity: 0.58;
position: absolute;
top: 18px;
width: 26px;
}
.u-nav .icon-name {
color: var(--text);
display: -webkit-box;
font-size: 13px;
line-height: 1.25;
max-width: 100%;
overflow: hidden;
overflow-wrap: anywhere;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.u-nav .icon-meta {
color: var(--muted);
font-size: 12px;
}
.u-nav .context-menu {
background: var(--surface);
border: 1px solid var(--line);
border-radius: 8px;
box-shadow: var(--shadow);
display: grid;
min-width: 190px;
padding: 6px;
position: absolute;
z-index: 100000;
}
.u-nav .context-menu button {
border-color: transparent;
justify-content: flex-start;
text-align: left;
width: 100%;
}
.u-nav .context-menu button:hover {
background: var(--surface-2);
border-color: var(--line);
}
.u-nav .transfer-panel {
background: var(--surface);
border: 1px solid var(--line);
border-radius: 8px;
box-shadow: var(--shadow);
display: grid;
grid-template-rows: auto minmax(0, 1fr);
max-height: min(520px, calc(100% - 78px));
min-height: 220px;
min-width: 320px;
overflow: hidden;
position: absolute;
transform-origin: top right;
z-index: 10000;
}
.u-nav .transfer-panel.open {
animation: transfer-slide-down 180ms ease-out both;
}
.u-nav .transfer-panel.closing {
animation: transfer-slide-up 180ms ease-in both;
pointer-events: none;
}
.u-nav .transfer-panel-header {
align-items: center;
background: var(--surface-2);
border-bottom: 1px solid var(--line);
display: flex;
justify-content: space-between;
min-height: 40px;
padding: 5px 8px 5px 12px;
}
.u-nav .transfer-panel-body {
min-height: 0;
overflow: auto;
padding: 10px;
}
.u-nav .settings-panel {
animation: transfer-slide-down 160ms ease-out both;
background: var(--surface);
border: 1px solid var(--line);
border-radius: 8px;
box-shadow: var(--shadow);
min-width: 320px;
overflow: hidden;
position: absolute;
transform-origin: top right;
width: min(380px, calc(100% - 32px));
z-index: 10010;
}
.u-nav .settings-panel-header {
align-items: center;
background: var(--surface-2);
border-bottom: 1px solid var(--line);
display: flex;
justify-content: space-between;
min-height: 40px;
padding: 5px 8px 5px 12px;
}
.u-nav .settings-panel-body {
display: grid;
gap: 2px;
padding: 8px;
}
.u-nav .setting-row {
align-items: center;
border-radius: 6px;
display: grid;
gap: 14px;
grid-template-columns: 1fr auto;
padding: 10px;
}
.u-nav .setting-row:hover {
background: var(--surface-2);
}
.u-nav .setting-row small {
color: var(--muted);
display: block;
margin-top: 2px;
}
.u-nav .setting-row input {
accent-color: var(--accent);
height: 18px;
width: 18px;
}
@keyframes transfer-slide-down {
from {
opacity: 0;
transform: translateY(-18px) scaleY(0.96);
}
to {
opacity: 1;
transform: translateY(0) scaleY(1);
}
}
@keyframes transfer-slide-up {
from {
opacity: 1;
transform: translateY(0) scaleY(1);
}
to {
opacity: 0;
transform: translateY(-18px) scaleY(0.96);
}
}
.u-nav .queue-list {
display: grid;
gap: 10px;
}
.u-nav .debug-log {
border-top: 1px solid var(--line);
display: grid;
gap: 8px;
margin-top: 14px;
padding-top: 12px;
}
.u-nav .debug-log header {
align-items: center;
display: flex;
justify-content: space-between;
}
.u-nav .debug-entry {
background: var(--surface-2);
border: 1px solid var(--line);
border-radius: 6px;
padding: 8px;
}
.u-nav .debug-entry time {
color: var(--muted);
display: block;
font-size: 12px;
}
.u-nav .debug-entry pre {
color: var(--text);
font: 12px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
margin: 6px 0 0;
max-height: 140px;
overflow: auto;
white-space: pre-wrap;
word-break: break-word;
}
.u-nav .job {
border: 1px solid var(--line);
border-radius: 8px;
padding: 10px;
}
.u-nav .progress {
background: var(--surface-2);
border-radius: 999px;
height: 8px;
margin-top: 8px;
overflow: hidden;
}
.u-nav .progress div {
background: var(--accent-2);
height: 100%;
width: 0;
}
.u-nav .properties dl {
display: grid;
gap: 8px 14px;
grid-template-columns: max-content 1fr;
margin: 0;
}
.u-nav .properties dt {
color: var(--muted);
}
.u-nav .properties dd {
margin: 0;
overflow-wrap: anywhere;
}
@media (max-width: 720px) {
.u-nav .topbar {
align-items: flex-start;
flex-direction: column;
}
.u-nav .workspace {
overflow: auto;
}
.u-nav .window,
.u-nav .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;
}
.u-nav .window:not(.focused) {
display: none;
}
.u-nav .resize-handle {
display: none;
}
.u-nav .transfer-panel {
left: 10px !important;
max-height: min(70vh, 520px);
min-width: 0;
right: 10px !important;
width: auto !important;
}
.u-nav .settings-panel {
left: 10px !important;
min-width: 0;
right: 10px !important;
width: auto !important;
}
}