1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-08-11 17:14:57 +02:00

reader mode can be turned off without reload, add Reveal.toggleReader()

This commit is contained in:
Hakim El Hattab
2023-09-19 11:52:54 +02:00
parent 4da6f6b30f
commit 5de7da7692
9 changed files with 61 additions and 27 deletions

View File

@@ -1867,6 +1867,10 @@ $notesWidthPercent: 25%;
/*********************************************
* READER MODE
*********************************************/
.reveal-viewport.loading-scroll-mode {
visibility: hidden;
}
.reveal-viewport.reveal-reader {
& {
margin: 0 auto !important;
@@ -1910,14 +1914,13 @@ $notesWidthPercent: 25%;
position: relative;
overflow: hidden;
z-index: 1;
page-break-after: always;
}
.reveal .slides .reader-page section {
visibility: visible !important;
display: block !important;
position: relative !important;
top: auto !important;
margin: 0 !important;
padding: 0 !important;