💄 style: 重构 2026 主题轻拟态视觉与丝滑动效
- 统一轻马卡龙配色、柔和阴影和卡片悬浮反馈 - 为生命周期和筛选面板增加真实高度连续展开收起动画 - 统一页面切换、列表、通知和发送内容切换动效 - 支持减少动态效果并保持键盘焦点和响应式布局
This commit is contained in:
1 parent
c76d4d9f64
commit
dec682becc
13 files changed
+128
-74
No files matched your search
@@ -78,11 +78,11 @@ const alertIcons = {
|
||||
<style scoped>
|
||||
.alert-fade-enter-active,
|
||||
.alert-fade-leave-active {
|
||||
transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
|
||||
transition: opacity 280ms cubic-bezier(0.22, 1, 0.36, 1), transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
|
||||
}
|
||||
.alert-fade-enter-from,
|
||||
.alert-fade-leave-to {
|
||||
opacity: 0;
|
||||
transform: translateX(-50px) scale(0.95);
|
||||
transform: translateY(-6px);
|
||||
}
|
||||
</style>
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div
|
||||
class="data-table-2026 theme-2026-card theme-2026-card-hover overflow-hidden rounded-[30px] shadow-md transition-all duration-300 hover:-translate-y-0.5 hover:shadow-lg"
|
||||
class="data-table-2026 theme-2026-card theme-2026-card-hover overflow-hidden rounded-[30px] shadow-md transition-all duration-300 hover:shadow-lg"
|
||||
>
|
||||
<div
|
||||
class="border-b px-6 py-4"
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
|
||||
<button
|
||||
@click="$emit('close')"
|
||||
class="mt-6 w-full rounded-[30px] bg-gradient-to-r from-indigo-500 to-purple-600 px-5 py-3 font-medium text-white transition duration-200 transform hover:scale-[1.01] hover:from-indigo-600 hover:to-purple-700 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-opacity-50 sm:mt-8 sm:px-6"
|
||||
class="mt-6 w-full rounded-[30px] bg-gradient-to-r from-indigo-500 to-purple-600 px-5 py-3 font-medium text-white transition duration-200 transform hover:from-indigo-600 hover:to-purple-700 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-opacity-50 sm:mt-8 sm:px-6"
|
||||
>
|
||||
{{ t('common.close') }}
|
||||
</button>
|
||||
|
||||
@@ -47,6 +47,6 @@ const actionClass = computed(() => isDarkMode ? 'bg-gray-700 text-gray-200 hover
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.list-enter-active, .list-leave-active, .list-move { transition: all 0.24s ease; }
|
||||
.list-enter-from, .list-leave-to { opacity: 0; transform: translateX(20px); }
|
||||
.list-enter-active, .list-leave-active, .list-move { transition: opacity 240ms ease, transform 240ms cubic-bezier(0.22, 1, 0.36, 1); }
|
||||
.list-enter-from, .list-leave-to { opacity: 0; transform: translateY(-4px); }
|
||||
</style>
|
||||
@@ -45,7 +45,7 @@
|
||||
</div>
|
||||
<button
|
||||
type="submit"
|
||||
class="group relative w-full overflow-hidden rounded-lg bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500 px-4 py-3 font-bold text-white transition duration-300 hover:from-indigo-600 hover:via-purple-600 hover:to-pink-600 hover:shadow-lg focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-opacity-50 disabled:cursor-not-allowed disabled:opacity-50 motion-safe:hover:scale-[1.02] disabled:hover:scale-100"
|
||||
class="group relative w-full overflow-hidden rounded-lg bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500 px-4 py-3 font-bold text-white transition duration-300 hover:from-indigo-600 hover:via-purple-600 hover:to-pink-600 hover:shadow-lg focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-opacity-50 disabled:cursor-not-allowed disabled:opacity-50 motion-safe:disabled:hover:scale-100"
|
||||
:disabled="inputStatus.loading || code.trim().length !== 5"
|
||||
>
|
||||
<span class="flex items-center justify-center relative z-10">
|
||||
|
||||
@@ -51,6 +51,6 @@ const actionClass = computed(() => isDarkMode ? 'bg-gray-700 text-gray-200 hover
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.list-enter-active, .list-leave-active { transition: all 0.24s ease; }
|
||||
.list-enter-from, .list-leave-to { opacity: 0; transform: translateX(20px); }
|
||||
.list-enter-active, .list-leave-active { transition: opacity 240ms ease, transform 240ms cubic-bezier(0.22, 1, 0.36, 1); }
|
||||
.list-enter-from, .list-leave-to { opacity: 0; transform: translateY(-4px); }
|
||||
</style>
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div
|
||||
class="theme-2026-card theme-2026-card-hover group rounded-[24px] p-4 shadow-md transition-all duration-300 hover:-translate-y-0.5 hover:shadow-lg sm:rounded-[30px] sm:p-6"
|
||||
class="theme-2026-card theme-2026-card-hover group rounded-[24px] p-4 shadow-md transition-all duration-300 hover:shadow-lg sm:rounded-[30px] sm:p-6"
|
||||
:class="[
|
||||
isDarkMode
|
||||
? 'hover:bg-gray-800 hover:shadow-black/20'
|
||||
@@ -17,7 +17,7 @@
|
||||
</h3>
|
||||
</div>
|
||||
<div
|
||||
class="shrink-0 rounded-full p-2.5 transition-transform duration-300 group-hover:scale-105 sm:p-3"
|
||||
class="shrink-0 rounded-full p-2.5 transition-transform duration-300 group-sm:p-3"
|
||||
:class="iconBgClass"
|
||||
>
|
||||
<component :is="icon" class="h-5 w-5 sm:h-6 sm:w-6" :class="iconClass" aria-hidden="true" />
|
||||
|
||||
Reference in new issue
Block a user