support dark mode

This commit is contained in:
小喵 2022-11-22 17:58:38 +08:00
parent 3dcc7b8204
commit f275d9ec5f
Signed by: mt
GPG key ID: 2BCF198BD3341FB3

View file

@ -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>