Files
thebet365/apps/player/src/components/StatusWatermark.vue
Mars d2c0b575b7 feat(player): 统一移动端主题样式并优化多页面视觉一致性
将玩家端组件与核心页面全面切换为统一主题变量,优化卡片、按钮、弹窗、列表和盘口相关模块的视觉表现,并补充多语言文案以匹配新的交互与布局风格。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-16 15:55:28 +08:00

69 lines
1.1 KiB
Vue

<script setup lang="ts">
withDefaults(
defineProps<{
label: string;
variant?: 'pending' | 'won' | 'lost' | 'push' | 'closed' | 'settled';
size?: 'sm' | 'md' | 'lg';
}>(),
{ variant: 'pending', size: 'md' },
);
</script>
<template>
<span class="status-watermark" :class="[variant, size]">{{ label }}</span>
</template>
<style scoped>
.status-watermark {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) rotate(-35deg);
font-weight: 900;
letter-spacing: 0.06em;
white-space: nowrap;
pointer-events: none;
opacity: 0.15;
max-width: 92%;
overflow: hidden;
text-overflow: ellipsis;
z-index: 100;
}
.status-watermark.sm {
font-size: 22px;
}
.status-watermark.md {
font-size: 28px;
}
.status-watermark.lg {
font-size: 34px;
}
.status-watermark.won {
color: rgba(16, 185, 129, 0.12);
}
.status-watermark.lost {
color: rgba(239, 68, 68, 0.12);
}
.status-watermark.push {
color: var(--text-muted);
}
.status-watermark.pending {
color: rgba(255, 179, 0, 0.12);
}
.status-watermark.closed {
color: var(--primary-light);
}
.status-watermark.settled {
color: var(--primary);
}
</style>