-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0959ed4
commit 864fb17
Showing
11 changed files
with
23 additions
and
23 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 was deleted.
Oops, something went wrong.
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 @@ | ||
export * as ThemeGerwig from "@mux/mux-player/themes/gerwig"; |
This file was deleted.
Oops, something went wrong.
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,3 @@ | ||
// @ts-ignore | ||
import '@mux/mux-player/themes/gerwig'; | ||
export default 'gerwig'; |
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
2 changes: 1 addition & 1 deletion
2
...ages/mux-player/src/themes/2023/2023.html → .../mux-player/src/themes/gerwig/gerwig.html
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<template id="media-theme-2023"> | ||
<template id="media-theme-gerwig"> | ||
<style> | ||
@keyframes pre-play-hide { | ||
0% { | ||
|
10 changes: 5 additions & 5 deletions
10
packages/mux-player/src/themes/2023/index.ts → ...ges/mux-player/src/themes/gerwig/index.ts
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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
// @ts-ignore | ||
import theme from './2023.html'; | ||
import theme from './gerwig.html'; | ||
import { document, globalThis } from '../../polyfills'; | ||
import { MediaThemeElement } from 'media-chrome/dist/media-theme-element.js'; | ||
|
||
const template = document.createElement('template'); | ||
if ('innerHTML' in template) template.innerHTML = theme; | ||
|
||
class MediaTheme2023 extends MediaThemeElement { | ||
class MediaThemeGerwig extends MediaThemeElement { | ||
static template = template.content?.children?.[0]; | ||
} | ||
|
||
if (!globalThis.customElements.get('media-theme-2023')) { | ||
globalThis.customElements.define('media-theme-2023', MediaTheme2023); | ||
if (!globalThis.customElements.get('media-theme-gerwig')) { | ||
globalThis.customElements.define('media-theme-gerwig', MediaThemeGerwig); | ||
} | ||
|
||
export default MediaTheme2023; | ||
export default MediaThemeGerwig; |