mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
feat(skins): add html port of minimal skin (#140)
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
export * as MediaFullscreenEnterAltIcon from './media-fullscreen-enter-alt-icon';
|
||||
export * as MediaFullscreenEnterIcon from './media-fullscreen-enter-icon';
|
||||
export * as MediaFullscreenExitAltIcon from './media-fullscreen-exit-alt-icon';
|
||||
export * as MediaFullscreenExitIcon from './media-fullscreen-exit-icon';
|
||||
export * as MediaPauseIcon from './media-pause-icon';
|
||||
export * as MediaPlayIcon from './media-play-icon';
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
import { SVG_ICONS } from '@videojs/icons';
|
||||
|
||||
import { MediaChromeIcon } from './media-chrome-icon';
|
||||
|
||||
export function getTemplateHTML() {
|
||||
return /* html */ `
|
||||
${MediaChromeIcon.getTemplateHTML()}
|
||||
<style>
|
||||
:host {
|
||||
display: var(--media-fullscreen-enter-icon-display, inline-flex);
|
||||
}
|
||||
</style>
|
||||
${SVG_ICONS.fullscreenEnterAlt}
|
||||
`;
|
||||
}
|
||||
|
||||
export class MediaFullscreenEnterAltIcon extends MediaChromeIcon {
|
||||
static getTemplateHTML: () => string = getTemplateHTML;
|
||||
}
|
||||
|
||||
customElements.define('media-fullscreen-enter-alt-icon', MediaFullscreenEnterAltIcon);
|
||||
@@ -0,0 +1,21 @@
|
||||
import { SVG_ICONS } from '@videojs/icons';
|
||||
|
||||
import { MediaChromeIcon } from './media-chrome-icon';
|
||||
|
||||
export function getTemplateHTML() {
|
||||
return /* html */ `
|
||||
${MediaChromeIcon.getTemplateHTML()}
|
||||
<style>
|
||||
:host {
|
||||
display: var(--media-fullscreen-exit-icon-display, inline-flex);
|
||||
}
|
||||
</style>
|
||||
${SVG_ICONS.fullscreenExitAlt}
|
||||
`;
|
||||
}
|
||||
|
||||
export class MediaFullscreenExitAltIcon extends MediaChromeIcon {
|
||||
static getTemplateHTML: () => string = getTemplateHTML;
|
||||
}
|
||||
|
||||
customElements.define('media-fullscreen-exit-alt-icon', MediaFullscreenExitAltIcon);
|
||||
Reference in New Issue
Block a user