feat: add dark mode stats

This commit is contained in:
2022-08-09 16:25:23 -04:00
parent df033cc0d2
commit 3c7d81fd36
6 changed files with 32 additions and 17 deletions

View File

@@ -8,12 +8,14 @@ import { unref as _unref } from "vue";
const {
href,
color = "pink",
darkcolor = "#c88994",
title,
clearstyles = false,
forceheight,
} = defineProps<{
href?: string;
color?: Color;
darkcolor?: Color;
title?: string;
clearstyles?: boolean;
forceheight?: ViewportLength<"rem">;
@@ -46,6 +48,10 @@ const height = forceheight ?? "auto";
border-radius: 0.5rem;
}
html.dark .container {
border: 0.5rem solid v-bind(darkcolor);
}
.main-content {
padding: v-bind(padding);
padding-top: 0;
@@ -56,6 +62,10 @@ const height = forceheight ?? "auto";
background: v-bind(color);
}
html.dark .title {
background: v-bind(darkcolor);
}
@media screen and (max-width: 600px) {
.container {
width: 90vw;