diff --git a/assets/common.css b/assets/common.css
index 1135304..60e69b0 100644
--- a/assets/common.css
+++ b/assets/common.css
@@ -71,4 +71,33 @@
{
margin-left: 1.2em;
margin-right: 1.2em;
+}
+
+html.dark-mode .dark-hidden {
+ display: none;
+}
+
+html.dark-mode .dark-block {
+ display: block;
+}
+
+html.light-mode .light-hidden {
+ display: none;
+}
+
+html.light-mode .light-block {
+ display: block;
+}
+
+.flex {
+ display: flex;
+}
+.align-baseline {
+ align-items: baseline;
+}
+.align-center {
+ align-items: center;
+}
+.align-stretch {
+ align-items: stretch;
}
\ No newline at end of file
diff --git a/assets/global.css b/assets/global.css
index a257e4f..25da060 100644
--- a/assets/global.css
+++ b/assets/global.css
@@ -4079,15 +4079,6 @@ body {
color: var(--text-muted);
}
-.not-found-image {
- display: block;
- background-image: url(/public/images/10a4c7dfa70cedab4d48.png);
- width: 103px;
- height: 132px;
- background-size: 103px 132px;
- margin-bottom: 12px;
-}
-
/* Outline view */
.outline-view-outer {
width: 100%;
@@ -4293,6 +4284,9 @@ body {
font-weight: var(--site-name-weight);
flex: 1 0 0;
text-decoration: none;
+ position: relative;
+ display: flex;
+ align-items: center;
}
.site-nav-bar-text:hover {
@@ -4984,7 +4978,20 @@ body {
justify-content: end;
}
-.site-nav-bar-text.mod-active {
- padding-bottom: .5em;
- border-bottom: 3px solid var(--nav-item-border-color-active);
+.site-nav-bar-text.mod-active:after {
+ content: "";
+ background-color: var(--nav-item-border-color-active);
+ height: 3px;
+ position: absolute;
+ left: 0;
+ right: 0;
+ bottom: calc(-0.5em + 2px);
+}
+
+.site-login {
+ cursor: pointer;
+}
+
+.site-login:hover {
+ opacity: 0.7;
}
\ No newline at end of file
diff --git a/bun.lockb b/bun.lockb
index b02a11d..be1eb03 100644
Binary files a/bun.lockb and b/bun.lockb differ
diff --git a/components/ThemeIcon.vue b/components/ThemeIcon.vue
new file mode 100644
index 0000000..62019e5
--- /dev/null
+++ b/components/ThemeIcon.vue
@@ -0,0 +1,14 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/components/canvas/CanvasRenderer.client.vue b/components/canvas/CanvasRenderer.client.vue
index a2db9a8..275f600 100644
--- a/components/canvas/CanvasRenderer.client.vue
+++ b/components/canvas/CanvasRenderer.client.vue
@@ -213,7 +213,7 @@ function getCenter(n: { x: number, y: number }, i: { x: number, y: number }, r:
-
diff --git a/components/content/prose/ProseA.vue b/components/content/prose/ProseA.vue
index 560f815..ddc5731 100644
--- a/components/content/prose/ProseA.vue
+++ b/components/content/prose/ProseA.vue
@@ -2,7 +2,7 @@
import type { MarkdownRoot, ParsedContent, TocLink } from '@nuxt/content/dist/runtime/types';
import type { Canvas, CanvasContent } from '~/types/canvas';
-import { stringifyParsedURL, type ParsedURL } from 'ufo';
+import { stringifyParsedURL } from 'ufo';
interface ParsedContentExtended extends Omit
{
body: MarkdownRoot | CanvasContent | null;
@@ -33,7 +33,6 @@ function flatten(val: TocLink[]): TocLink[] {
return val.flatMap ? val?.flatMap((e: TocLink) => e.children ? [e, ...flatten(e.children)] : e) : val;
}
function handleResult(result: ParsedContentExtended, tag: boolean = false) {
- console.log();
loading.value = false;
let body: MarkdownRoot | CanvasContent | null = JSON.parse(JSON.stringify(result.body));
@@ -119,18 +118,23 @@ function hidePreview(e: Event) {
- showPreview(e, true)" @mouseleave="hidePreview" v-bind="$attrs" :href="stringifyParsedURL({ host: '/explorer', pathname: (content?._path ?? href) + (anchor ? '/' + anchor.substring(1) : ''), hash: '', search: '' })" :target="target">
+ showPreview(e, true)" @mouseleave="hidePreview" v-bind="$attrs"
+ :href="stringifyParsedURL({ host: '/explorer', pathname: (content?._path ?? href) + (isTag && anchor ? '/' + anchor.substring(1) : ''), hash: !isTag ? anchor : '', search: '' })"
+ :target="target">
- showPreview(e, false)" @mouseleave="hidePreview">
+
showPreview(e, false)"
+ @mouseleave="hidePreview">
-
+
-
+
{{ content?.title }}
-
+
@@ -142,17 +146,21 @@ function hidePreview(e: Event) {
Impossible de prévisualiser
-
Cliquez sur le lien pour accéder au contenu
+
Cliquez sur le lien pour accéder au contenu
+
-
+
+
+
\ No newline at end of file
diff --git a/components/explorer/NavigationLink.vue b/components/explorer/NavigationLink.vue
index fb4e14f..93c50d6 100644
--- a/components/explorer/NavigationLink.vue
+++ b/components/explorer/NavigationLink.vue
@@ -1,11 +1,6 @@