From 51ea5c1c573ebee31c68faf881c0ccf002a70846 Mon Sep 17 00:00:00 2001 From: arily Date: Mon, 9 Oct 2023 14:45:18 +0800 Subject: [PATCH] remove default shadow --- src/assets/styles/daisyui.scss | 11 +-- ...locale-button.vue => nuxt-link-button.vue} | 0 src/components/app/dynamic-settings.vue | 2 +- src/components/app/score/heading.vue | 2 +- src/components/app/search-modal.client.vue | 4 +- .../content/editor/bubble-menu.client.vue | 4 +- .../content/editor/insert-image.client.vue | 10 +-- .../content/editor/variables/fallback.vue | 4 +- src/components/userpage/heading.vue | 11 +-- src/pages/admin/index.vue | 25 ++++-- src/pages/admin/users.vue | 90 ++++++++++++++++++- src/pages/article/[...id].vue | 2 +- src/pages/article/edit.vue | 14 +-- src/pages/auth/login.vue | 11 +-- src/pages/auth/register.vue | 15 ++-- src/pages/beatmapset/[id].vue | 14 +-- src/pages/index.vue | 18 ++-- src/pages/me/relations.vue | 6 +- src/pages/me/settings.vue | 30 +++---- src/pages/user/[handle].vue | 4 +- 20 files changed, 189 insertions(+), 88 deletions(-) rename src/components/T/{nuxt-link-locale-button.vue => nuxt-link-button.vue} (100%) diff --git a/src/assets/styles/daisyui.scss b/src/assets/styles/daisyui.scss index ee9bf5fb6..122dd77c4 100755 --- a/src/assets/styles/daisyui.scss +++ b/src/assets/styles/daisyui.scss @@ -4,24 +4,19 @@ html { @apply bg-transparent #{!important}; } -.btn { +.btn.btn-shadow { @apply transition-shadow transition-[background]; @apply shadow-lg; @apply dark:shadow-md; animation: none; @each $variant in $variants { - &.btn-#{$variant}:not(.no-shadow) { + &.btn-#{$variant} { @apply shadow-#{$variant}/40 hover:shadow-#{$variant}/60 dark:shadow-#{$variant}/20 hover:dark:shadow-#{$variant}/30; } } - - &.btn-ghost, - &.no-shadow { - @apply shadow-none; - } } -.input { +.input.input-shadow { @each $variant in $variants { &.input-#{$variant} { @apply shadow-#{$variant}/40 hover:shadow-#{$variant}/50 dark:shadow-#{$variant}/20 hover:dark:shadow-#{$variant}/30; diff --git a/src/components/T/nuxt-link-locale-button.vue b/src/components/T/nuxt-link-button.vue similarity index 100% rename from src/components/T/nuxt-link-locale-button.vue rename to src/components/T/nuxt-link-button.vue diff --git a/src/components/app/dynamic-settings.vue b/src/components/app/dynamic-settings.vue index d59e2ceb9..6904dd51a 100644 --- a/src/components/app/dynamic-settings.vue +++ b/src/components/app/dynamic-settings.vue @@ -45,7 +45,7 @@ fr-FR: v-model="model[key]" :placeholder="setting.label" :disabled="setting.disabled" - class="input input-sm grow blur-sm hover:blur-none" + class="input input-shadow input-sm grow blur-sm hover:blur-none" :class="{ 'input-bordered input-primary': props.unchanged[key] !== model[key], diff --git a/src/components/app/score/heading.vue b/src/components/app/score/heading.vue index d034796e9..b4d7ce7fb 100644 --- a/src/components/app/score/heading.vue +++ b/src/components/app/score/heading.vue @@ -138,6 +138,6 @@ fr-FR:
- {{ t('download-replay') }} + {{ t('download-replay') }}
diff --git a/src/components/app/search-modal.client.vue b/src/components/app/search-modal.client.vue index a66c25b33..1e4d4f20f 100644 --- a/src/components/app/search-modal.client.vue +++ b/src/components/app/search-modal.client.vue @@ -123,7 +123,7 @@ const { v-model="keyword" type="text" :placeholder="t('search')" - class="input grow border-label-0 focus:input-primary bg-transparent !outline-0" + class="input input-shadow grow border-label-0 focus:input-primary bg-transparent !outline-0" @input="onInput" @keyup.enter="raw(true)" > @@ -133,7 +133,7 @@ const { v-model="keyword" type="text" :placeholder="t('search')" - class="input grow border-label-0 focus:input-primary bg-transparent !outline-0" + class="input input-shadow grow border-label-0 focus:input-primary bg-transparent !outline-0" @input="onInput" @keyup.enter="raw(true)" > diff --git a/src/components/content/editor/bubble-menu.client.vue b/src/components/content/editor/bubble-menu.client.vue index 4fe9fe2c4..799585629 100644 --- a/src/components/content/editor/bubble-menu.client.vue +++ b/src/components/content/editor/bubble-menu.client.vue @@ -61,9 +61,9 @@ function setLink() {
URL - +
@@ -82,7 +82,7 @@ fr-FR: id="title" v-model="img.title" type="text" - class="input input-sm input-ghost" + class="input input-shadow input-sm input-ghost" >
@@ -92,18 +92,18 @@ fr-FR: