Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 0 additions & 54 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion src/app/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@
--kindle-gray: #6b7280;
--kindle-border: #e8e4e0;
--kindle-accent: #4a90e2;
--kindle-subtle: #c8c4be;
--kindle-danger: #ef4444;
--font-serif: "Georgia", "Times New Roman", serif;
}

/* 拖拽时全局禁止选中 */
/* 拖拽/平移时全局禁止选中 */
body.is-dragging { user-select: none !important; cursor: grabbing !important; }
body.is-panning { user-select: none !important; cursor: grabbing !important; }

/* 适配 UI 风格的滚动条 */
::-webkit-scrollbar { width: 6px; height: 6px; }
Expand Down Expand Up @@ -64,6 +67,7 @@ body, html {
.kindle-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.kindle-btn:active { transform: scale(0.95); }
.kindle-btn.outline { background: transparent; color: var(--kindle-ink); border: 1px solid var(--kindle-ink); }
.kindle-btn.outline:hover { background: var(--kindle-ink); color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

.leaf-main-container {
flex: 1;
Expand Down
52 changes: 0 additions & 52 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,66 +3,14 @@
line-height: 1.5;
font-weight: 400;

color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
background-color: #242424;

font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

a {
font-weight: 500;
color: #646cff;
text-decoration: inherit;
}
a:hover {
color: #535bf2;
}

body {
margin: 0;
display: flex;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

解释一下为什么删掉flex

place-items: center;
min-width: 320px;
min-height: 100vh;
}

h1 {
font-size: 3.2em;
line-height: 1.1;
}

button {
border-radius: 8px;
border: 1px solid transparent;
padding: 0.6em 1.2em;
font-size: 1em;
font-weight: 500;
font-family: inherit;
background-color: #1a1a1a;
cursor: pointer;
transition: border-color 0.25s;
}
button:hover {
border-color: #646cff;
}
button:focus,
button:focus-visible {
outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
:root {
color: #213547;
background-color: #ffffff;
}
a:hover {
color: #747bff;
}
button {
background-color: #f9f9f9;
}
}
9 changes: 6 additions & 3 deletions src/styles/HeldPagesPanel.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
opacity: 0.5;
}

.view-toggle button:hover:not(.active) { opacity: 0.75; background: rgba(0,0,0,0.05); }

.view-toggle button.active {
background: #fff;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
Expand Down Expand Up @@ -110,14 +112,15 @@
.del-btn-ux {
background: none;
border: none;
color: #eee;
color: var(--kindle-subtle);
font-size: 1.1rem;
cursor: pointer;
padding: 0 4px;
transition: color 0.2s;
}

.held-item-ux:hover .del-btn-ux { color: #ccc; }
.del-btn-ux:hover { color: #ef4444 !important; }
.held-item-ux:hover .del-btn-ux { color: var(--kindle-gray); }
.del-btn-ux:hover { color: var(--kindle-danger) !important; }

.card-title-ux { font-size: 0.85rem; font-weight: 600; color: var(--kindle-ink); }
.card-note-ux { font-size: 0.7rem; color: var(--kindle-gray); font-style: italic; }
Expand Down
6 changes: 6 additions & 0 deletions src/styles/ReaderViewport.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
transition: all 0.2s;
}

.mode-btn:hover:not(.active) { background: rgba(0,0,0,0.06); color: var(--kindle-ink); }

.mode-btn.active {
background: #fff; color: var(--kindle-ink);
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
Expand All @@ -39,8 +41,12 @@
border-radius: 4px; color: var(--kindle-ink);
padding: 4px 10px; cursor: pointer;
font-family: var(--font-serif); font-size: 0.75rem;
transition: all 0.2s;
}

.ux-btn:hover { background: #f0ede9; border-color: var(--kindle-gray); }
.ux-btn:active { background: #e8e4e0; transform: scale(0.97); }

.kindle-scroll-canvas {
flex: 1;
overflow: auto;
Expand Down
13 changes: 8 additions & 5 deletions src/styles/WorkspaceCanvas.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@

.pane-badge { font-size: 0.6rem; font-weight: 800; padding: 2px 6px; background: var(--kindle-ink); color: #fff; border-radius: 2px; }
.pane-title { font-size: 0.8rem; font-weight: 600; color: var(--kindle-gray); flex: 1; }
.pane-actions button { background: none; border: none; cursor: pointer; padding: 4px 8px; color: var(--kindle-gray); }
.pane-actions button:hover { color: var(--kindle-ink); }
.pane-actions button { background: none; border: none; cursor: pointer; padding: 4px 8px; color: var(--kindle-gray); border-radius: 3px; transition: all 0.2s; }
.pane-actions button:hover { color: var(--kindle-ink); background: rgba(0,0,0,0.05); }
.pane-actions button:active { transform: scale(0.93); }
.pane-actions button.danger:hover { color: var(--kindle-danger); background: rgba(239,68,68,0.08); }

.kindle-floating-window {
position: absolute;
Expand All @@ -40,9 +42,10 @@
}

.floating-header .title { flex: 1; font-size: 0.7rem; font-weight: 700; color: var(--kindle-gray); }
.actions button { background: none; border: none; cursor: pointer; color: #888; padding: 4px; }
.actions button:hover { color: var(--kindle-ink); }
.actions button.danger:hover { color: #ef4444; }
.actions button { background: none; border: none; cursor: pointer; color: #888; padding: 4px; border-radius: 3px; transition: all 0.2s; }
.actions button:hover { color: var(--kindle-ink); background: rgba(0,0,0,0.05); }
.actions button:active { transform: scale(0.93); }
.actions button.danger:hover { color: var(--kindle-danger); background: rgba(239,68,68,0.08); }

.floating-body { flex: 1; position: relative; overflow: hidden; }

Expand Down
Loading