添加css主题变量

This commit is contained in:
zhw2590582 committed 2019-05-10 22:08:00 +08:00
1 parent 4c28b38825
commit 6f34ea0da0
6 files changed
+9 -6

No files matched your search

+1 -1
View File
@@ -55,7 +55,7 @@
border-radius: 2px;
}
&.current button {
background: #00a1d6;
background-color: #00a1d6;
}
}
}
+2 -1
View File
@@ -2,6 +2,7 @@ import { errorHandle } from './utils';
export default class Template {
constructor(art) {
this.art = art;
if (art.option.container instanceof Element) {
this.$container = art.option.container;
} else {
@@ -22,7 +23,7 @@ export default class Template {
initDesktop() {
this.$container.innerHTML = `
<div class="artplayer-video-player">
<div class="artplayer-video-player" style="--theme: ${this.art.option.theme}">
<video class="artplayer-video"></video>
<div class="artplayer-subtitle"></div>
<div class="artplayer-danmuku"></div>