Fix: make paginated arrows visible on dark backgrounds (#1364)
This commit is contained in:
+2
-2
@@ -175,10 +175,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="epubContainer" #epubContainer></div>
|
<div id="epubContainer" #epubContainer></div>
|
||||||
@if (selectedFlow !== 'scrolled') {
|
@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') {
|
@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>
|
</div>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -92,6 +92,14 @@
|
|||||||
padding: 10px;
|
padding: 10px;
|
||||||
transition: color 0.3s ease, transform 0.2s ease, opacity 0.3s ease;
|
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) {
|
@media (max-width: 768px) {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
|||||||
Reference in New Issue
Block a user