From 2de03ad67e124248d8b97169c0c91485611d4709 Mon Sep 17 00:00:00 2001 From: jiwangyihao Date: Thu, 29 May 2025 01:19:14 +0800 Subject: [PATCH] fix: refactor CSS variable usage and update ESLint configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: xudeyu444 Co-authored-by: 奕 Co-authored-by: Sylvanysc --- assets/css/main.css | 3 ++- eslint.config.mjs | 9 +++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/assets/css/main.css b/assets/css/main.css index 33a9198..ee62956 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -8,5 +8,6 @@ } :root { - background-color: var(--p-secondary-50) !important; + --s-background: var(--p-secondary-50); + background-color: var(--s-background) !important; } diff --git a/eslint.config.mjs b/eslint.config.mjs index 934c3a1..9095d94 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,6 +1,11 @@ // @ts-check -import withNuxt from './.nuxt/eslint.config.mjs' +import withNuxt from "./.nuxt/eslint.config.mjs"; export default withNuxt( // Your custom configs here -) + { + rules: { + "vue/html-self-closing": "off", // Disable self-closing tags rule + }, + } +);