💄 style: 完整统一 2026 主题轻拟态界面
- 统一发送、取件和管理页面的轻马卡龙色彩与柔和阴影 - 为上传区、过期控件和类型切换补充轻拟态交互反馈 - 统一卡片悬浮、生命周期和展开收起动画规范 - 保留响应式、暗色模式和减少动态效果支持
This commit is contained in:
1 parent
61bb64657e
commit
185077d9fc
5 files changed
+55
-21
No files matched your search
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="space-y-3">
|
||||
<label for="send-expiration-value" class="block text-sm font-medium" :class="isDarkMode ? 'text-gray-300' : 'text-gray-700'">
|
||||
<div class="space-y-3 fcb-expiration">
|
||||
<label for="send-expiration-value" class="block text-sm font-semibold" :class="isDarkMode ? 'text-gray-300' : 'text-gray-700'">
|
||||
{{ t('send.expiration.label') }}
|
||||
</label>
|
||||
|
||||
@@ -84,8 +84,8 @@ const isDarkMode = inject('isDarkMode')
|
||||
const numericValue = computed(() => Math.max(1, Number.parseInt(props.expirationValue) || 1))
|
||||
const controlClass = computed(() =>
|
||||
isDarkMode
|
||||
? 'border-gray-600 bg-gray-800/70 text-gray-100 hover:border-gray-500'
|
||||
: 'border-gray-300 bg-white text-gray-900 hover:border-gray-400'
|
||||
? 'border-gray-600 bg-gray-800/70 text-gray-100 hover:border-[#9fc9bd]'
|
||||
: '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) => {
|
||||
|
||||
@@ -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="[
|
||||
isDarkMode
|
||||
? 'bg-gray-800/60 border-gray-600 hover:border-indigo-400'
|
||||
: 'bg-white/80 border-gray-300 hover:border-indigo-500',
|
||||
? 'bg-gray-800/60 border-gray-600 hover:border-[#9fc9bd]'
|
||||
: '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
|
||||
? isDarkMode
|
||||
? 'border-indigo-400 bg-indigo-500/10 shadow-lg shadow-indigo-900/30'
|
||||
|
||||
@@ -4,12 +4,12 @@
|
||||
type="button"
|
||||
@click="selectType('file')"
|
||||
:class="[
|
||||
'min-h-11 px-4 py-2 rounded-lg transition-colors duration-300',
|
||||
selectedType === 'file'
|
||||
? 'bg-indigo-600 text-white'
|
||||
: isDarkMode
|
||||
? 'bg-gray-700 text-gray-300 hover:bg-gray-600'
|
||||
: 'bg-gray-200 text-gray-700 hover:bg-gray-300'
|
||||
'min-h-11 px-4 py-2 rounded-xl transition-colors duration-300',
|
||||
selectedType === 'file'
|
||||
? 'bg-[#7198a6] text-white shadow-[inset_2px_2px_5px_rgba(255,255,255,.22),0_8px_16px_rgba(113,152,166,.24)]'
|
||||
: isDarkMode
|
||||
? 'bg-gray-700 text-gray-300 hover:bg-gray-600'
|
||||
: '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') }}
|
||||
@@ -18,12 +18,12 @@
|
||||
type="button"
|
||||
@click="selectType('text')"
|
||||
:class="[
|
||||
'min-h-11 px-4 py-2 rounded-lg transition-colors duration-300',
|
||||
selectedType === 'text'
|
||||
? 'bg-indigo-600 text-white'
|
||||
: isDarkMode
|
||||
? 'bg-gray-700 text-gray-300 hover:bg-gray-600'
|
||||
: 'bg-gray-200 text-gray-700 hover:bg-gray-300'
|
||||
'min-h-11 px-4 py-2 rounded-xl transition-colors duration-300',
|
||||
selectedType === 'text'
|
||||
? 'bg-[#7198a6] text-white shadow-[inset_2px_2px_5px_rgba(255,255,255,.22),0_8px_16px_rgba(113,152,166,.24)]'
|
||||
: isDarkMode
|
||||
? 'bg-gray-700 text-gray-300 hover:bg-gray-600'
|
||||
: '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') }}
|
||||
@@ -53,4 +53,4 @@ const isDarkMode = inject('isDarkMode')
|
||||
const selectType = (type: SendType) => {
|
||||
emit('update:selectedType', type)
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
Reference in new issue
Block a user