Skip to content
Snippets Groups Projects
Commit 9f1856d5 authored by Hakim El Hattab's avatar Hakim El Hattab
Browse files

fix notes layout when container isnt as wide as viewport

parent 6fe0cbc0
No related branches found
No related tags found
No related merge requests found
......@@ -1488,7 +1488,7 @@ body {
.reveal .speaker-notes {
display: none;
position: absolute;
width: 25vw;
width: 33.3333333333%;
height: 100%;
top: 0;
left: 100%;
......@@ -1516,7 +1516,7 @@ body {
opacity: 0.5; }
.reveal.show-notes {
max-width: 75vw;
max-width: 75%;
overflow: visible; }
.reveal.show-notes .speaker-notes {
......
......@@ -1619,6 +1619,8 @@ $controlsArrowAngleActive: 36deg;
* SPEAKER NOTES
*********************************************/
$notesWidthPercent: 25%;
// Hide on-page notes
.reveal aside.notes {
display: none;
......@@ -1629,7 +1631,7 @@ $controlsArrowAngleActive: 36deg;
.reveal .speaker-notes {
display: none;
position: absolute;
width: 25vw;
width: $notesWidthPercent / (1-$notesWidthPercent/100) * 1%;
height: 100%;
top: 0;
left: 100%;
......@@ -1665,7 +1667,7 @@ $controlsArrowAngleActive: 36deg;
.reveal.show-notes {
max-width: 75vw;
max-width: 100% - $notesWidthPercent;
overflow: visible;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment