From 91bcc42a9303212a336931d8876edc6eca488fc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9=20=D0=93=D0=BE?= =?UTF-8?q?=D0=BB=D0=BE=D0=B2=D0=BA=D0=B8=D0=BD?= Date: Thu, 14 Mar 2024 14:44:23 +0600 Subject: [PATCH] delete style.scss --- src/module.ts | 14 +++---- src/runtime/plugins/vuetify/index.ts | 2 - src/runtime/plugins/vuetify/styles.scss | 55 ------------------------- 3 files changed, 5 insertions(+), 66 deletions(-) delete mode 100644 src/runtime/plugins/vuetify/styles.scss diff --git a/src/module.ts b/src/module.ts index b63fbb7..f64a104 100644 --- a/src/module.ts +++ b/src/module.ts @@ -34,23 +34,19 @@ export default defineNuxtModule({ }, setup(options, nuxt) { const resolver = createResolver(import.meta.url); - const runtimeDir = resolver.resolve("./runtime"); + // const runtimeDir = resolver.resolve("./runtime"); // @ts-ignore nuxt.options.runtimeConfig.public.nuxt3UIKitTheme = options.theme; - const isDevelopment = - runtimeDir.endsWith("src/runtime") || runtimeDir.endsWith("src\\runtime"); - - const extension = isDevelopment ? "scss" : "css"; + // const isDevelopment = + // runtimeDir.endsWith("src/runtime") || runtimeDir.endsWith("src\\runtime"); + // + // const extension = isDevelopment ? "scss" : "css"; // Do not add the extension since the `.ts` will be transpiled to `.mjs` after `npm run prepack` addPlugin(resolver.resolve("./runtime/plugin")); - nuxt.options.css.push( - resolver.resolve(`./runtime/plugins/vuetify/styles.${extension}`) - ); - // Components if (options.components.includes("pagesTestVuetify")) { diff --git a/src/runtime/plugins/vuetify/index.ts b/src/runtime/plugins/vuetify/index.ts index 93e982c..17cf829 100644 --- a/src/runtime/plugins/vuetify/index.ts +++ b/src/runtime/plugins/vuetify/index.ts @@ -1,7 +1,5 @@ import type {ThemeDefinition} from "vuetify"; import {createVuetify} from 'vuetify'; -import 'vuetify/styles'; // pre-build css styles -// import '../style/vuetify.scss' /* Add all components and directives, for dev & prototyping only. */ import * as components from 'vuetify/components'; diff --git a/src/runtime/plugins/vuetify/styles.scss b/src/runtime/plugins/vuetify/styles.scss deleted file mode 100644 index cbb2876..0000000 --- a/src/runtime/plugins/vuetify/styles.scss +++ /dev/null @@ -1,55 +0,0 @@ -.text-36 { - font-size: 2.25rem !important; -} - -@media (min-width: 600px) { - .text-sm-32 { - font-size: 2.25rem !important; - } -} - -.text-32 { - font-size: 2rem !important; -} - -@media (min-width: 600px) { - .text-sm-32 { - font-size: 2rem !important; - } -} - -.text-18{ - font-size: 1.125rem !important; -} - -@media (min-width: 600px) { - .text-sm-18 { - font-size: 1.125rem !important; - } -} - -.text-17 { - font-size: 1.0625rem !important; -} - -.text-15 { - font-size: 0.9375rem !important; -} - -@media (min-width: 600px) { - .text-sm-15 { - font-size: .9375rem !important; - } -} - -.text-13 { - font-size: .8125rem !important; -} - -.font-weight-semi-bold { - font-weight: 600 !important; -} - -.bg-none { - background: none !important; -}