enhanced and fixed reader

This commit is contained in:
2025-11-27 15:07:43 +01:00
parent a6c753085e
commit 86d4a518d8
5 changed files with 399 additions and 274 deletions

View File

@@ -141,18 +141,41 @@ body {
height: auto;
border-radius: var(--radius-md);
box-shadow: var(--shadow-lg);
transition: transform 0.3s ease;
cursor: zoom-in;
transition: transform 0.2s ease, box-shadow 0.2s ease;
cursor: pointer;
display: block;
}
.page-img:hover {
transform: scale(1.01);
box-shadow: 0 24px 56px rgba(0, 0, 0, 0.6);
}
.page-img.zoomed {
position: fixed;
top: 64px;
left: 0;
right: 0;
bottom: 0;
max-width: 100vw;
max-height: calc(100vh - 64px);
width: auto;
height: auto;
margin: auto;
z-index: 999;
cursor: zoom-out;
border-radius: 0;
object-fit: contain;
}
.zoom-overlay {
position: fixed;
top: 64px;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.95);
z-index: 998;
cursor: zoom-out;
max-width: 100%;
position: relative;
}
.double-container {
@@ -170,12 +193,12 @@ body {
border-radius: var(--radius-md);
box-shadow: var(--shadow-lg);
object-fit: contain;
cursor: zoom-in;
transition: transform 0.3s ease;
cursor: pointer;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.double-container img:hover {
transform: scale(1.02);
box-shadow: 0 24px 56px rgba(0, 0, 0, 0.6);
}
/* ===== LIGHT NOVEL STYLES ===== */
@@ -188,9 +211,6 @@ body {
font-size: var(--ln-font-size, 18px);
font-family: var(--ln-font-family, 'Georgia', serif);
color: var(--ln-text-color, #e5e7eb);
background: var(--ln-bg, #14141b);
border-radius: var(--radius-xl);
box-shadow: var(--shadow-lg);
text-align: var(--ln-text-align, left);
}
@@ -208,19 +228,19 @@ body {
.settings-panel {
position: fixed;
right: 0;
top: 64px;
top: 0;
bottom: 0;
width: 400px;
background: var(--bg-surface);
border-left: 1px solid var(--border);
padding: 0;
z-index: 1001;
transform: translateX(100%);
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: var(--shadow-lg);
overflow-y: auto;
display: flex;
flex-direction: column;
background: var(--bg-surface);
border-left: 1px solid var(--border);
box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
}
.settings-panel.open {
@@ -230,13 +250,13 @@ body {
.panel-header {
position: sticky;
top: 0;
background: var(--bg-elevated);
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.5rem;
border-bottom: 1px solid var(--border);
z-index: 10;
background: #0a0a0f;
border-bottom: 1px solid var(--border);
}
.panel-header h3 {
@@ -246,23 +266,24 @@ body {
}
.close-btn {
background: var(--bg-surface);
border: 1px solid var(--border);
width: 32px;
height: 32px;
border-radius: 50%;
font-size: 1.25rem;
cursor: pointer;
color: var(--text-secondary);
transition: all 0.2s;
display: flex;
align-items: center;
justify-content: center;
background: var(--bg-elevated);
border: none;
color: var(--text-secondary);
}
.close-btn:hover {
background: var(--bg-hover);
background: var(--accent);
color: var(--text-primary);
transform: rotate(90deg);
}
.panel-content {
@@ -271,23 +292,34 @@ body {
overflow-y: auto;
}
.settings-group {
.settings-section {
margin-bottom: 2rem;
padding-bottom: 2rem;
border-bottom: 1px solid var(--border);
}
.settings-group h4 {
margin: 0 0 1rem 0;
color: var(--accent);
font-size: 0.875rem;
text-transform: uppercase;
letter-spacing: 0.05em;
font-weight: 600;
.settings-section:last-child {
border-bottom: none;
margin-bottom: 0;
padding-bottom: 0;
}
.settings-section h4 {
margin: 0 0 1.25rem 0;
color: var(--text-primary);
font-size: 1rem;
font-weight: 700;
letter-spacing: -0.01em;
}
.control {
margin-bottom: 1.25rem;
}
.control:last-child {
margin-bottom: 0;
}
.control label {
display: flex;
justify-content: space-between;
@@ -308,24 +340,24 @@ body {
/* Range Inputs */
input[type="range"] {
width: 100%;
height: 6px;
background: var(--bg-elevated);
border-radius: var(--radius-full);
outline: none;
-webkit-appearance: none;
cursor: pointer;
height: 8px;
background: var(--bg-hover);
}
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 18px;
height: 18px;
background: var(--accent);
border-radius: 50%;
cursor: pointer;
transition: all 0.2s;
box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
width: 20px;
height: 20px;
background: var(--accent);
}
input[type="range"]::-webkit-slider-thumb:hover {
@@ -347,13 +379,13 @@ input[type="range"]::-moz-range-thumb {
select, input[type="color"], input[type="number"] {
width: 100%;
padding: 0.625rem 0.875rem;
background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: var(--radius-md);
color: var(--text-primary);
font-size: 0.875rem;
transition: all 0.2s;
cursor: pointer;
background: var(--bg-elevated);
border: 1px solid var(--border);
}
select:hover, input[type="color"]:hover, input[type="number"]:hover {
@@ -364,6 +396,7 @@ select:focus, input[type="color"]:focus, input[type="number"]:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-light);
transform: translateY(-1px);
}
input[type="color"] {
@@ -380,22 +413,25 @@ input[type="color"] {
}
.presets button {
padding: 0.75rem;
background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: var(--radius-md);
color: var(--text-primary);
cursor: pointer;
transition: all 0.2s;
font-weight: 600;
font-size: 0.875rem;
padding: 1rem;
background: var(--bg-elevated);
border: 1px solid var(--border);
font-weight: 700;
letter-spacing: 0.02em;
}
.presets button:hover {
background: var(--accent);
background: var(--accent);
border-color: var(--accent);
transform: translateY(-2px);
box-shadow: var(--shadow-md);
box-shadow: 0 4px 15px var(--accent-light);
}
/* Toggle Switches */
@@ -407,16 +443,17 @@ input[type="color"] {
.toggle-btn {
flex: 1;
padding: 0.5rem 1rem;
background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: var(--radius-md);
color: var(--text-secondary);
cursor: pointer;
transition: all 0.2s;
font-size: 0.8125rem;
font-weight: 500;
text-align: center;
padding: 0.75rem 1rem;
background: var(--bg-elevated);
border: 1px solid var(--border);
color: var(--text-secondary);
font-weight: 600;
}
.toggle-btn:hover {
@@ -427,7 +464,8 @@ input[type="color"] {
.toggle-btn.active {
background: var(--accent);
border-color: var(--accent);
color: white;
color: var(--text-primary);
box-shadow: 0 2px 10px var(--accent-light);
}
/* Overlay */
@@ -435,7 +473,6 @@ input[type="color"] {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.75);
backdrop-filter: blur(4px);
z-index: 1000;
opacity: 0;
pointer-events: none;
@@ -472,13 +509,6 @@ input[type="color"] {
color: var(--text-secondary);
}
/* Divider */
.divider {
height: 1px;
background: var(--border);
margin: 1.5rem 0;
}
/* Scrollbar */
.settings-panel::-webkit-scrollbar {
width: 8px;
@@ -552,4 +582,11 @@ input[type="color"] {
width: auto !important;
height: auto !important;
object-fit: contain !important;
}
.page-img.longstrip-fit {
width: 50%;
max-width: 50%;
margin: 0 auto;
display: block;
}