Skip to content

Commit 5b1f82d

Browse files
fix: maybe dark mode will work this time
1 parent 36759bc commit 5b1f82d

4 files changed

Lines changed: 14 additions & 14 deletions

File tree

app/components/navbar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<header class="block flex px-4 py-2">
2+
<header class="block flex px-4 py-2 prose-neutral dark:prose-invert">
33
<nuxt-link to="/">
44
<img
55
src="https://github.com/HigherOrderLogic.png"

app/layouts/default.vue

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
<template>
2-
<div class="font-normal font-[Inter_Variable] prose-neutral dark:prose-invert">
2+
<div class="font-normal font-[Inter_Variable]">
33
<div>
44
<navbar />
5-
<div class="mx-a lt-md:px-4 md:prose" :class="[$style.linkUnderline, $style.noHeaderUnderline]">
5+
<div
6+
class="mx-a prose prose-neutral md:max-w-65ch lt-md:px-4 dark:prose-invert"
7+
:class="[$style.linkUnderline, $style.noHeaderUnderline]"
8+
>
69
<slot />
7-
<div class="h-8" />
10+
<div class="mb-8" />
811
<cd />
912
</div>
1013
</div>
@@ -14,7 +17,7 @@
1417
<style lang="scss" module>
1518
.linkUnderline {
1619
a {
17-
--at-apply: 'underline-dotted underline-offset-3';
20+
--at-apply: 'underline hover:underline-dashed underline-offset-2';
1821
}
1922
}
2023

app/pages/blogs/[...slugs].vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ if (blog.value) {
4040
<template>
4141
<div>
4242
<template v-if="blog">
43-
<div class="pb-4">
44-
<h1>{{ blog.title }}</h1>
45-
<p class="op-70 divide-x *:pr-2 not-first:*:pl-2">
43+
<div class="mb-8">
44+
<h1 class="mb-0">
45+
{{ blog.title }}
46+
</h1>
47+
<p class="mt-2 op-70 divide-x *:pr-2 not-first:*:pl-2">
4648
<span>{{ useDateFormat(blog.date, 'ddd, DD MMMM YYYY') }}</span>
4749
<span>{{ getWordCount(blog.body.value) }} words</span>
4850
</p>

uno.config.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@ export default defineConfig({
1111
presets: [
1212
presetIcons(),
1313
presetTypography(),
14-
presetWind3({
15-
dark: {
16-
dark: '.dark-mode',
17-
light: '.light-mode',
18-
},
19-
}),
14+
presetWind3(),
2015
],
2116
transformers: [
2217
transformerDirectives(),

0 commit comments

Comments
 (0)