From c2a520e1d1dd9504784627fd04ad4c4aa4972b8b Mon Sep 17 00:00:00 2001 From: Neko Ayaka Date: Tue, 19 Aug 2025 15:26:17 +0800 Subject: [PATCH] style: improved docs --- docs/content/en/docs/overview/index.md | 4 +-- docs/uno.config.ts | 37 +++++++++----------------- 2 files changed, 15 insertions(+), 26 deletions(-) diff --git a/docs/content/en/docs/overview/index.md b/docs/content/en/docs/overview/index.md index 1f8cdb629..2239d9cc1 100644 --- a/docs/content/en/docs/overview/index.md +++ b/docs/content/en/docs/overview/index.md @@ -3,6 +3,6 @@ title: Introduction description: Get to know the UI of Project AIRI --- -For guides that help you understand how to contribute to this project, please refer to [Contributing](../references/contributing/guide/) page. +For guides that help you understand how to contribute to this project, please refer to [Contributing](../overview/contributing/) page. -For references Contributing help you design and improve the UI of Project AIRI, please refer to [Design Guidelines](../references/design-guidelines/) page. +For references Contributing help you design and improve the UI of Project AIRI, please refer to [Design Guidelines](../overview/contributing/design-guidelines/resources) page. diff --git a/docs/uno.config.ts b/docs/uno.config.ts index 2a950c5f5..03c48e592 100644 --- a/docs/uno.config.ts +++ b/docs/uno.config.ts @@ -7,13 +7,26 @@ export default defineConfig({ presetTypography({ cssExtend: { 'a': { + 'color': '#7f8993', 'text-decoration': 'underline', 'text-decoration-style': 'dotted', 'text-decoration-color': '#ced5e6', + 'transition': 'color 0.2s ease-in-out', + }, + 'a:hover': { + '--primary': '207 62% 59%', + 'color': 'hsl(var(--primary))', }, '.dark a': { + 'color': '#9ca0a4', 'text-decoration-color': '#4b5056', }, + 'code::before': { + content: 'normal', + }, + 'code::after': { + content: 'normal', + }, }, }), presetWind3(), @@ -37,30 +50,6 @@ export default defineConfig({ }, }, }), - presetTypography({ - cssExtend: { - 'a': { - 'text-decoration': 'none', - 'font-weight': '600', - 'border-bottom': '1px solid hsl(var(--primary))', - }, - 'a:hover': { - 'border-bottom-width': '2px', - }, - 'code': { - 'border': '1px solid hsl(var(--border))', - 'border-radius': '0.375rem', - 'padding': '0.25rem', - 'line-height': '1rem', - }, - 'code::before': { - content: 'normal', - }, - 'code::after': { - content: 'normal', - }, - }, - }), presetIcons(), ], content: {