This commit is contained in:
2025-10-10 09:39:58 +02:00
parent 4a428b9af6
commit ddce0e39b3
36 changed files with 6410 additions and 1419 deletions
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+460 -170
View File
@@ -1,122 +1,224 @@
:root {
color-scheme: light dark;
--bg: #f3f4f6;
--surface: rgba(255, 255, 255, 0.9);
--surface-strong: rgba(255, 255, 255, 0.95);
--fg: #1f2937;
--muted: #6b7280;
--border: #d1d5db;
--accent: #2563eb;
--accent-soft: rgba(37, 99, 235, 0.12);
--accent-strong: rgba(37, 99, 235, 0.2);
--danger: #dc2626;
--success: #10b981;
color-scheme: light;
--bg: #f4f5f7;
--surface: #ffffff;
--surface-subtle: #f8f9fb;
--fg: #1b1f24;
--muted: #5f6673;
--border: #d0d5dd;
--accent: #2b5cff;
--accent-soft: rgba(43, 92, 255, 0.12);
--danger: #d92c20;
--success: #12805a;
font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
font-size: 15px;
}
html,
body {
height: 100%;
}
body {
margin: 0;
background: var(--bg);
color: var(--fg);
overflow: hidden;
}
#app {
min-height: 100vh;
display: flex;
flex-direction: column;
padding: 2rem clamp(1rem, 3vw, 3rem);
box-sizing: border-box;
}
header.global-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 1.5rem;
gap: 1rem;
}
header.global-header h1 {
margin: 0;
font-size: 1.9rem;
height: 100%;
background: var(--bg);
}
button {
font: inherit;
border-radius: 8px;
border: none;
padding: 0.55rem 1.1rem;
border-radius: 2px;
border: 1px solid transparent;
padding: 0.35rem 0.85rem;
background: var(--accent);
color: white;
color: #fff;
cursor: pointer;
transition: transform 0.1s ease, box-shadow 0.15s ease;
font-weight: 500;
transition: background 0.15s ease, border-color 0.15s ease;
}
button[disabled] {
opacity: 0.6;
opacity: 0.55;
cursor: not-allowed;
transform: none;
box-shadow: none;
}
button:hover:not([disabled]) {
transform: translateY(-1px);
box-shadow: 0 10px 20px var(--accent-strong);
background: #2047d9;
}
button.secondary {
background: transparent;
color: var(--accent);
border: 1px solid var(--accent);
color: var(--fg);
border-color: var(--border);
}
button.secondary:hover:not([disabled]) {
background: var(--surface-subtle);
}
button.danger {
background: var(--danger);
color: #fff;
box-shadow: none;
background: transparent;
color: var(--danger);
border-color: rgba(217, 44, 32, 0.45);
}
button.danger:hover:not([disabled]) {
box-shadow: 0 8px 16px rgba(220, 38, 38, 0.2);
border-color: var(--danger);
background: rgba(217, 44, 32, 0.08);
}
button.icon-button {
padding: 0.35rem 0.65rem;
padding: 0.25rem 0.55rem;
min-width: auto;
}
button.icon-button:hover:not([disabled]) {
transform: none;
button.icon-button.ghost {
border: none;
background: transparent;
color: var(--muted);
padding: 0.2rem;
}
.dashboard-layout {
display: grid;
grid-template-columns: 260px minmax(0, 1fr) 320px;
gap: 1.5rem;
align-items: start;
flex: 1;
button.icon-button.ghost:hover:not([disabled]) {
color: var(--danger);
background: transparent;
}
.sidebar,
.table-panel,
.detail-panel {
.with-icon {
display: inline-flex;
align-items: center;
gap: 0.35rem;
}
.icon-inline {
width: 1rem;
height: 1rem;
}
.icon {
width: 1rem;
height: 1rem;
display: inline-flex;
align-items: center;
justify-content: center;
}
.icon path {
stroke: currentColor;
stroke-width: 1.6;
fill: none;
}
.app-shell {
height: 100%;
display: flex;
flex-direction: column;
color: var(--fg);
background: var(--bg);
}
.app-bar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.6rem 1.5rem;
background: var(--surface);
border-radius: 16px;
padding: 1.25rem;
box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
backdrop-filter: blur(14px);
border-bottom: 1px solid var(--border);
position: sticky;
top: 0;
z-index: 10;
}
.sidebar {
position: relative;
min-height: calc(100vh - 6rem);
.app-bar__meta {
display: flex;
flex-direction: column;
gap: 0.2rem;
}
.sidebar h2,
.table-panel h2,
.detail-panel h2 {
margin: 0 0 1rem;
.app-bar h1 {
margin: 0;
font-size: 1.1rem;
font-weight: 600;
}
.app-bar__hint {
color: var(--muted);
font-size: 0.9rem;
}
.app-bar__actions {
display: flex;
align-items: center;
gap: 0.5rem;
}
.status-container {
padding: 0.4rem 1.5rem 0;
flex-shrink: 0;
}
.app-main {
flex: 1;
display: grid;
grid-template-columns: 220px minmax(0, 1fr) 320px;
gap: 1.5rem;
padding: 0.75rem 1.5rem 1.25rem;
min-height: 0;
overflow: hidden;
}
.column {
background: transparent;
border: none;
display: flex;
flex-direction: column;
min-height: 0;
}
.column + .column {
border-left: 1px solid var(--border);
padding-left: 0.6rem;
}
.column-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
padding: 0 0 0.5rem;
border-bottom: 1px solid var(--border);
}
.column-header h2 {
margin: 0;
font-size: 0.9rem;
font-weight: 600;
}
.column-subtitle {
margin-top: 0.25rem;
font-size: 0.78rem;
color: var(--muted);
}
.column-body {
flex: 1;
display: flex;
flex-direction: column;
gap: 0.32rem;
padding: 0.35rem 0 0.55rem;
min-height: 0;
}
.column-body.scrollable {
overflow-y: auto;
}
.folder-tree {
@@ -132,11 +234,13 @@ button.icon-button:hover:not([disabled]) {
.folder-row {
display: flex;
align-items: center;
gap: 0.55rem;
padding: 0.4rem 0.55rem;
border-radius: 8px;
gap: 0.22rem;
padding: 0.16rem 0.26rem;
border-radius: 2px;
cursor: pointer;
color: var(--fg);
transition: background 0.12s ease, color 0.12s ease;
font-size: 0.78rem;
}
.folder-row span.name {
@@ -147,28 +251,54 @@ button.icon-button:hover:not([disabled]) {
}
.folder-row:hover {
background: var(--accent-soft);
background: var(--surface-subtle);
}
.folder-row.active {
background: var(--accent);
color: white;
background: rgba(43, 92, 255, 0.12);
color: var(--fg);
}
.folder-row .toggle {
width: 1.1rem;
text-align: center;
font-size: 0.9rem;
width: 1.05rem;
display: inline-flex;
align-items: center;
justify-content: center;
user-select: none;
flex-shrink: 0;
transition: transform 0.18s ease;
}
.folder-row .toggle.invisible {
visibility: hidden;
}
.toggle-icon {
width: 0.9rem;
height: 0.9rem;
transition: transform 0.18s ease;
}
.folder-row .toggle.expanded .toggle-icon {
transform: rotate(90deg);
}
.folder-row .icon-button {
opacity: 0;
pointer-events: none;
transition: opacity 0.12s ease;
margin-left: auto;
}
.folder-row:hover .icon-button,
.folder-row:focus-within .icon-button {
opacity: 1;
pointer-events: auto;
}
.folder-children {
list-style: none;
margin: 0 0 0 1rem;
margin: 0 0 0 0.45rem;
padding: 0;
}
@@ -177,73 +307,133 @@ button.icon-button:hover:not([disabled]) {
outline-offset: 2px;
}
.table-panel {
overflow: hidden;
}
.table-panel header {
.documents-panel .column-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 0.8rem;
gap: 1rem;
}
.header-actions {
.documents-panel .column-header .header-actions {
display: flex;
gap: 0.5rem;
}
.table-panel table {
width: 100%;
border-collapse: collapse;
font-size: 0.95rem;
.documents-panel .column-body {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.table-panel thead {
background: var(--accent-soft);
}
.table-panel th,
.table-panel td {
padding: 0.65rem 0.75rem;
text-align: left;
.documents-panel .column-toolbar {
flex-shrink: 0;
padding-bottom: 0.4rem;
border-bottom: 1px solid var(--border);
}
.table-panel th.actions-column,
.table-panel td.actions {
.documents-panel .documents-scroll {
flex: 1;
overflow-y: auto;
border: none;
background: transparent;
min-height: 0;
padding-right: 0.3rem;
}
.documents-panel table {
width: 100%;
border-collapse: collapse;
font-size: 0.88rem;
margin-top: 0.4rem;
}
.documents-panel thead {
background: transparent;
border-bottom: 1px solid var(--border);
}
.documents-panel thead th {
position: sticky;
top: 0;
background: var(--surface);
z-index: 1;
padding: 0.45rem 0.6rem;
font-size: 0.75rem;
letter-spacing: 0.04em;
text-transform: uppercase;
color: var(--muted);
}
.documents-panel th,
.documents-panel td {
padding: 0.45rem 0.6rem;
text-align: left;
}
.documents-panel th.thumb-column,
.documents-panel td.thumb-cell {
width: 54px;
text-align: center;
}
.document-thumbnail {
width: 36px;
height: 48px;
object-fit: cover;
border-radius: 0;
box-shadow: none;
}
.thumb-placeholder {
width: 36px;
height: 48px;
border-radius: 0;
background: var(--surface-subtle);
color: var(--muted);
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 0.68rem;
font-weight: 600;
letter-spacing: 0.08em;
}
.documents-panel th.actions-column,
.documents-panel td.actions {
width: 1%;
white-space: nowrap;
}
.table-panel tbody tr {
background: var(--surface-strong);
.documents-panel tbody tr {
background: transparent;
border-bottom: 1px solid var(--border);
transition: background 0.15s ease;
}
.table-panel tbody tr:nth-child(every) {
background: var(--surface-strong);
.documents-panel tbody tr:last-child {
border-bottom: none;
}
.table-panel tbody tr:hover {
background: rgba(37, 99, 235, 0.08);
.documents-panel tbody tr:hover {
background: var(--surface-subtle);
}
.table-panel tbody tr.folder {
.documents-panel tbody tr.folder {
cursor: pointer;
font-weight: 600;
}
.table-panel tbody tr.document {
.documents-panel tbody tr.document {
cursor: pointer;
}
.table-panel tbody tr.document.selected {
background: rgba(37, 99, 235, 0.2);
.documents-panel tbody tr.document.selected {
background: rgba(43, 92, 255, 0.12);
box-shadow: inset 2px 0 0 rgba(43, 92, 255, 0.9);
}
.table-panel tbody tr.document.dragging {
.documents-panel tbody tr.document.dragging {
opacity: 0.4;
}
@@ -251,34 +441,34 @@ button.icon-button:hover:not([disabled]) {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.6rem;
margin-bottom: 1rem;
gap: 0.32rem;
margin-bottom: 0.5rem;
}
.filter-bar input[type='search'] {
flex: 1;
min-width: 220px;
min-width: 180px;
}
.tag-filters {
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
gap: 0.32rem;
}
.tag-filter {
border: 1px solid var(--accent);
border: 1px solid var(--border);
background: transparent;
color: var(--accent);
padding: 0.3rem 0.7rem;
border-radius: 999px;
color: var(--fg);
padding: 0.25rem 0.6rem;
border-radius: 2px;
cursor: pointer;
font-size: 0.85rem;
transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.tag-filter:hover {
box-shadow: 0 8px 16px var(--accent-strong);
background: var(--surface-subtle);
}
.tag-filter.active {
@@ -288,7 +478,7 @@ button.icon-button:hover:not([disabled]) {
.filter-actions {
display: flex;
gap: 0.4rem;
gap: 0.32rem;
}
.search-hint {
@@ -300,29 +490,53 @@ button.icon-button:hover:not([disabled]) {
.badge {
display: inline-flex;
align-items: center;
padding: 0.15rem 0.5rem;
border-radius: 999px;
background: var(--accent-soft);
color: var(--accent);
font-size: 0.75rem;
margin-right: 0.35rem;
padding: 0.15rem 0.35rem;
border-radius: 2px;
background: var(--surface-subtle);
color: var(--fg);
font-size: 0.74rem;
margin-right: 0.25rem;
}
.empty-state {
border: 2px dashed var(--border);
border-radius: 12px;
border: 1px dashed var(--border);
border-radius: 0;
text-align: center;
padding: 2.5rem 1rem;
padding: 1.1rem 0.9rem;
color: var(--muted);
margin-top: 1.5rem;
margin-top: 0.75rem;
background: var(--surface-subtle);
}
.detail-panel {
position: relative;
min-height: calc(100vh - 6rem);
}
.detail-panel .column-body {
gap: 1rem;
}
.detail-panel .column-body.scrollable {
overflow-y: auto;
}
.detail-actions {
display: flex;
gap: 0.32rem;
margin: 0.6rem 0;
}
.thumbnail-preview {
display: flex;
flex-direction: column;
gap: 1rem;
gap: 0.32rem;
margin: 0.4rem 0 0.6rem;
}
.thumbnail-image {
max-width: 100%;
border-radius: 0;
box-shadow: none;
}
.detail-panel .meta {
@@ -346,25 +560,26 @@ button.icon-button:hover:not([disabled]) {
.detail-panel .tag-list {
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
margin-top: 0.6rem;
gap: 0.3rem;
margin-top: 0.5rem;
}
.tag-pill {
display: inline-flex;
align-items: center;
gap: 0.4rem;
background: var(--accent-soft);
color: var(--accent);
padding: 0.2rem 0.55rem;
border-radius: 999px;
font-size: 0.8rem;
gap: 0.18rem;
background: var(--surface-subtle);
color: var(--fg);
padding: 0.2rem 0.45rem;
border-radius: 2px;
font-size: 0.78rem;
border: 1px solid var(--border);
}
.tag-pill button {
background: none;
border: none;
color: inherit;
color: var(--muted);
padding: 0;
cursor: pointer;
font-size: 0.85rem;
@@ -374,52 +589,61 @@ input,
textarea,
select {
font: inherit;
border-radius: 8px;
border-radius: 2px;
border: 1px solid var(--border);
padding: 0.55rem 0.6rem;
background: var(--surface-strong);
padding: 0.4rem 0.5rem;
background: var(--surface);
color: inherit;
width: 100%;
box-sizing: border-box;
}
input:focus,
textarea:focus,
select:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 2px var(--accent-soft);
background: var(--surface);
}
textarea {
resize: vertical;
}
form.inline {
display: flex;
gap: 0.5rem;
margin-top: 0.75rem;
gap: 0.32rem;
margin-top: 0.5rem;
}
.status-banner {
padding: 0.6rem 1rem;
border-radius: 10px;
font-size: 0.9rem;
margin-bottom: 1rem;
padding: 0.45rem 0.8rem;
border-radius: 2px;
font-size: 0.85rem;
margin-bottom: 0.8rem;
}
.status-banner.info {
background: rgba(107, 114, 128, 0.12);
background: var(--surface-subtle);
color: var(--muted);
}
.status-banner.success {
background: rgba(16, 185, 129, 0.15);
background: rgba(18, 128, 90, 0.1);
color: var(--success);
}
.status-banner.error {
background: rgba(220, 38, 38, 0.15);
background: rgba(217, 44, 32, 0.1);
color: var(--danger);
}
.drop-overlay {
position: fixed;
inset: 0;
background: rgba(37, 99, 235, 0.25);
backdrop-filter: blur(8px);
background: rgba(43, 92, 255, 0.12);
backdrop-filter: blur(4px);
display: none;
align-items: center;
justify-content: center;
@@ -431,17 +655,18 @@ form.inline {
}
.drop-overlay__content {
background: rgba(17, 24, 39, 0.85);
color: white;
padding: 2rem 3rem;
border-radius: 20px;
background: var(--surface);
color: var(--fg);
padding: 1.25rem 1.75rem;
border-radius: 2px;
text-align: center;
font-size: 1.2rem;
box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
font-size: 0.95rem;
box-shadow: none;
border: 1px solid var(--border);
}
@media (max-width: 1080px) {
.dashboard-layout {
.app-main {
grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
grid-template-rows: auto auto;
}
@@ -451,19 +676,84 @@ form.inline {
}
@media (max-width: 768px) {
#app {
padding: 1.5rem 1rem 4rem;
}
header.global-header {
.app-bar {
flex-direction: column;
align-items: flex-start;
gap: 0.75rem;
}
.dashboard-layout {
.app-main {
grid-template-columns: 1fr;
}
.sidebar,
.table-panel,
.documents-panel,
.detail-panel {
min-height: auto;
}
}
.sidebar .column-body {
gap: 0.28rem;
}
.new-folder-form {
display: flex;
gap: 0.45rem;
}
.folder-tree-scroller {
flex: 1;
overflow-y: auto;
padding-right: 0.4rem;
margin-right: -0.4rem;
min-height: 0;
}
.login-screen {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: var(--bg);
padding: 2rem;
}
.login-card {
width: min(340px, 100%);
background: var(--surface);
border: 1px solid var(--border);
border-radius: 2px;
padding: 1.75rem;
box-shadow: none;
display: flex;
flex-direction: column;
gap: 1rem;
}
.login-card h1 {
margin: 0;
font-size: 1.6rem;
font-weight: 600;
}
.login-card p {
margin: 0;
color: var(--muted);
font-size: 0.9rem;
}
.login-card form {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.login-card label {
font-size: 0.85rem;
font-weight: 600;
color: var(--muted);
}
.login-card .status-banner {
margin-bottom: 0;
}
.column-toolbar .filter-bar {
margin-bottom: 0;
}