mirror of https://github.com/vuejs/core.git
chore(playground): dark mode [ci skip]
This commit is contained in:
parent
66cea4b325
commit
79f3929cd2
|
@ -65,8 +65,6 @@ const log = (arg: any) => {
|
|||
}
|
||||
|
||||
html {
|
||||
color-scheme: dark;
|
||||
background-color: #000;
|
||||
padding: 10px;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { render, unmountComponent } from 'vue/vapor'
|
||||
import './style.css'
|
||||
|
||||
const modules = import.meta.glob<any>('./*.(vue|js)')
|
||||
const mod = (modules['.' + location.pathname] || modules['./App.vue'])()
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
@media (prefers-color-scheme: dark) {
|
||||
html {
|
||||
color-scheme: dark;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue