add jump-to-slide to help overlay, style tweaks

This commit is contained in:
hakimel 2023-01-16 12:33:37 +01:00
parent d146c1ddc1
commit 79e9fdf13f
8 changed files with 17 additions and 8 deletions

View File

@ -1805,8 +1805,7 @@ $notesWidthPercent: 25%;
top: 15px; top: 15px;
left: 15px; left: 15px;
z-index: 30; z-index: 30;
transition: all 400ms ease; font-size: 32px;
font-size: 18px;
-webkit-tap-highlight-color: rgba( 0, 0, 0, 0 ); -webkit-tap-highlight-color: rgba( 0, 0, 0, 0 );
} }
@ -1815,7 +1814,13 @@ $notesWidthPercent: 25%;
padding: 8px; padding: 8px;
font-size: inherit; font-size: inherit;
color: currentColor; color: currentColor;
border: 1px solid currentColor; border: 0;
}
.reveal.has-dark-background .jump-to-slide-input {
color: #fff;
}
.reveal.has-light-background .jump-to-slide-input {
color: #222;
} }
.reveal .jump-to-slide-input:focus { .reveal .jump-to-slide-input:focus {

2
dist/reveal.css vendored

File diff suppressed because one or more lines are too long

2
dist/reveal.esm.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
dist/reveal.js vendored

File diff suppressed because one or more lines are too long

2
dist/reveal.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -55,6 +55,9 @@ export default class JumpToSlide {
} }
/**
* Parses the current input and jumps to the given slide.
*/
jump() { jump() {
const value = this.jumpInput.value.trim( '' ); const value = this.jumpInput.value.trim( '' );

View File

@ -43,6 +43,7 @@ export default class Keyboard {
this.shortcuts['Shift + ←/&#8593/→/↓'] = 'Jump to first/last slide'; this.shortcuts['Shift + ←/&#8593/→/↓'] = 'Jump to first/last slide';
this.shortcuts['B , .'] = 'Pause'; this.shortcuts['B , .'] = 'Pause';
this.shortcuts['F'] = 'Fullscreen'; this.shortcuts['F'] = 'Fullscreen';
this.shortcuts['G'] = 'Jump to slide';
this.shortcuts['ESC, O'] = 'Slide overview'; this.shortcuts['ESC, O'] = 'Slide overview';
} }