Oeffne Kapitel und Dokument auf derselben Arbeitsflaeche, damit Pfad, Rechte und eigene Reihenfolge beim Lesen erhalten bleiben.
Deploy Development / deploy (push) Successful in 33s
Test Suite / pytest-backend (push) Successful in 56s
Test Suite / smoke-dev (push) Successful in 0s
Test Suite / frontend-build (push) Successful in 9s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-10-17 14:19:06 +02:00
1 parent 94ef46d8eb
commit 448e9a06ff
34 files changed
+2998 -696

No files matched your search

+329 -33
View File
@@ -1,21 +1,25 @@
:root {
--bg: #f4f3ef;
--surface: #ffffff;
--surface2: #f9f8f5;
--border: rgba(0, 0, 0, 0.09);
--border2: rgba(0, 0, 0, 0.16);
--bg: #f3f1ea;
--surface: #fffcf7;
--surface2: #f7f4ec;
--border: rgba(28, 27, 24, 0.08);
--border2: rgba(28, 27, 24, 0.16);
--text1: #1c1b18;
--text2: #5a5955;
--text3: #9a9892;
--text2: #5c574e;
--text3: #6f6a62;
--brand: #085041;
--accent: #1d9e75;
--accent-light: #e1f5ee;
--accent-dark: #0a5c43;
--danger: #d85a30;
--warn: #ef9f27;
--nav-h: 56px;
--nav-pad-top: 8px;
--header-h: 52px;
--font: system-ui, -apple-system, "Segoe UI", sans-serif;
--accent-2: #5dcaa5;
--accent-3: #9fe1cb;
--accent-light: #e7f6ef;
--accent-dark: #085041;
--danger: #b42318;
--warn: #8a5a12;
--nav-h: 58px;
--nav-pad-top: 6px;
--header-h: 56px;
--font: "Segoe UI", system-ui, -apple-system, sans-serif;
--shadow: 0 10px 30px rgba(28, 27, 24, 0.08);
}
@media (prefers-color-scheme: dark) {
@@ -145,14 +149,17 @@ label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(-
background: var(--bg);
}
.login-card { width: min(28rem, 100%); display: grid; gap: 16px; }
.login-card h1 { color: var(--accent); letter-spacing: -0.02em; font-size: 28px; margin: 0; }
.login-card h1 { color: var(--brand); letter-spacing: -0.02em; font-size: 28px; margin: 0; }
.login-mark { color: var(--brand); display: grid; justify-content: center; }
.app-shell {
display: flex;
flex-direction: column;
flex-direction: row;
height: 100%;
max-width: 600px;
margin: 0 auto;
width: 100%;
max-width: none;
margin: 0;
background: var(--bg);
}
.app-shell__column {
display: flex;
@@ -485,20 +492,11 @@ label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(-
.work-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
}
@media (min-width: 1024px) {
.app-shell { display: block; max-width: none; margin: 0; width: 100%; min-height: 100%; }
.desktop-sidebar { display: flex; }
.app-shell__column { margin-left: 220px; min-height: 100vh; }
@media (min-width: 760px) {
.mobile-only { display: none !important; }
.bottom-nav { display: none !important; }
.app-header { grid-template-columns: 1fr; }
.app-main {
padding: 24px 32px 32px;
max-width: 1280px;
margin-left: auto;
margin-right: auto;
width: 100%;
}
.app-main { padding: 0; }
.page { padding: 28px 32px 40px; }
.split { grid-template-columns: 1fr 1fr; }
.forms { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
}
@@ -595,7 +593,10 @@ button.hierarchy__row { width: 100%; min-height: 34px; padding: 6px 8px; border:
color: var(--text2);
border: 1px solid var(--border2);
}
.row-menu, .menu-list { display: grid; gap: 8px; }
.row-menu { display: block; }
.row-menu[open] { display: grid; gap: 8px; }
.row-menu:not([open]) > :not(summary) { display: none; }
.menu-list { display: grid; gap: 8px; }
.menu-list button { width: 100%; justify-content: flex-start; }
.placements { margin: 4px 0 0; overflow-wrap: anywhere; }
.reader-preview { display: block; max-width: 100%; height: auto; border: 1px solid var(--border); }
@@ -648,6 +649,301 @@ button.hierarchy__row { width: 100%; min-height: 34px; padding: 6px 8px; border:
@media (prefers-color-scheme: dark) {
button.danger { background: rgba(216, 90, 48, 0.16); }
.notice { color: var(--accent-dark); }
.notice { color: var(--accent-2); }
.thumb { background: #1c1c1c; }
.preview-row.is-selected { background: #14382c; }
.reader-pane { background: #1a2420; }
}
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.rail {
width: 240px;
flex: none;
display: flex;
flex-direction: column;
min-height: 0;
background: var(--brand);
color: #f4fbf7;
padding: 16px 10px 14px;
}
.app-shell.is-compact .rail { width: 72px; padding-inline: 8px; }
.rail__brand { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 6px 8px; color: #9fe1cb; }
.rail__name { font-weight: 700; letter-spacing: -0.03em; font-size: 18px; }
.app-shell.is-compact .rail__name,
.app-shell.is-compact .rail__label,
.app-shell.is-compact .rail__search,
.app-shell.is-compact .rail__user-name,
.app-shell.is-compact .rail__logout { display: none; }
.rail__toggle, .rail__link, .rail__button {
display: flex;
align-items: center;
gap: 12px;
min-height: 44px;
margin: 2px 0;
padding: 8px 12px;
border-radius: 12px;
color: #e7f6ef;
background: transparent;
text-decoration: none;
font-weight: 600;
border: 0;
}
.rail__toggle { color: #9fe1cb; }
.rail__toggle:disabled { opacity: 0.45; }
.rail__nav { display: flex; flex-direction: column; gap: 2px; }
.rail__link.active { background: rgba(159, 225, 203, 0.16); color: #fff; }
.app-shell.is-compact .rail__link,
.app-shell.is-compact .rail__toggle,
.app-shell.is-compact .rail__button {
width: 44px;
justify-content: center;
padding: 8px;
margin-inline: auto;
}
.app-shell.is-compact .rail__link.active { background: var(--accent-3); color: var(--brand); }
.rail__foot { margin-top: auto; display: grid; gap: 8px; }
.rail__search input {
background: rgba(255, 255, 255, 0.08);
border-color: transparent;
color: #fff;
}
.rail__search input::placeholder { color: #c9e8db; }
.rail__user { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px; }
.app-shell.is-compact .rail__user { justify-content: center; }
.avatar {
width: 36px;
height: 36px;
border-radius: 50%;
display: grid;
place-items: center;
background: var(--accent-3);
color: var(--brand);
font-size: 13px;
font-weight: 700;
flex: none;
}
.rail__user-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail__logout { margin-left: auto; color: #d7efe4; background: transparent; }
.mark { display: block; }
.app-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); text-decoration: none; }
.app-main:has(.workspace) {
padding: 0;
overflow: hidden;
display: flex;
flex-direction: column;
}
.workspace {
position: relative;
flex: 1;
min-height: 0;
display: grid;
grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
background: var(--bg);
}
.workspace.is-nav-hidden { grid-template-columns: minmax(0, 1fr); }
.workspace.is-split { grid-template-columns: minmax(220px, 280px) minmax(320px, 0.92fr) minmax(420px, 1.12fr); }
.workspace.is-nav-hidden.is-split { grid-template-columns: minmax(320px, 0.9fr) minmax(400px, 1.15fr); }
.workspace.is-structure,
.workspace.is-reader-focus { grid-template-columns: minmax(0, 1fr); }
.workspace-nav, .workspace-main, .workspace-reader { min-width: 0; min-height: 0; overflow: auto; }
.workspace-nav { background: #f7f6f1; border-right: 1px solid var(--border); }
.workspace-nav.is-overlay {
position: absolute;
z-index: 6;
inset: 0 auto 0 0;
width: min(340px, 88vw);
box-shadow: var(--shadow);
}
.workspace-scrim { position: absolute; inset: 0; z-index: 5; border: 0; background: rgba(28, 27, 24, 0.28); }
.workspace-main { padding: 22px 28px 32px; }
.workspace-reader { background: #eef2ee; border-left: 1px solid var(--border); display: flex; min-height: 0; }
.workspace-head, .title-row, .page-actions, .content-toolbar, .reader-pane__bar, .reader-controls {
display: flex;
gap: 12px;
align-items: flex-start;
justify-content: space-between;
flex-wrap: wrap;
}
.workspace-head { margin-bottom: 8px; }
.title-row { align-items: center; justify-content: flex-start; gap: 10px; }
.title-row h1 { margin: 0; }
.status-pill {
display: inline-flex;
align-items: center;
min-height: 28px;
padding: 2px 10px;
border-radius: 999px;
background: #f3e6c8;
color: #6a4b12;
font-size: 13px;
font-weight: 700;
}
.status-pill.is-closed { background: #eceae4; color: #4d4a45; }
.surface-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--border); margin: 8px 0 16px; }
.surface-tabs button {
background: transparent;
color: var(--text2);
border-radius: 0;
min-height: 44px;
padding: 8px 0;
border-bottom: 2px solid transparent;
}
.surface-tabs button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--accent); }
.structure { display: grid; align-content: start; gap: 14px; padding: 16px 14px 24px; }
.structure__bar, .structure h2 { display: flex; align-items: center; justify-content: space-between; margin: 0; font-size: 20px; }
.structure h3 { margin: 8px 0 4px; font-size: 13px; color: var(--text2); font-weight: 700; }
.context-select select { background: #fff; }
.nav-tree, .chapter-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav-tree ul { margin: 0; padding: 0 0 0 14px; }
.nav-tree__link, .chapter-link {
display: flex;
align-items: flex-start;
gap: 8px;
width: 100%;
min-height: 44px;
padding: 8px 10px;
border: 0;
border-radius: 12px;
background: transparent;
color: inherit;
text-align: left;
text-decoration: none;
font-weight: 600;
}
.nav-tree__link.is-current, .chapter-link.is-current { background: var(--accent-light); color: var(--brand); }
.nav-tree__kind { display: block; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text3); font-weight: 700; }
.nav-tree__title, .chapter-link span:first-child, .preview-row__main strong, h1 { overflow-wrap: anywhere; }
.chapter-link { justify-content: space-between; align-items: center; }
.count {
min-width: 1.6rem;
text-align: center;
color: var(--text2);
font-size: 13px;
font-weight: 650;
}
.chapter-link__move { display: flex; gap: 6px; padding: 0 8px 8px; }
.chapter-link__move button { min-height: 36px; padding: 4px 8px; font-size: 13px; }
.chapter-add { justify-content: flex-start; }
.content-toolbar { align-items: center; margin-bottom: 12px; }
.content-toolbar h2 { font-size: 18px; text-transform: none; letter-spacing: 0; color: var(--text1); }
.order-choice { margin: 0; }
.preview-list { display: grid; gap: 8px; }
.preview-row {
border: 1px solid transparent;
border-radius: 16px;
padding: 12px;
background: transparent;
}
.preview-row.is-selected { background: var(--accent-light); }
.preview-row__main strong { font-size: 17px; }
.thumb {
width: 74px;
height: 96px;
flex-basis: 74px;
border-radius: 8px;
box-shadow: 0 1px 2px rgba(28, 27, 24, 0.08);
}
.icon-button {
width: 44px;
min-width: 44px;
height: 44px;
padding: 0;
background: transparent;
color: var(--text2);
border: 0;
}
.row-menu summary { min-height: 44px; min-width: 44px; justify-content: center; }
.desktop-add svg, .mobile-add svg { width: 18px; height: 18px; }
.mobile-add { display: none; }
.reader-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; width: 100%; }
.reader-pane__bar { padding: 16px 16px 8px; align-items: center; }
.reader-pane__heading { flex: 1 1 12rem; min-width: 0; }
.reader-pane__heading h2 { font-size: 22px; overflow-wrap: anywhere; }
.reader-pane__heading p, .reader-back { color: var(--text2); font-size: 14px; }
.reader-back { background: transparent; color: var(--brand); padding-inline: 0; }
.reader-pane__tools { display: flex; gap: 4px; }
.reader-pane__stage { flex: 1; min-height: 240px; overflow: auto; padding: 8px 16px 16px; }
.reader-pane__state, .reader-note {
background: var(--surface);
border-radius: 16px;
padding: 16px;
display: grid;
gap: 10px;
}
.reader-canvas, .reader-image, .reader-frame {
display: block;
max-width: 100%;
margin: 0 auto;
background: #fff;
box-shadow: var(--shadow);
}
.reader-frame { width: 100%; min-height: 70vh; border: 0; }
.reader-pane__foot {
display: flex;
flex-wrap: wrap;
gap: 8px 12px;
align-items: center;
justify-content: space-between;
padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0px));
background: rgba(255, 252, 247, 0.92);
border-top: 1px solid var(--border);
}
.reader-pages, .reader-zoom { display: flex; align-items: center; gap: 6px; }
.reader-annotate { display: grid; gap: 10px; padding: 12px 16px 20px; background: var(--surface); }
.sheet {
width: min(520px, 100%);
margin-top: auto;
background: var(--surface);
border-radius: 16px 16px 0 0;
padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
}
.menu-list a {
display: flex;
align-items: center;
min-height: 44px;
padding: 8px 10px;
border-radius: 10px;
text-decoration: none;
font-weight: 650;
background: var(--surface2);
}
@media (max-width: 759px) {
.rail { display: none; }
.app-shell { flex-direction: column; }
.workspace-main, .structure { padding-bottom: 96px; }
.mobile-add { display: none; }
.page-actions { flex-wrap: wrap; }
.desktop-add { width: 100%; justify-content: center; }
.modal-overlay { padding: 0; align-items: end; }
.modal {
width: 100%;
max-height: 100%;
height: 100%;
border-radius: 0;
padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}
.sheet { height: auto; }
body.is-phone-reading .bottom-nav,
body.is-phone-reading .app-header { display: none !important; }
body.is-phone-reading .workspace-reader { min-height: 100%; }
.preview-row__actions { flex-basis: 100%; margin-left: 0; }
}
@media (min-width: 760px) and (max-width: 1179px) {
.rail { width: 72px; }
.rail__name, .rail__label, .rail__search, .rail__user-name, .rail__logout { display: none; }
.rail__link, .rail__toggle, .rail__button { width: 44px; justify-content: center; margin-inline: auto; padding: 8px; }
}