support dark mode
This commit is contained in:
parent
3dcc7b8204
commit
f275d9ec5f
1 changed files with 25 additions and 0 deletions
25
src/App.vue
25
src/App.vue
|
|
@ -46,4 +46,29 @@ export default {
|
||||||
footer {
|
footer {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
background-color: whitesmoke;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
a, a:link, a:visited, a:focus, a:hover, a:active {
|
||||||
|
color: steelblue;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:focus, a:hover, a:active {
|
||||||
|
box-shadow: inset 0 0 100px 100px rgba(255, 255, 255, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
* {
|
||||||
|
background-color: darkslategray;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
a, a:link, a:visited, a:focus, a:hover, a:active {
|
||||||
|
color: lightsteelblue;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue