💄 style: 完整统一 2026 主题轻拟态界面
- 统一发送、取件和管理页面的轻马卡龙色彩与柔和阴影 - 为上传区、过期控件和类型切换补充轻拟态交互反馈 - 统一卡片悬浮、生命周期和展开收起动画规范 - 保留响应式、暗色模式和减少动态效果支持
This commit is contained in:
1 parent
61bb64657e
commit
185077d9fc
5 files changed
+48
-14
No files matched your search
@@ -435,3 +435,37 @@ button:not(:disabled), a { transition: color 220ms ease, background-color 220ms
|
|||||||
@media (prefers-reduced-motion: reduce) {
|
@media (prefers-reduced-motion: reduce) {
|
||||||
.theme-2026-card-hover:hover { transform: none; }
|
.theme-2026-card-hover:hover { transform: none; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 2026 Serenity neumorphic system */
|
||||||
|
:root {
|
||||||
|
--fcb-bg: #edf3f5;
|
||||||
|
--fcb-surface: #f7fafb;
|
||||||
|
--fcb-surface-muted: #e7eef1;
|
||||||
|
--fcb-text: #405466;
|
||||||
|
--fcb-text-muted: #8494a3;
|
||||||
|
--fcb-primary: #7198a6;
|
||||||
|
--fcb-primary-dark: #628b9b;
|
||||||
|
--fcb-mint: #a8d0c2;
|
||||||
|
--fcb-lilac: #c3bdd4;
|
||||||
|
--fcb-peach: #f0c9b8;
|
||||||
|
--fcb-shadow-out: 12px 14px 28px rgba(115, 139, 151, .18), -9px -9px 22px rgba(255,255,255,.88);
|
||||||
|
--fcb-shadow-in: inset 3px 3px 8px rgba(147, 165, 174, .2), inset -3px -3px 8px rgba(255,255,255,.9);
|
||||||
|
}
|
||||||
|
html, body, #app { background: var(--fcb-bg); color: var(--fcb-text); }
|
||||||
|
.app-container.light { background: radial-gradient(circle at 15% 10%, #f8fbfc 0, transparent 34%), linear-gradient(135deg,#e8f0f2,#f4f7f6 58%,#edf3f5); }
|
||||||
|
.theme-2026-card, .theme-2026-card-hover { background: var(--fcb-surface) !important; border-color: #dce6e9 !important; box-shadow: var(--fcb-shadow-out) !important; }
|
||||||
|
.theme-2026-card-hover { transition: transform 260ms cubic-bezier(.22,1,.36,1), box-shadow 260ms ease, border-color 220ms ease, background-color 220ms ease !important; }
|
||||||
|
.theme-2026-card-hover:hover { transform: translateY(-3px); box-shadow: 15px 18px 34px rgba(115,139,151,.23), -9px -9px 22px rgba(255,255,255,.9) !important; border-color: #b7d0d2 !important; }
|
||||||
|
input:not([type=file]), select, textarea { background: var(--fcb-surface) !important; color: var(--fcb-text) !important; border-color: #d5e1e5 !important; box-shadow: var(--fcb-shadow-in); }
|
||||||
|
button, a { border-radius: 14px; }
|
||||||
|
button:not(:disabled), a { cursor: pointer; }
|
||||||
|
button:not(:disabled):hover { filter: brightness(1.025); }
|
||||||
|
.bg-indigo-500, .bg-indigo-600, .bg-blue-500, .bg-blue-600, .bg-purple-600 { background-color: var(--fcb-primary) !important; }
|
||||||
|
.from-indigo-500, .from-indigo-600, .from-purple-500, .from-purple-600, .from-pink-500, .via-purple-500, .to-purple-600, .to-pink-500 { --tw-gradient-from: var(--fcb-primary) !important; --tw-gradient-to: var(--fcb-primary-dark) !important; }
|
||||||
|
.text-indigo-600, .text-indigo-500, .text-blue-600 { color: var(--fcb-primary-dark) !important; }
|
||||||
|
.border-indigo-500, .border-indigo-600 { border-color: #a8c8cc !important; }
|
||||||
|
.fcb-lifecycle-card:hover { transform: translateY(-2px) !important; box-shadow: 0 14px 26px rgba(115,139,151,.22) !important; }
|
||||||
|
.fcb-lifecycle-card { background: #f1f6f7 !important; }
|
||||||
|
.loading-overlay { background: rgba(225,235,238,.72) !important; backdrop-filter: blur(8px); }
|
||||||
|
.loading-spinner { border-color: #d5e5e7 !important; border-top-color: var(--fcb-primary) !important; }
|
||||||
|
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } .theme-2026-card-hover:hover, .fcb-lifecycle-card:hover { transform: none !important; } }
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="space-y-3">
|
<div class="space-y-3 fcb-expiration">
|
||||||
<label for="send-expiration-value" class="block text-sm font-medium" :class="isDarkMode ? 'text-gray-300' : 'text-gray-700'">
|
<label for="send-expiration-value" class="block text-sm font-semibold" :class="isDarkMode ? 'text-gray-300' : 'text-gray-700'">
|
||||||
{{ t('send.expiration.label') }}
|
{{ t('send.expiration.label') }}
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
@@ -84,8 +84,8 @@ const isDarkMode = inject('isDarkMode')
|
|||||||
const numericValue = computed(() => Math.max(1, Number.parseInt(props.expirationValue) || 1))
|
const numericValue = computed(() => Math.max(1, Number.parseInt(props.expirationValue) || 1))
|
||||||
const controlClass = computed(() =>
|
const controlClass = computed(() =>
|
||||||
isDarkMode
|
isDarkMode
|
||||||
? 'border-gray-600 bg-gray-800/70 text-gray-100 hover:border-gray-500'
|
? 'border-gray-600 bg-gray-800/70 text-gray-100 hover:border-[#9fc9bd]'
|
||||||
: 'border-gray-300 bg-white text-gray-900 hover:border-gray-400'
|
: 'border-[#d7e0e4] bg-[#eef3f5] text-[#405466] shadow-[inset_2px_2px_5px_rgba(167,183,191,.22),inset_-2px_-2px_5px_rgba(255,255,255,.9)] hover:border-[#9fc9bd]'
|
||||||
)
|
)
|
||||||
|
|
||||||
const updateMethod = (event: Event) => {
|
const updateMethod = (event: Event) => {
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
class="rounded-2xl p-8 flex flex-col items-center justify-center border-2 border-dashed transition-all duration-300 group cursor-pointer relative min-h-72 overflow-hidden"
|
class="rounded-2xl p-8 flex flex-col items-center justify-center border-2 border-dashed transition-all duration-300 group cursor-pointer relative min-h-72 overflow-hidden"
|
||||||
:class="[
|
:class="[
|
||||||
isDarkMode
|
isDarkMode
|
||||||
? 'bg-gray-800/60 border-gray-600 hover:border-indigo-400'
|
? 'bg-gray-800/60 border-gray-600 hover:border-[#9fc9bd]'
|
||||||
: 'bg-white/80 border-gray-300 hover:border-indigo-500',
|
: 'bg-[#eef3f5] border-[#cbd7dc] hover:border-[#9fc9bd] shadow-[inset_3px_3px_8px_rgba(167,183,191,.18),inset_-3px_-3px_8px_rgba(255,255,255,.85)]',
|
||||||
isDragActive
|
isDragActive
|
||||||
? isDarkMode
|
? isDarkMode
|
||||||
? 'border-indigo-400 bg-indigo-500/10 shadow-lg shadow-indigo-900/30'
|
? 'border-indigo-400 bg-indigo-500/10 shadow-lg shadow-indigo-900/30'
|
||||||
|
|||||||
@@ -4,12 +4,12 @@
|
|||||||
type="button"
|
type="button"
|
||||||
@click="selectType('file')"
|
@click="selectType('file')"
|
||||||
:class="[
|
:class="[
|
||||||
'min-h-11 px-4 py-2 rounded-lg transition-colors duration-300',
|
'min-h-11 px-4 py-2 rounded-xl transition-colors duration-300',
|
||||||
selectedType === 'file'
|
selectedType === 'file'
|
||||||
? 'bg-indigo-600 text-white'
|
? 'bg-[#7198a6] text-white shadow-[inset_2px_2px_5px_rgba(255,255,255,.22),0_8px_16px_rgba(113,152,166,.24)]'
|
||||||
: isDarkMode
|
: isDarkMode
|
||||||
? 'bg-gray-700 text-gray-300 hover:bg-gray-600'
|
? 'bg-gray-700 text-gray-300 hover:bg-gray-600'
|
||||||
: 'bg-gray-200 text-gray-700 hover:bg-gray-300'
|
: 'bg-[#e8eef0] text-[#405466] shadow-[inset_2px_2px_5px_rgba(167,183,191,.18),inset_-2px_-2px_5px_rgba(255,255,255,.9)] hover:bg-[#dfe9eb]'
|
||||||
]"
|
]"
|
||||||
>
|
>
|
||||||
{{ t('nav.sendFile') }}
|
{{ t('nav.sendFile') }}
|
||||||
@@ -18,12 +18,12 @@
|
|||||||
type="button"
|
type="button"
|
||||||
@click="selectType('text')"
|
@click="selectType('text')"
|
||||||
:class="[
|
:class="[
|
||||||
'min-h-11 px-4 py-2 rounded-lg transition-colors duration-300',
|
'min-h-11 px-4 py-2 rounded-xl transition-colors duration-300',
|
||||||
selectedType === 'text'
|
selectedType === 'text'
|
||||||
? 'bg-indigo-600 text-white'
|
? 'bg-[#7198a6] text-white shadow-[inset_2px_2px_5px_rgba(255,255,255,.22),0_8px_16px_rgba(113,152,166,.24)]'
|
||||||
: isDarkMode
|
: isDarkMode
|
||||||
? 'bg-gray-700 text-gray-300 hover:bg-gray-600'
|
? 'bg-gray-700 text-gray-300 hover:bg-gray-600'
|
||||||
: 'bg-gray-200 text-gray-700 hover:bg-gray-300'
|
: 'bg-[#e8eef0] text-[#405466] shadow-[inset_2px_2px_5px_rgba(167,183,191,.18),inset_-2px_-2px_5px_rgba(255,255,255,.9)] hover:bg-[#dfe9eb]'
|
||||||
]"
|
]"
|
||||||
>
|
>
|
||||||
{{ t('send.sendText') }}
|
{{ t('send.sendText') }}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
:class="[
|
:class="[
|
||||||
isDarkMode
|
isDarkMode
|
||||||
? 'bg-white bg-opacity-10 backdrop-filter backdrop-blur-xl border-gray-700'
|
? 'bg-white bg-opacity-10 backdrop-filter backdrop-blur-xl border-gray-700'
|
||||||
: 'bg-white border-gray-200'
|
: 'bg-[#f5f8f9] border-[#dce5e8] shadow-[12px_16px_34px_rgba(112,137,151,.16),-8px_-8px_20px_rgba(255,255,255,.8)]'
|
||||||
]"
|
]"
|
||||||
>
|
>
|
||||||
<div class="p-6 sm:p-8">
|
<div class="p-6 sm:p-8">
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
<button
|
<button
|
||||||
type="submit"
|
type="submit"
|
||||||
:disabled="isSubmitting"
|
:disabled="isSubmitting"
|
||||||
class="w-full bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500 text-white font-bold py-4 px-6 rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-opacity-50 transition-all duration-300 transform hover:shadow-lg relative overflow-hidden group disabled:opacity-50 disabled:cursor-not-allowed disabled:transform-none disabled:hover:scale-100"
|
class="w-full bg-[#7198a6] text-white font-bold shadow-[0_10px_20px_rgba(113,152,166,.24)] py-4 px-6 rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-opacity-50 transition-all duration-300 transform hover:shadow-lg relative overflow-hidden group disabled:opacity-50 disabled:cursor-not-allowed disabled:transform-none disabled:hover:scale-100"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="absolute top-0 left-0 w-full h-full bg-white opacity-0 group-hover:opacity-20 transition-opacity duration-300"
|
class="absolute top-0 left-0 w-full h-full bg-white opacity-0 group-hover:opacity-20 transition-opacity duration-300"
|
||||||
|
|||||||
Reference in new issue
Block a user