style fix

This commit is contained in:
yhlhoh committed 2026-05-03 14:22:50 +08:00
1 parent 9e9ae96058
commit 6ed3e169e4
5 files changed
+21 -28

No files matched your search

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 MiB

+4 -5
View File
@@ -2,7 +2,7 @@
<html lang="zh-CN"> <html lang="zh-CN">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<title>OBS 下三分之一条 · 管理</title> <title>OBS Lower Third · 管理</title>
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- Ant Design & React via CDN --> <!-- Ant Design & React via CDN -->
<script src="/libs/react.production.min.js"></script> <script src="/libs/react.production.min.js"></script>
@@ -788,7 +788,6 @@
key: 'live', key: 'live',
label: ( label: (
<Space> <Space>
<span>🎬</span>
<span>激活控制</span> <span>激活控制</span>
{data.activeContentPresetId && <Badge dot color="green" />} {data.activeContentPresetId && <Badge dot color="green" />}
</Space> </Space>
@@ -806,7 +805,7 @@
}, },
{ {
key: 'appearance', key: 'appearance',
label: '�� 外观预设', label: '外观预设',
children: ( children: (
<AppearancePresetsTab <AppearancePresetsTab
presets={data.presets} presets={data.presets}
@@ -816,7 +815,7 @@
}, },
{ {
key: 'content', key: 'content',
label: '📝 内容预设', label: '内容预设',
children: ( children: (
<ContentPresetsTab <ContentPresetsTab
contentPresets={data.contentPresets} contentPresets={data.contentPresets}
@@ -843,7 +842,7 @@
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', height: '100%' }}> <div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', height: '100%' }}>
<div> <div>
<Title level={4} style={{ margin: 0, color: '#fff', display: 'inline' }}> <Title level={4} style={{ margin: 0, color: '#fff', display: 'inline' }}>
OBS 下三分之一条 OBS Lower Thirds Manager
</Title> </Title>
<Text style={{ color: '#888', marginLeft: 12, fontSize: 13 }}>管理面板</Text> <Text style={{ color: '#888', marginLeft: 12, fontSize: 13 }}>管理面板</Text>
</div> </div>
+5 -11
View File
@@ -33,27 +33,20 @@
padding: 16px 26px; padding: 16px 26px;
opacity: 0; opacity: 0;
transform: translateX(40px) translateY(6px) scale(0.96); transform: translateX(40px) translateY(6px) scale(0.96);
border: 1px solid rgba(255,255,255,0.25);
box-shadow: box-shadow:
0 20px 40px rgba(0, 0, 0, 0.8), 0 20px 40px rgba(0, 0, 0, 0.8),
0 0 60px rgba(255, 140, 0, 0.45); 0 0 60px rgba(255, 140, 0, 0.45);
backdrop-filter: blur(18px); backdrop-filter: blur(18px);
background:
radial-gradient(circle at 0% 0%, rgba(255,255,255,0.34), transparent 55%),
linear-gradient(135deg, rgba(8,8,12,0.92), rgba(20,14,40,0.96));
overflow: hidden; overflow: hidden;
mask-image: radial-gradient(circle at 0 0, rgba(0,0,0,0.0), rgba(0,0,0,1) 45%), mask-image: radial-gradient(circle at 0 0, rgba(0,0,0,0.0), rgba(0,0,0,1) 45%),
linear-gradient(to left, transparent 0%, black 20%, black 100%); }
-webkit-mask-image: radial-gradient(circle at 0 0, rgba(0,0,0,0.0), rgba(0,0,0,1) 45%),
linear-gradient(to left, transparent 0%, black 20%, black 100%);
}
.lt-container::before { .lt-container::before {
content: ''; content: '';
position: absolute; position: absolute;
inset: -40%; inset: -40%;
background: background-image: url('bg.png');
radial-gradient(circle at 120% 0%, rgba(255, 215, 128, 0.35), transparent 45%),
radial-gradient(circle at -10% 100%, rgba(255, 71, 87, 0.45), transparent 55%);
opacity: 0.85; opacity: 0.85;
mix-blend-mode: screen; mix-blend-mode: screen;
pointer-events: none; pointer-events: none;
@@ -119,6 +112,7 @@
<div class="lt-root"> <div class="lt-root">
<div id="lt" class="lt-container"> <div id="lt" class="lt-container">
<div class="lt-container-inner" id="ltInner"> <div class="lt-container-inner" id="ltInner">
<img src="/zi.png">
<div class="lt-title" id="ltTitle"></div> <div class="lt-title" id="ltTitle"></div>
<div class="lt-subtitle" id="ltSubtitle"></div> <div class="lt-subtitle" id="ltSubtitle"></div>
</div> </div>
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 316 KiB

+12 -12
View File
@@ -16,15 +16,15 @@ let settings = {
let presets = [ let presets = [
{ {
id: 'preset-gala-iframe-1', id: 'preset-gala-iframe-1',
name: '晚会右侧信息区 · 模板示例', name: '测试',
kind: 'iframe', kind: 'iframe',
align: 'right', align: 'right',
themeColor: '', themeColor: '',
extraCss: '', extraCss: '',
fieldDefs: [ fieldDefs: [
{ key: 'tag', label: '标签', defaultValue: 'LIVE · GALA' }, { key: 'tag', label: '标签', defaultValue: 'TEST 测试' },
{ key: 'mainTitle', label: '主标题', defaultValue: '2026 新春特别晚会' }, { key: 'mainTitle', label: '主标题', defaultValue: '测试内容' },
{ key: 'subtitle', label: '副标题', defaultValue: '示例:你可以在这里完全自定义 HTML / CSS / JS' } { key: 'subtitle', label: '副标题', defaultValue: '' }
], ],
html: `<!DOCTYPE html> html: `<!DOCTYPE html>
<html> <html>
@@ -85,22 +85,22 @@ let presets = [
let contentPresets = [ let contentPresets = [
{ {
id: 'content-preset-1', id: 'content-preset-1',
name: '春晚主持人介绍', name: '测试内容 1',
appearancePresetId: 'preset-gala-iframe-1', appearancePresetId: 'preset-gala-iframe-1',
fields: { fields: {
tag: 'LIVE · GALA', tag: 'TEST TAG',
mainTitle: '2026 新春特别晚会', mainTitle: '测试主标题 1',
subtitle: '主持人:某某某 · 某某某' subtitle: '测试副标题 1'
} }
}, },
{ {
id: 'content-preset-2', id: 'content-preset-2',
name: '节目单第一项', name: '测试内容 2',
appearancePresetId: 'preset-gala-iframe-1', appearancePresetId: 'preset-gala-iframe-1',
fields: { fields: {
tag: '节目单 01', tag: 'TEST TAG 2',
mainTitle: '《欢乐中国年》', mainTitle: '测试主标题 2',
subtitle: '表演:XX歌舞团' subtitle: '测试副标题 2'
} }
} }
]; ];