🎨 完善暗色主题:修复右键菜单、分享页面等
- 修复右键菜单白色背景问题(改为暗色玻璃效果) - 修复分享成功链接不可见问题(添加绿色高亮) - 修复媒体预览器白色背景 - 完全重写share.html为暗色主题(与主应用风格统一) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1276,12 +1276,12 @@
|
||||
</div>
|
||||
<div v-if="shareResult" class="alert alert-success" style="margin-top: 15px;">
|
||||
<strong>分享链接:</strong><br>
|
||||
<a :href="shareResult.share_url" target="_blank">{{ shareResult.share_url }}</a>
|
||||
<div v-if="shareResult.expires_at" style="margin-top: 10px; padding-top: 10px; border-top: 1px solid #c3e6cb;">
|
||||
<a :href="shareResult.share_url" target="_blank" style="color: #22c55e; word-break: break-all;">{{ shareResult.share_url }}</a>
|
||||
<div v-if="shareResult.expires_at" style="margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(34, 197, 94, 0.3);">
|
||||
<strong>到期时间:</strong>
|
||||
<span :style="{color: isExpiringSoon(shareResult.expires_at) ? '#ffc107' : '#28a745'}"><i class="fas fa-clock"></i> {{ formatExpireTime(shareResult.expires_at) }}</span>
|
||||
<span :style="{color: isExpiringSoon(shareResult.expires_at) ? '#f59e0b' : '#22c55e'}"><i class="fas fa-clock"></i> {{ formatExpireTime(shareResult.expires_at) }}</span>
|
||||
</div>
|
||||
<div v-else style="margin-top: 10px; padding-top: 10px; border-top: 1px solid #c3e6cb;">
|
||||
<div v-else style="margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(34, 197, 94, 0.3);">
|
||||
<strong>有效期:</strong>
|
||||
<span style="color: #22c55e;"><i class="fas fa-infinity"></i> 永久有效</span>
|
||||
</div>
|
||||
@@ -1321,12 +1321,12 @@
|
||||
</div>
|
||||
<div v-if="shareResult" class="alert alert-success" style="margin-top: 15px;">
|
||||
<strong>分享链接:</strong><br>
|
||||
<a :href="shareResult.share_url" target="_blank">{{ shareResult.share_url }}</a>
|
||||
<div v-if="shareResult.expires_at" style="margin-top: 10px; padding-top: 10px; border-top: 1px solid #c3e6cb;">
|
||||
<a :href="shareResult.share_url" target="_blank" style="color: #22c55e; word-break: break-all;">{{ shareResult.share_url }}</a>
|
||||
<div v-if="shareResult.expires_at" style="margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(34, 197, 94, 0.3);">
|
||||
<strong>到期时间:</strong>
|
||||
<span :style="{color: isExpiringSoon(shareResult.expires_at) ? '#ffc107' : '#28a745'}"><i class="fas fa-clock"></i> {{ formatExpireTime(shareResult.expires_at) }}</span>
|
||||
<span :style="{color: isExpiringSoon(shareResult.expires_at) ? '#f59e0b' : '#22c55e'}"><i class="fas fa-clock"></i> {{ formatExpireTime(shareResult.expires_at) }}</span>
|
||||
</div>
|
||||
<div v-else style="margin-top: 10px; padding-top: 10px; border-top: 1px solid #c3e6cb;">
|
||||
<div v-else style="margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(34, 197, 94, 0.3);">
|
||||
<strong>有效期:</strong>
|
||||
<span style="color: #22c55e;"><i class="fas fa-infinity"></i> 永久有效</span>
|
||||
</div>
|
||||
@@ -2783,15 +2783,17 @@
|
||||
/* 右键菜单样式 */
|
||||
.context-menu {
|
||||
position: fixed;
|
||||
background: white;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 4px 20px rgba(0,0,0,0.15);
|
||||
background: var(--bg-secondary);
|
||||
backdrop-filter: blur(20px);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 8px 32px rgba(0,0,0,0.4);
|
||||
min-width: 160px;
|
||||
z-index: 10000;
|
||||
overflow: hidden;
|
||||
animation: contextMenuFadeIn 0.15s ease-out;
|
||||
}
|
||||
|
||||
|
||||
@keyframes contextMenuFadeIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
@@ -2802,7 +2804,7 @@
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.context-menu-item {
|
||||
padding: 12px 16px;
|
||||
cursor: pointer;
|
||||
@@ -2813,37 +2815,44 @@
|
||||
color: var(--text-primary);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
|
||||
.context-menu-item:hover {
|
||||
background: rgba(255,255,255,0.03);
|
||||
background: rgba(102, 126, 234, 0.15);
|
||||
color: var(--accent-1);
|
||||
}
|
||||
|
||||
|
||||
.context-menu-item i {
|
||||
width: 16px;
|
||||
text-align: center;
|
||||
color: var(--accent-1);
|
||||
}
|
||||
|
||||
|
||||
.context-menu-item-danger {
|
||||
color: #ef4444;
|
||||
}
|
||||
|
||||
.context-menu-item-danger:hover {
|
||||
background: rgba(239, 68, 68, 0.1);
|
||||
|
||||
.context-menu-item-danger i {
|
||||
color: #ef4444;
|
||||
}
|
||||
|
||||
|
||||
.context-menu-item-danger:hover {
|
||||
background: rgba(239, 68, 68, 0.15);
|
||||
color: #ef4444;
|
||||
}
|
||||
|
||||
.context-menu-divider {
|
||||
height: 1px;
|
||||
background: rgba(255,255,255,0.1);
|
||||
background: var(--glass-border);
|
||||
margin: 4px 0;
|
||||
}
|
||||
|
||||
|
||||
/* 移动端优化 */
|
||||
@media (max-width: 768px) {
|
||||
.context-menu {
|
||||
min-width: 180px;
|
||||
box-shadow: 0 8px 32px rgba(0,0,0,0.25);
|
||||
box-shadow: 0 8px 32px rgba(0,0,0,0.5);
|
||||
}
|
||||
|
||||
|
||||
.context-menu-item {
|
||||
padding: 14px 18px;
|
||||
font-size: 15px;
|
||||
@@ -2852,14 +2861,15 @@
|
||||
|
||||
/* 媒体预览器样式 */
|
||||
.media-viewer-content {
|
||||
background: white;
|
||||
border-radius: 12px;
|
||||
background: var(--bg-secondary);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: 16px;
|
||||
max-width: 90vw;
|
||||
max-height: 90vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 10px 40px rgba(0,0,0,0.3);
|
||||
box-shadow: 0 20px 60px rgba(0,0,0,0.5);
|
||||
}
|
||||
|
||||
.media-viewer-header {
|
||||
@@ -2867,7 +2877,7 @@
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 15px 20px;
|
||||
background: #667eea;
|
||||
background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
|
||||
color: white;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user