From 094d6ad89a8caedf0c9dcb807b925f35e1d1fa5a Mon Sep 17 00:00:00 2001 From: TZGyn Date: Sat, 4 Feb 2023 20:38:07 +0800 Subject: [PATCH] remove @apply and made icon alias --- app.config.ts | 10 ++++ assets/css/tailwind.css | 31 ----------- components/app/App.vue | 6 ++ components/card/Note.vue | 14 +---- components/card/Panel.vue | 37 +++--------- components/element/TextArea.vue | 29 ++++++++++ components/header/Header.vue | 17 ++---- pages/index.vue | 4 +- pages/login/index.vue | 25 +++------ pages/notes/[id].vue | 99 +++++++++++++++++++++------------ pages/notes/index.vue | 23 ++++---- pages/profile/index.vue | 20 ++++--- 12 files changed, 151 insertions(+), 164 deletions(-) create mode 100644 app.config.ts create mode 100644 components/app/App.vue create mode 100644 components/element/TextArea.vue diff --git a/app.config.ts b/app.config.ts new file mode 100644 index 0000000..57df767 --- /dev/null +++ b/app.config.ts @@ -0,0 +1,10 @@ +export default defineAppConfig({ + nuxtIcon: { + size: '24px', // default size applied + class: 'icon', // default class applied + aliases: { + nuxt: 'logos:nuxt-icon', + loading: 'svg-spinners:90-ring-with-bg', + }, + }, +}); diff --git a/assets/css/tailwind.css b/assets/css/tailwind.css index d1c3976..a90f074 100644 --- a/assets/css/tailwind.css +++ b/assets/css/tailwind.css @@ -2,34 +2,3 @@ @tailwind components; @tailwind utilities; -html { - @apply bg-primary text-white; -} - -#__nuxt { - @apply h-screen w-screen; -} - -.app { - @apply flex w-full flex-col items-center px-12; -} -.content { - @apply mx-12 flex h-full w-full max-w-3xl flex-row justify-center gap-5; -} - - -.sidebar { - @apply sticky top-3 h-fit w-64 rounded-lg px-10 py-5 text-white; -} - -.main { - @apply h-screen w-2/5; -} - -.card { - @apply bg-secondary; -} - -textarea { - @apply bg-secondary outline-none border-none focus:outline-none resize-none; -} diff --git a/components/app/App.vue b/components/app/App.vue new file mode 100644 index 0000000..c3a1477 --- /dev/null +++ b/components/app/App.vue @@ -0,0 +1,6 @@ + diff --git a/components/card/Note.vue b/components/card/Note.vue index 327cddd..17f9804 100644 --- a/components/card/Note.vue +++ b/components/card/Note.vue @@ -1,8 +1,8 @@