From e8de580842225401da580c13c423316e11029255 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Mon, 15 Aug 2022 15:07:34 +0200 Subject: [PATCH] refactor(gui-v2): project list page style fixes --- packages/nc-gui-v2/assets/style-v2.scss | 64 +++++---- .../components/general/SocialCard.vue | 124 ++++++++++-------- .../nc-gui-v2/components/general/Sponsors.vue | 6 +- .../smartsheet/sidebar/MenuBottom.vue | 6 +- .../smartsheet/sidebar/RenameableMenuItem.vue | 3 +- .../components/smartsheet/sidebar/index.vue | 4 +- .../composables/useUIPermission/index.ts | 23 ++-- .../pages/[projectType]/[projectId]/index.vue | 4 +- packages/nc-gui-v2/pages/index/index.vue | 27 ++-- 9 files changed, 143 insertions(+), 118 deletions(-) diff --git a/packages/nc-gui-v2/assets/style-v2.scss b/packages/nc-gui-v2/assets/style-v2.scss index f15d6b19d6..49355fa497 100644 --- a/packages/nc-gui-v2/assets/style-v2.scss +++ b/packages/nc-gui-v2/assets/style-v2.scss @@ -31,31 +31,6 @@ nav .v-list { @apply dark:bg-white } -.page-enter-active, -.page-leave-active, -.layout-enter-active, -.layout-leave-active { - @apply transition-opacity duration-300 ease-in-out; -} - -.page-enter, -.page-leave-active, -.layout-enter, -.layout-leave-active { - @apply opacity-0; -} - -.slide-enter-active, -.slide-leave-active { - @apply transition-all duration-200 ease-in-out; - transform: translate(100%, 0); -} - -.slide-enter, -.slide-leave-active { - transform: translate(-100%, 0); -} - a { @apply prose text-primary underline hover:opacity-75 dark:(text-secondary) hover:(opacity-75); } @@ -153,3 +128,42 @@ html { background-position: 0% 22% } } + +.page-enter-active, +.page-leave-active, +.layout-enter-active, +.layout-leave-active { + @apply transition-opacity duration-300 ease-in-out; +} + +.page-enter, +.page-leave-active, +.layout-enter, +.layout-leave-active { + @apply opacity-0; +} + +.slide-enter-active, +.slide-leave-active { + @apply transition-all duration-200 ease-in-out; + transform: translate(100%, 0); +} + +.slide-enter, +.slide-leave-active { + transform: translate(-100%, 0); +} + +.glow-enter-active, +.glow-leave-active { + @apply transition-all duration-300 ease-in-out; +} + +.glow-enter-active { + @apply ring ring-xl; +} + +.glow-enter, +.glow-leave-active { + @apply opacity-0; +} \ No newline at end of file diff --git a/packages/nc-gui-v2/components/general/SocialCard.vue b/packages/nc-gui-v2/components/general/SocialCard.vue index 4b2e51ad51..6ca98e0114 100644 --- a/packages/nc-gui-v2/components/general/SocialCard.vue +++ b/packages/nc-gui-v2/components/general/SocialCard.vue @@ -7,67 +7,75 @@ const isRtlLang = $computed(() => ['fa'].includes(currentLang.value)) + + diff --git a/packages/nc-gui-v2/components/general/Sponsors.vue b/packages/nc-gui-v2/components/general/Sponsors.vue index ccc2c7b5b8..8700a04108 100644 --- a/packages/nc-gui-v2/components/general/Sponsors.vue +++ b/packages/nc-gui-v2/components/general/Sponsors.vue @@ -7,9 +7,9 @@ const { nav = false } = defineProps()