-
-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add presenter view to Bespoke template (#157)
* Add bespoke presenter plugin * Update view's styling by mode * Add iframe for next slide in presenter view * Disable several bespok plugins in presenter view * Improve stability of next slide view * Allow navigation when clicked next slide view * Add basic implementation of note on presenter view * Refactor presenter plugin * Add information footer to presenter view * Add presenter view icon and keyboard shortcut * Update disable state of buttons on presenter view * Don't render notes if there aren't any notes * Fix stylelint * Fix container that doesn't fill window in Safari * Refactor presenter view template to use JSX/vhtml * Fix Jest and linter/formatter config to cover JSX * Fill test cases for presenter view * [ci skip] Update README.md and CHANGELOG.md
- Loading branch information
Showing
19 changed files
with
924 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
@mixin _button-icon($icon) { | ||
background: transparent url($icon) no-repeat center center; | ||
background-size: contain; | ||
overflow: hidden; | ||
text-indent: 100%; | ||
white-space: nowrap; | ||
} | ||
|
||
@mixin button-icon($icon, $size: 32px) { | ||
@extend %button-#{$icon}; | ||
@include button-size($size); | ||
} | ||
|
||
@mixin button-size($size) { | ||
height: $size; | ||
line-height: $size; | ||
width: $size; | ||
} | ||
|
||
%button { | ||
appearance: none; | ||
background-color: transparent; | ||
border: 0; | ||
color: inherit; | ||
cursor: pointer; | ||
font-size: inherit; | ||
opacity: 0.8; | ||
outline: none; | ||
padding: 0; | ||
transition: opacity 0.2s linear; | ||
-webkit-tap-highlight-color: transparent; | ||
|
||
&:disabled { | ||
cursor: not-allowed; | ||
opacity: 0.15 !important; | ||
} | ||
|
||
&:hover { | ||
opacity: 1; | ||
|
||
&:active { | ||
opacity: 0.6; | ||
} | ||
|
||
&:not(:disabled) { | ||
transition: none; | ||
} | ||
} | ||
} | ||
|
||
// Use placeholder selectors to prevent multi time definitions of image data URI | ||
%button-prev { | ||
@include _button-icon('../../assets/osc-prev.svg'); | ||
} | ||
|
||
%button-next { | ||
@include _button-icon('../../assets/osc-next.svg'); | ||
} | ||
|
||
%button-fullscreen { | ||
@include _button-icon('../../assets/osc-fullscreen.svg'); | ||
|
||
&.exit { | ||
background-image: url('../../assets/osc-fullscreen-exit.svg'); | ||
} | ||
} | ||
|
||
%button-presenter { | ||
@include _button-icon('../../assets/osc-presenter.svg'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.