From ae00dcb349560eb112f0e7f26de49b9fcc626a99 Mon Sep 17 00:00:00 2001 From: ThrRip Date: Wed, 8 May 2024 20:29:11 +0800 Subject: [PATCH] Move and cleanup global style and HTML head fields --- assets/css/main.css | 10 ++++++---- packages/admin/nuxt.config.ts | 6 +----- packages/home/nuxt.config.ts | 5 +---- 3 files changed, 8 insertions(+), 13 deletions(-) diff --git a/assets/css/main.css b/assets/css/main.css index eeb5ac9..6a2525a 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -8,13 +8,15 @@ @tailwind base; @tailwind components; +@tailwind utilities; -:root { - user-select: none; +@layer base { + html { + @apply bg-white-alt; + @apply select-none; + } } -@tailwind utilities; - @layer utilities { .grid-areas-stack { grid-template-areas: "stack"; diff --git a/packages/admin/nuxt.config.ts b/packages/admin/nuxt.config.ts index 51bec01..580790a 100644 --- a/packages/admin/nuxt.config.ts +++ b/packages/admin/nuxt.config.ts @@ -10,15 +10,11 @@ export default defineNuxtConfig({ app: { baseURL: '/admin/', head: { + htmlAttrs: { lang: 'zh' }, charset: 'utf-8', viewport: 'width=device-width, initial-scale=1', - htmlAttrs: { - lang: 'zh', - class: 'bg-white-alt' - }, title: '管理面板 | 洺知-故犯', meta: [ - { name: 'description', content: '' }, { name: 'format-detection', content: 'telephone=no' }, { name: 'theme-color', content: '#89c1cf', media: '(prefers-color-scheme: light)' }, { name: 'theme-color', content: '#89c1cf', media: '(prefers-color-scheme: dark)' } diff --git a/packages/home/nuxt.config.ts b/packages/home/nuxt.config.ts index d5145f3..be637c7 100644 --- a/packages/home/nuxt.config.ts +++ b/packages/home/nuxt.config.ts @@ -9,12 +9,9 @@ export default defineNuxtConfig({ app: { head: { + htmlAttrs: { lang: 'zh' }, charset: 'utf-8', viewport: 'width=device-width, initial-scale=1', - htmlAttrs: { - lang: 'zh', - class: 'bg-white-alt' - }, title: '一口菠萝包片夹小洺', meta: [ { name: 'description', content: '' },