This commit is contained in:
@@ -11,13 +11,17 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
const isDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches;
|
import { onMounted } from 'vue';
|
||||||
|
onMounted(() => {
|
||||||
|
const isDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches;
|
||||||
|
|
||||||
|
if (isDarkMode) {
|
||||||
|
document.documentElement.setAttribute("data-theme", "dark");
|
||||||
|
} else {
|
||||||
|
document.documentElement.setAttribute("data-theme", "light");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
if (isDarkMode) {
|
|
||||||
document.documentElement.setAttribute("data-theme", "dark");
|
|
||||||
} else {
|
|
||||||
document.documentElement.setAttribute("data-theme", "light");
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|||||||
@@ -23,3 +23,14 @@ body {
|
|||||||
image-rendering: crisp-edges;
|
image-rendering: crisp-edges;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ul {
|
||||||
|
list-style: none; /* Remove default bullets */
|
||||||
|
}
|
||||||
|
ul > li {padding: 10px 25px} /* Stretching li elements a little so it looks prettier */
|
||||||
|
li::before {
|
||||||
|
content: "";
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
background-color: #d050ff;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user