Fix: make paginated arrows visible on dark backgrounds (#1364)

This commit is contained in:
Aditya Chandel
2025-10-16 10:28:40 -06:00
committed by GitHub
parent 814650bed9
commit 257a2efeb3
2 changed files with 10 additions and 2 deletions
@@ -175,10 +175,10 @@
</div>
<div id="epubContainer" #epubContainer></div>
@if (selectedFlow !== 'scrolled') {
<button class="epub-controls-left" [class.visible]="showControls" (click)="prevPage(); onBookTouch()">←</button>
<button class="epub-controls-left" [class.visible]="showControls" [class.dark-theme]="selectedTheme === 'black' || selectedTheme === 'grey'" (click)="prevPage(); onBookTouch()">←</button>
}
@if (selectedFlow !== 'scrolled') {
<button class="epub-controls-right" [class.visible]="showControls" (click)="nextPage(); onBookTouch()">→</button>
<button class="epub-controls-right" [class.visible]="showControls" [class.dark-theme]="selectedTheme === 'black' || selectedTheme === 'grey'" (click)="nextPage(); onBookTouch()">→</button>
}
</div>
}
@@ -92,6 +92,14 @@
padding: 10px;
transition: color 0.3s ease, transform 0.2s ease, opacity 0.3s ease;
&.dark-theme {
color: rgba(255, 255, 255, 0.7);
&:hover {
color: rgba(255, 255, 255, 0.95);
}
}
@media (max-width: 768px) {
opacity: 0;
pointer-events: none;