2025-08-02 05:48:51 +00:00
|
|
|
|
/* =============================================================================
|
2025-08-05 19:22:59 +00:00
|
|
|
|
Obsidian 动态主题背景插件样式
|
|
|
|
|
|
Dynamic Theme Background Plugin Styles
|
|
|
|
|
|
|
|
|
|
|
|
包含了插件中广泛使用的通用样式组件。所有样式都使用 dtb- 前缀以避免命名冲突。
|
|
|
|
|
|
|
2025-08-08 06:35:57 +00:00
|
|
|
|
主要组件分类:
|
|
|
|
|
|
┌─────────────────────────────────────────────────────────────────────────
|
|
|
|
|
|
│ 🧩 布局组件 (Layout Components)
|
|
|
|
|
|
│ • .dtb-item - 通用条目容器,带悬停、动画、装饰条
|
|
|
|
|
|
│ • .dtb-section-container - 分区容器,分隔设置区域
|
|
|
|
|
|
│ • .dtb-list-container - 通用列表容器
|
|
|
|
|
|
│ • .dtb-list-row - 列表行,支持输入与布局
|
|
|
|
|
|
│ • .dtb-flex-container-end - 按钮右对齐容器
|
|
|
|
|
|
│ • .dtb-flex-container-center - 按钮居中容器
|
|
|
|
|
|
│ • .dtb-flex-container-spaced - 按钮分散容器
|
|
|
|
|
|
│ • .dtb-flex-1 - 弹性布局工具类
|
|
|
|
|
|
│ • .dtb-large-button-container- 大按钮区(如添加背景、API等)
|
|
|
|
|
|
├─────────────────────────────────────────────────────────────────────────
|
|
|
|
|
|
│ 📝 表单控件 (Form Controls)
|
|
|
|
|
|
│ • .dtb-input - 输入框,统一样式与焦点效果
|
|
|
|
|
|
│ • .dtb-dropdown - 下拉选择框,带自定义箭头
|
|
|
|
|
|
│ • .dtb-checkbox - 复选框容器,统一间距与布局
|
|
|
|
|
|
│ • .dtb-field - 字段包装器,含标签与描述
|
|
|
|
|
|
│ • .dtb-multiselect - 多选容器,支持滚动
|
|
|
|
|
|
│ • .dtb-textarea - 文本域,模态框专用
|
|
|
|
|
|
├─────────────────────────────────────────────────────────────────────────
|
|
|
|
|
|
│ 🎨 视觉元素 (Visual Elements)
|
|
|
|
|
|
│ • .dtb-badge - 类型标签徽章,渐变背景
|
|
|
|
|
|
│ • .dtb-hint - 提示信息框,带强调条
|
|
|
|
|
|
│ • .dtb-bg-preview - 背景预览缩略图,支持图片/颜色/渐变
|
|
|
|
|
|
│ • .dtb-bg-content - 背景项内容容器
|
|
|
|
|
|
│ • .dtb-bg-name - 背景名称
|
|
|
|
|
|
│ • .dtb-link - 文档链接
|
|
|
|
|
|
│ • .dtb-links - 文档链接容器
|
|
|
|
|
|
├─────────────────────────────────────────────────────────────────────────
|
|
|
|
|
|
│ 🔘 交互与操作组件 (Interactive & Actions)
|
|
|
|
|
|
│ • .dtb-button-container - 操作按钮组容器
|
|
|
|
|
|
│ • .dtb-button - 操作按钮,统一悬停/点击效果
|
|
|
|
|
|
│ • .dtb-remove-button - 删除按钮,圆形红色警告样式
|
|
|
|
|
|
│ • .dtb-suggestion - 建议选项,自动完成支持
|
|
|
|
|
|
│ • .dtb-draggable - 可拖拽元素
|
|
|
|
|
|
│ • .dtb-drag-handle - 拖拽手柄
|
|
|
|
|
|
│ • .dtb-drag-over-top/bottom - 拖拽放置高亮区域
|
|
|
|
|
|
│ • .dtb-dragging - 拖拽状态样式
|
|
|
|
|
|
├─────────────────────────────────────────────────────────────────────────
|
|
|
|
|
|
│ ⚡ API管理与模态框 (API & Modal)
|
|
|
|
|
|
│ • .dtb-api-modal-container - API模态框主容器
|
|
|
|
|
|
│ • .dtb-section-header - Section标题容器
|
|
|
|
|
|
│ • .dtb-loading - 加载状态样式
|
|
|
|
|
|
│ • .dtb-api-status - API状态指示器
|
|
|
|
|
|
│ • .dtb-api-status-dot - API状态点(启用/禁用/错误/加载)
|
|
|
|
|
|
└─────────────────────────────────────────────────────────────────────────
|
|
|
|
|
|
|
|
|
|
|
|
设计原则与说明:
|
|
|
|
|
|
• 所有组件均支持 Obsidian 主题 CSS 变量,确保深色/浅色主题兼容
|
|
|
|
|
|
• 响应式设计:600px 以下自动切换为移动端布局,每部分的响应式设计放于节末尾
|
|
|
|
|
|
• 统一动画与过渡效果,采用 cubic-bezier 缓动
|
|
|
|
|
|
• 无障碍友好:焦点状态、键盘导航支持
|
|
|
|
|
|
• 拖拽、分阶段入场动画、悬停高亮等交互细节
|
|
|
|
|
|
|
|
|
|
|
|
注意事项:
|
|
|
|
|
|
⚠️ 请勿直接修改这些通用样式,如需定制请创建特定覆盖样式
|
|
|
|
|
|
⚠️ 新增组件请遵循 dtb- 前缀及现有设计模式
|
|
|
|
|
|
============================================================================= */
|
|
|
|
|
|
|
|
|
|
|
|
/* =============================================================================
|
|
|
|
|
|
🚀 核心样式
|
2025-08-02 05:48:51 +00:00
|
|
|
|
============================================================================= */
|
|
|
|
|
|
|
2025-08-07 10:44:52 +00:00
|
|
|
|
/* 工作区背景 */
|
|
|
|
|
|
.dtb-enabled :not(.modal):not(.modal *) {
|
|
|
|
|
|
--background-primary: var(--dtb-bg-color) !important;
|
|
|
|
|
|
--background-primary-alt: var(--dtb-bg-color) !important;
|
|
|
|
|
|
--background-secondary: var(--dtb-bg-color) !important;
|
|
|
|
|
|
--background-secondary-alt: var(--dtb-bg-color) !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
.dtb-enabled .workspace::before {
|
|
|
|
|
|
background-image: var(--dtb-bg-image);
|
|
|
|
|
|
background-size: var(--dtb-bg-size);
|
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
|
background-position: center;
|
|
|
|
|
|
filter: blur(var(--dtb-blur-depth)) brightness(var(--dtb-brightness)) saturate(var(--dtb-saturate));
|
|
|
|
|
|
content: "";
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 0;
|
|
|
|
|
|
left: 0;
|
|
|
|
|
|
right: 0;
|
|
|
|
|
|
bottom: 0;
|
|
|
|
|
|
z-index: -1;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-08-08 06:35:57 +00:00
|
|
|
|
/* =============================================================================
|
|
|
|
|
|
🧩 布局组件
|
|
|
|
|
|
============================================================================= */
|
|
|
|
|
|
|
|
|
|
|
|
/* 通用分区容器样式 - 紧凑简洁 */
|
|
|
|
|
|
.dtb-section-container {
|
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
|
padding: 16px;
|
|
|
|
|
|
border: 1px solid var(--background-modifier-border);
|
2025-08-02 01:23:32 +00:00
|
|
|
|
border-radius: 10px;
|
2025-08-08 06:35:57 +00:00
|
|
|
|
background-color: var(--background-secondary);
|
|
|
|
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
transition: box-shadow 0.3s ease;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* 容器悬停效果 */
|
|
|
|
|
|
.dtb-section-container:hover {
|
|
|
|
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* 设置项 - 紧凑现代卡片 */
|
|
|
|
|
|
.dtb-item,
|
|
|
|
|
|
.dtb-section-container .setting-item {
|
|
|
|
|
|
border: 1px solid var(--background-modifier-border);
|
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
|
padding: 0.75rem !important;
|
|
|
|
|
|
margin-bottom: 0.4rem;
|
|
|
|
|
|
background: var(--background-primary-alt);
|
|
|
|
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
2025-08-02 01:23:32 +00:00
|
|
|
|
position: relative;
|
|
|
|
|
|
overflow: hidden;
|
2025-08-08 06:35:57 +00:00
|
|
|
|
display: flex !important;
|
|
|
|
|
|
flex-direction: row !important;
|
|
|
|
|
|
align-items: flex-start !important;
|
|
|
|
|
|
gap: 1rem !important;
|
|
|
|
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
|
2025-08-02 01:23:32 +00:00
|
|
|
|
}
|
2025-08-08 06:35:57 +00:00
|
|
|
|
|
|
|
|
|
|
/* 左侧装饰条 */
|
|
|
|
|
|
.dtb-item::before,
|
|
|
|
|
|
.dtb-section-container .setting-item::before {
|
2025-08-02 05:48:51 +00:00
|
|
|
|
content: "";
|
2025-08-02 01:23:32 +00:00
|
|
|
|
position: absolute;
|
|
|
|
|
|
left: 0;
|
|
|
|
|
|
top: 0;
|
|
|
|
|
|
width: 3px;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
background: var(--interactive-accent);
|
|
|
|
|
|
opacity: 0;
|
2025-08-08 06:35:57 +00:00
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
|
border-radius: 0 2px 2px 0;
|
2025-08-02 01:23:32 +00:00
|
|
|
|
}
|
2025-08-08 06:35:57 +00:00
|
|
|
|
|
|
|
|
|
|
/* 简洁悬停效果 */
|
|
|
|
|
|
.dtb-item:hover,
|
|
|
|
|
|
.dtb-section-container .setting-item:hover {
|
|
|
|
|
|
border-color: var(--interactive-accent);
|
|
|
|
|
|
box-shadow:
|
|
|
|
|
|
0 3px 12px rgba(0, 0, 0, 0.08),
|
|
|
|
|
|
0 1px 4px rgba(var(--interactive-accent-rgb), 0.1);
|
2025-08-02 01:23:32 +00:00
|
|
|
|
transform: translateY(-1px);
|
|
|
|
|
|
}
|
2025-08-08 06:35:57 +00:00
|
|
|
|
|
|
|
|
|
|
/* 悬停时显示装饰条 */
|
|
|
|
|
|
.dtb-item:hover::before,
|
|
|
|
|
|
.dtb-section-container .setting-item:hover::before {
|
2025-08-02 01:23:32 +00:00
|
|
|
|
opacity: 1;
|
2025-08-01 12:41:54 +00:00
|
|
|
|
}
|
2025-08-08 06:35:57 +00:00
|
|
|
|
|
|
|
|
|
|
/* 活跃状态的脉冲效果 */
|
|
|
|
|
|
.dtb-item:active,
|
|
|
|
|
|
.dtb-section-container .setting-item:active {
|
|
|
|
|
|
transform: translateY(-1px) scale(0.99);
|
|
|
|
|
|
transition: all 0.1s ease;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* 设置项信息区域 - 紧凑优化 */
|
|
|
|
|
|
.dtb-section-container .setting-item .setting-item-info {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
min-width: 0;
|
|
|
|
|
|
word-wrap: break-word;
|
|
|
|
|
|
overflow-wrap: break-word;
|
|
|
|
|
|
hyphens: auto;
|
|
|
|
|
|
margin-right: 1rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* 紧凑标题样式 */
|
|
|
|
|
|
.dtb-section-container .setting-item .setting-item-name {
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
color: var(--text-normal);
|
|
|
|
|
|
font-size: 1rem;
|
|
|
|
|
|
margin-bottom: 0.25rem;
|
|
|
|
|
|
line-height: 1.3;
|
|
|
|
|
|
transition: color 0.3s ease;
|
2025-08-01 12:41:54 +00:00
|
|
|
|
}
|
2025-08-08 06:35:57 +00:00
|
|
|
|
|
|
|
|
|
|
/* 标题悬停效果 */
|
|
|
|
|
|
.dtb-item:hover .setting-item-name,
|
|
|
|
|
|
.dtb-section-container .setting-item:hover .setting-item-name {
|
|
|
|
|
|
color: var(--interactive-accent);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* 紧凑描述文字 */
|
|
|
|
|
|
.dtb-section-container .setting-item .setting-item-description {
|
|
|
|
|
|
word-wrap: break-word;
|
|
|
|
|
|
overflow-wrap: break-word;
|
|
|
|
|
|
word-break: break-word;
|
|
|
|
|
|
hyphens: auto;
|
|
|
|
|
|
line-height: 1.4;
|
|
|
|
|
|
color: var(--text-muted);
|
|
|
|
|
|
font-size: 0.88rem;
|
|
|
|
|
|
white-space: normal;
|
|
|
|
|
|
opacity: 0.85;
|
|
|
|
|
|
transition: opacity 0.3s ease;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.dtb-item:hover .setting-item-description,
|
|
|
|
|
|
.dtb-section-container .setting-item:hover .setting-item-description {
|
|
|
|
|
|
opacity: 1;
|
|
|
|
|
|
color: var(--text-normal);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* 紧凑控件区域 */
|
|
|
|
|
|
.dtb-section-container .setting-item .setting-item-control {
|
|
|
|
|
|
flex: 0 0 auto;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
|
gap: 0.5rem;
|
|
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* ===== 炫酷动画效果 ===== */
|
|
|
|
|
|
|
|
|
|
|
|
/* 流畅入场动画 */
|
|
|
|
|
|
@keyframes slideInUpSmooth {
|
|
|
|
|
|
0% {
|
2025-08-05 19:22:59 +00:00
|
|
|
|
opacity: 0;
|
|
|
|
|
|
transform: translateY(20px);
|
|
|
|
|
|
}
|
2025-08-08 06:35:57 +00:00
|
|
|
|
100% {
|
2025-08-05 19:22:59 +00:00
|
|
|
|
opacity: 1;
|
|
|
|
|
|
transform: translateY(0);
|
|
|
|
|
|
}
|
2025-08-02 05:48:51 +00:00
|
|
|
|
}
|
2025-08-08 06:35:57 +00:00
|
|
|
|
|
|
|
|
|
|
/* 条目入场动画 */
|
2025-08-05 19:22:59 +00:00
|
|
|
|
.dtb-item {
|
2025-08-08 06:35:57 +00:00
|
|
|
|
animation: slideInUpSmooth 0.3s ease-out;
|
2025-08-05 19:22:59 +00:00
|
|
|
|
animation-fill-mode: both;
|
2025-08-01 12:41:54 +00:00
|
|
|
|
}
|
2025-08-08 06:35:57 +00:00
|
|
|
|
|
|
|
|
|
|
/* 分阶段入场动画 */
|
2025-08-05 19:22:59 +00:00
|
|
|
|
.dtb-item:nth-child(1) {
|
|
|
|
|
|
animation-delay: 0.05s;
|
|
|
|
|
|
}
|
|
|
|
|
|
.dtb-item:nth-child(2) {
|
|
|
|
|
|
animation-delay: 0.1s;
|
|
|
|
|
|
}
|
|
|
|
|
|
.dtb-item:nth-child(3) {
|
|
|
|
|
|
animation-delay: 0.15s;
|
|
|
|
|
|
}
|
|
|
|
|
|
.dtb-item:nth-child(4) {
|
|
|
|
|
|
animation-delay: 0.2s;
|
|
|
|
|
|
}
|
|
|
|
|
|
.dtb-item:nth-child(5) {
|
|
|
|
|
|
animation-delay: 0.25s;
|
2025-08-01 12:41:54 +00:00
|
|
|
|
}
|
2025-08-08 06:35:57 +00:00
|
|
|
|
.dtb-item:nth-child(6) {
|
|
|
|
|
|
animation-delay: 0.3s;
|
2025-08-02 06:21:30 +00:00
|
|
|
|
}
|
2025-08-08 06:35:57 +00:00
|
|
|
|
.dtb-item:nth-child(7) {
|
|
|
|
|
|
animation-delay: 0.35s;
|
2025-08-05 19:22:59 +00:00
|
|
|
|
}
|
2025-08-08 06:35:57 +00:00
|
|
|
|
.dtb-item:nth-child(8) {
|
|
|
|
|
|
animation-delay: 0.4s;
|
2025-08-05 19:22:59 +00:00
|
|
|
|
}
|
2025-08-08 06:35:57 +00:00
|
|
|
|
|
|
|
|
|
|
/* ===== 响应式优化 ===== */
|
|
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
|
|
.dtb-section-container {
|
|
|
|
|
|
padding: 12px;
|
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.dtb-item,
|
|
|
|
|
|
.dtb-section-container .setting-item {
|
|
|
|
|
|
padding: 0.6rem !important;
|
|
|
|
|
|
gap: 0.8rem !important;
|
|
|
|
|
|
margin-bottom: 0.3rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.dtb-section-container .setting-item .setting-item-name {
|
|
|
|
|
|
font-size: 0.95rem;
|
|
|
|
|
|
margin-bottom: 0.2rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.dtb-section-container .setting-item .setting-item-description {
|
|
|
|
|
|
font-size: 0.85rem;
|
|
|
|
|
|
}
|
2025-08-02 06:21:30 +00:00
|
|
|
|
}
|
2025-08-08 06:35:57 +00:00
|
|
|
|
|
|
|
|
|
|
/* ===== 暗色模式优化 ===== */
|
|
|
|
|
|
.theme-dark .dtb-section-container {
|
|
|
|
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
|
2025-08-02 06:21:30 +00:00
|
|
|
|
}
|
2025-08-08 06:35:57 +00:00
|
|
|
|
|
|
|
|
|
|
.theme-dark .dtb-section-container:hover {
|
|
|
|
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
2025-08-02 01:23:32 +00:00
|
|
|
|
}
|
2025-08-06 17:08:41 +00:00
|
|
|
|
|
2025-08-08 06:35:57 +00:00
|
|
|
|
.theme-dark .dtb-item,
|
|
|
|
|
|
.theme-dark .dtb-section-container .setting-item {
|
|
|
|
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
2025-08-06 17:08:41 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-08-08 06:35:57 +00:00
|
|
|
|
.theme-dark .dtb-item:hover,
|
|
|
|
|
|
.theme-dark .dtb-section-container .setting-item:hover {
|
|
|
|
|
|
box-shadow:
|
|
|
|
|
|
0 3px 12px rgba(0, 0, 0, 0.2),
|
|
|
|
|
|
0 1px 4px rgba(var(--interactive-accent-rgb), 0.15);
|
2025-08-01 12:41:54 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-08-08 06:35:57 +00:00
|
|
|
|
/* 通用列表容器样式 */
|
|
|
|
|
|
.dtb-list-container {
|
|
|
|
|
|
margin-bottom: 12px;
|
2025-08-01 12:41:54 +00:00
|
|
|
|
}
|
2025-08-08 06:35:57 +00:00
|
|
|
|
.dtb-list-row {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 8px;
|
|
|
|
|
|
margin-bottom: 8px;
|
2025-08-02 01:23:32 +00:00
|
|
|
|
}
|
2025-08-08 06:35:57 +00:00
|
|
|
|
.dtb-list-row .dtb-input {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
margin-bottom: 0;
|
2025-08-01 12:41:54 +00:00
|
|
|
|
}
|
2025-08-08 06:35:57 +00:00
|
|
|
|
|
|
|
|
|
|
/* 通用按钮容器样式 */
|
|
|
|
|
|
.dtb-flex-container-end {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
|
gap: 8px;
|
|
|
|
|
|
margin-top: 15px;
|
2025-08-01 12:41:54 +00:00
|
|
|
|
}
|
2025-08-08 06:35:57 +00:00
|
|
|
|
.dtb-flex-container-center {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
gap: 8px;
|
|
|
|
|
|
margin-top: 15px;
|
2025-08-02 01:23:32 +00:00
|
|
|
|
}
|
2025-08-08 06:35:57 +00:00
|
|
|
|
.dtb-flex-container-spaced {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
gap: 12px;
|
|
|
|
|
|
margin-top: 20px;
|
2025-08-02 01:23:32 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-08-08 06:35:57 +00:00
|
|
|
|
/* 弹性布局工具类 */
|
|
|
|
|
|
.dtb-flex-1 {
|
|
|
|
|
|
flex: 1;
|
2025-08-02 05:48:51 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-08-08 06:35:57 +00:00
|
|
|
|
/* 响应式设计 (Responsive Design) */
|
|
|
|
|
|
@media (max-width: 600px) {
|
|
|
|
|
|
.dtb-item {
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
|
gap: 0.6rem;
|
|
|
|
|
|
padding: 0.8rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.dtb-flex-container,
|
|
|
|
|
|
.dtb-flex-container-center,
|
|
|
|
|
|
.dtb-flex-container-spaced {
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
gap: 12px;
|
|
|
|
|
|
}
|
2025-08-02 05:48:51 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-08-08 06:35:57 +00:00
|
|
|
|
/* =============================================================================
|
|
|
|
|
|
📝 表单控件
|
|
|
|
|
|
============================================================================= */
|
|
|
|
|
|
|
2025-08-05 19:22:59 +00:00
|
|
|
|
/* 通用输入框样式 */
|
|
|
|
|
|
.dtb-input {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
padding: 8px 12px;
|
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
|
min-height: 32px;
|
|
|
|
|
|
line-height: 1.4;
|
|
|
|
|
|
border: 1px solid var(--background-modifier-border);
|
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
|
background-color: var(--background-primary);
|
|
|
|
|
|
color: var(--text-normal);
|
|
|
|
|
|
font-size: var(--font-ui-medium);
|
|
|
|
|
|
transition: border-color 0.2s ease;
|
|
|
|
|
|
}
|
|
|
|
|
|
.dtb-input:focus {
|
|
|
|
|
|
outline: none;
|
|
|
|
|
|
border-color: var(--interactive-accent);
|
|
|
|
|
|
box-shadow: 0 0 0 2px var(--interactive-accent-hover);
|
|
|
|
|
|
}
|
2025-08-02 05:48:51 +00:00
|
|
|
|
|
2025-08-05 19:22:59 +00:00
|
|
|
|
/* 通用下拉选择框样式 */
|
|
|
|
|
|
.dtb-dropdown {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
padding: 10px 12px;
|
|
|
|
|
|
margin-bottom: 10px;
|
2025-08-06 19:07:35 +00:00
|
|
|
|
height: auto;
|
2025-08-05 19:22:59 +00:00
|
|
|
|
min-height: 36px;
|
2025-08-06 19:07:35 +00:00
|
|
|
|
line-height: normal;
|
2025-08-05 19:22:59 +00:00
|
|
|
|
border: 1px solid var(--background-modifier-border);
|
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
|
background-color: var(--background-primary);
|
|
|
|
|
|
color: var(--text-normal);
|
|
|
|
|
|
font-size: var(--font-ui-medium);
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
transition: border-color 0.2s ease;
|
|
|
|
|
|
appearance: none;
|
|
|
|
|
|
-webkit-appearance: none;
|
|
|
|
|
|
-moz-appearance: none;
|
|
|
|
|
|
/* 使用更好的下拉箭头图标 */
|
|
|
|
|
|
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
|
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
|
background-position: right 12px center;
|
|
|
|
|
|
background-size: 16px;
|
|
|
|
|
|
padding-right: 40px;
|
|
|
|
|
|
/* 确保文字垂直居中 */
|
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
|
}
|
|
|
|
|
|
.dtb-dropdown:focus {
|
|
|
|
|
|
outline: none;
|
|
|
|
|
|
border-color: var(--interactive-accent);
|
|
|
|
|
|
box-shadow: 0 0 0 2px var(--interactive-accent-hover);
|
|
|
|
|
|
}
|
|
|
|
|
|
.dtb-dropdown option {
|
|
|
|
|
|
background-color: var(--background-primary);
|
|
|
|
|
|
color: var(--text-normal);
|
|
|
|
|
|
padding: 4px 8px;
|
2025-08-02 01:23:32 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-08-05 19:22:59 +00:00
|
|
|
|
/* 通用字段容器样式 */
|
2025-08-08 06:35:57 +00:00
|
|
|
|
.dtb-field {
|
2025-08-05 19:22:59 +00:00
|
|
|
|
margin-bottom: 16px;
|
2025-08-02 01:23:32 +00:00
|
|
|
|
}
|
2025-08-08 06:35:57 +00:00
|
|
|
|
.dtb-field label {
|
2025-08-05 19:22:59 +00:00
|
|
|
|
display: block;
|
|
|
|
|
|
margin-bottom: 4px;
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
color: var(--text-normal);
|
2025-08-02 01:23:32 +00:00
|
|
|
|
}
|
2025-08-08 06:35:57 +00:00
|
|
|
|
.dtb-field-description {
|
|
|
|
|
|
font-style: italic;
|
|
|
|
|
|
color: var(--text-muted);
|
|
|
|
|
|
font-weight: normal;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* 通用多选容器样式 */
|
|
|
|
|
|
.dtb-multiselect {
|
|
|
|
|
|
border: 1px solid var(--background-modifier-border);
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
padding: 8px;
|
|
|
|
|
|
background-color: var(--background-primary);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* 通用复选框容器样式 */
|
|
|
|
|
|
.dtb-checkbox {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
margin-bottom: 4px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.dtb-checkbox:last-child {
|
|
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
.dtb-checkbox label {
|
|
|
|
|
|
margin: 0 0 0 8px;
|
|
|
|
|
|
font-weight: normal;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* 模态框文本域样式 */
|
|
|
|
|
|
.dtb-textarea {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
min-height: 120px;
|
|
|
|
|
|
padding: 12px;
|
|
|
|
|
|
border: 1px solid var(--background-modifier-border);
|
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
|
background-color: var(--background-primary);
|
|
|
|
|
|
color: var(--text-normal);
|
|
|
|
|
|
font-family: var(--font-monospace);
|
|
|
|
|
|
font-size: var(--font-ui-small);
|
|
|
|
|
|
resize: vertical;
|
|
|
|
|
|
transition: border-color 0.2s ease;
|
|
|
|
|
|
}
|
|
|
|
|
|
.dtb-textarea:focus {
|
|
|
|
|
|
outline: none;
|
|
|
|
|
|
border-color: var(--interactive-accent);
|
|
|
|
|
|
box-shadow: 0 0 0 2px var(--interactive-accent-hover);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* 响应式设计 (Responsive Design) */
|
|
|
|
|
|
@media (max-width: 600px) {
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* =============================================================================
|
|
|
|
|
|
🎨 视觉元素
|
|
|
|
|
|
============================================================================= */
|
|
|
|
|
|
|
|
|
|
|
|
/* 通用类型标签徽章*/
|
|
|
|
|
|
.dtb-badge {
|
|
|
|
|
|
background: linear-gradient(135deg, var(--interactive-accent), var(--interactive-accent-hover));
|
|
|
|
|
|
color: var(--text-on-accent);
|
|
|
|
|
|
padding: 0.4rem 0.8rem;
|
|
|
|
|
|
border-radius: 20px;
|
|
|
|
|
|
font-size: 0.75rem;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
|
letter-spacing: 0.5px;
|
|
|
|
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
|
|
|
|
border: none;
|
|
|
|
|
|
display: inline-block;
|
|
|
|
|
|
cursor: default;
|
|
|
|
|
|
user-select: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* 提示信息 */
|
|
|
|
|
|
.dtb-hint {
|
|
|
|
|
|
font-size: 0.9em;
|
|
|
|
|
|
color: var(--text-muted);
|
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
|
padding: 12px 16px;
|
|
|
|
|
|
background: linear-gradient(135deg, var(--background-secondary), var(--background-primary-alt));
|
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
|
border-left: 4px solid var(--interactive-accent);
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 8px;
|
|
|
|
|
|
transition: all 0.2s ease;
|
|
|
|
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
|
|
|
|
|
|
}
|
|
|
|
|
|
/* 拖拽提示悬停效果 */
|
|
|
|
|
|
.dtb-hint:hover {
|
|
|
|
|
|
transform: translateX(4px);
|
|
|
|
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* 链接容器样式 */
|
|
|
|
|
|
.dtb-links {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
gap: 8px;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
/* 链接样式 */
|
|
|
|
|
|
.dtb-link {
|
|
|
|
|
|
font-size: 0.85em;
|
|
|
|
|
|
color: var(--text-accent);
|
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
padding: 4px 8px;
|
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
|
border: 1px solid var(--background-modifier-border);
|
|
|
|
|
|
background: var(--background-secondary);
|
|
|
|
|
|
transition: all 0.2s ease;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
}
|
|
|
|
|
|
.dtb-link:hover {
|
|
|
|
|
|
background: var(--background-modifier-hover);
|
|
|
|
|
|
border-color: var(--text-accent);
|
|
|
|
|
|
transform: translateY(-1px);
|
|
|
|
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
|
|
|
|
}
|
|
|
|
|
|
.dtb-link:active {
|
|
|
|
|
|
transform: translateY(0);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* 响应式设计 (Responsive Design) */
|
|
|
|
|
|
@media (max-width: 600px) {
|
|
|
|
|
|
.dtb-hint {
|
|
|
|
|
|
font-size: 0.85em;
|
|
|
|
|
|
padding: 10px 12px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.dtb-bg-preview {
|
|
|
|
|
|
align-self: center;
|
|
|
|
|
|
width: 60px;
|
|
|
|
|
|
height: 60px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* =============================================================================
|
|
|
|
|
|
🔘 交互组件
|
|
|
|
|
|
============================================================================= */
|
|
|
|
|
|
|
|
|
|
|
|
/* 通用操作按钮容器,用于创建一组按钮 */
|
|
|
|
|
|
.dtb-button-container {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
gap: 0.6rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
/* 通用操作按钮 */
|
|
|
|
|
|
.dtb-button,
|
|
|
|
|
|
.dtb-button-container button {
|
|
|
|
|
|
padding: 0.5rem 1rem;
|
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
|
border: 1px solid var(--background-modifier-border);
|
|
|
|
|
|
background: var(--background-primary);
|
|
|
|
|
|
color: var(--text-normal);
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
font-size: 0.8rem;
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
}
|
|
|
|
|
|
/* 按钮 */
|
|
|
|
|
|
.dtb-button::before,
|
|
|
|
|
|
.dtb-button-container button::before {
|
|
|
|
|
|
content: "";
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 0;
|
|
|
|
|
|
left: -100%;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
|
|
|
|
|
|
transition: left 0.5s ease;
|
|
|
|
|
|
}
|
|
|
|
|
|
/* 按钮悬停效果 */
|
|
|
|
|
|
.dtb-button:hover,
|
|
|
|
|
|
.dtb-button-container button:hover {
|
|
|
|
|
|
background: var(--interactive-hover) !important;
|
|
|
|
|
|
border-color: var(--interactive-accent) !important;
|
|
|
|
|
|
transform: translateY(-2px);
|
|
|
|
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
|
|
|
|
}
|
|
|
|
|
|
.dtb-button:hover::before,
|
|
|
|
|
|
.dtb-button-container button:hover::before {
|
|
|
|
|
|
left: 100%;
|
|
|
|
|
|
}
|
|
|
|
|
|
/* 按钮点击效果 */
|
|
|
|
|
|
.dtb-button:active,
|
|
|
|
|
|
.dtb-button-container button:active {
|
|
|
|
|
|
transform: translateY(0);
|
|
|
|
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
2025-08-02 01:23:32 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-08-08 06:35:57 +00:00
|
|
|
|
/* 大按钮容器样式, 用于放置添加背景、API等的按钮 */
|
|
|
|
|
|
.dtb-large-button-container .setting-item-control {
|
2025-08-02 01:23:32 +00:00
|
|
|
|
display: flex;
|
2025-08-08 06:35:57 +00:00
|
|
|
|
gap: 1rem;
|
|
|
|
|
|
flex-wrap: wrap;
|
2025-08-02 01:23:32 +00:00
|
|
|
|
align-items: center;
|
|
|
|
|
|
}
|
2025-08-08 06:35:57 +00:00
|
|
|
|
.dtb-large-button,
|
|
|
|
|
|
.dtb-large-button-container button {
|
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
|
padding: 0.8rem 1.5rem;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
|
|
|
|
border: 2px solid transparent;
|
|
|
|
|
|
background: linear-gradient(135deg, var(--interactive-accent), var(--interactive-accent-hover));
|
|
|
|
|
|
color: var(--text-on-accent);
|
|
|
|
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
|
|
|
|
}
|
|
|
|
|
|
.dtb-large-button:hover,
|
|
|
|
|
|
.dtb-large-button-container button:hover {
|
|
|
|
|
|
transform: translateY(-3px);
|
|
|
|
|
|
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
|
|
|
|
|
|
border-color: var(--background-modifier-border);
|
2025-08-02 01:23:32 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-08-08 06:35:57 +00:00
|
|
|
|
/* 删除按钮,圆形红色警告样式 */
|
2025-08-05 19:22:59 +00:00
|
|
|
|
.dtb-remove-button {
|
|
|
|
|
|
background-color: var(--background-modifier-error);
|
|
|
|
|
|
color: var(--text-on-accent);
|
|
|
|
|
|
border: none;
|
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
width: 24px;
|
|
|
|
|
|
height: 24px;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
font-weight: bold;
|
2025-08-02 05:48:51 +00:00
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
2025-08-05 19:22:59 +00:00
|
|
|
|
justify-content: center;
|
|
|
|
|
|
transition: background-color 0.2s ease;
|
2025-08-02 05:48:51 +00:00
|
|
|
|
}
|
2025-08-05 19:22:59 +00:00
|
|
|
|
.dtb-remove-button:hover {
|
|
|
|
|
|
background-color: var(--background-modifier-error-hover);
|
2025-08-02 05:48:51 +00:00
|
|
|
|
}
|
2025-08-02 01:23:32 +00:00
|
|
|
|
|
2025-08-02 05:48:51 +00:00
|
|
|
|
/* 建议项样式 */
|
2025-08-08 06:35:57 +00:00
|
|
|
|
.dtb-suggestion {
|
2025-08-02 05:48:51 +00:00
|
|
|
|
padding: 8px 12px;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
transition: background-color 0.15s ease;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 8px;
|
|
|
|
|
|
}
|
2025-08-08 06:35:57 +00:00
|
|
|
|
.dtb-suggestion:hover {
|
2025-08-02 05:48:51 +00:00
|
|
|
|
background: var(--background-modifier-hover);
|
|
|
|
|
|
}
|
2025-08-08 06:35:57 +00:00
|
|
|
|
.dtb-suggestion.is-selected {
|
2025-08-02 05:48:51 +00:00
|
|
|
|
background: var(--interactive-accent);
|
|
|
|
|
|
color: var(--text-on-accent);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-08-05 19:22:59 +00:00
|
|
|
|
/* 可拖拽元素的基础样式 */
|
|
|
|
|
|
.dtb-draggable {
|
|
|
|
|
|
cursor: grab;
|
|
|
|
|
|
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
|
|
|
|
}
|
|
|
|
|
|
.dtb-draggable:hover {
|
|
|
|
|
|
transform: translateY(-1px);
|
|
|
|
|
|
}
|
|
|
|
|
|
/* 拖拽状态样式(通用) */
|
|
|
|
|
|
.dtb-dragging {
|
|
|
|
|
|
opacity: 0.5;
|
|
|
|
|
|
cursor: grabbing;
|
|
|
|
|
|
transform: rotate(2deg) scale(0.98);
|
|
|
|
|
|
z-index: 1000;
|
|
|
|
|
|
}
|
|
|
|
|
|
/* 拖拽手柄 */
|
|
|
|
|
|
.dtb-drag-handle {
|
|
|
|
|
|
color: var(--text-muted);
|
|
|
|
|
|
cursor: grab;
|
|
|
|
|
|
padding: 4px;
|
|
|
|
|
|
user-select: none;
|
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
line-height: 1;
|
|
|
|
|
|
transition: all 0.2s ease;
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
min-width: 24px;
|
|
|
|
|
|
height: 24px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.dtb-drag-handle:hover {
|
|
|
|
|
|
color: var(--text-normal);
|
|
|
|
|
|
background: var(--background-modifier-hover);
|
|
|
|
|
|
transform: scale(1.1);
|
|
|
|
|
|
}
|
|
|
|
|
|
/* 拖拽放置区域样式 - 顶部(通用) */
|
|
|
|
|
|
.dtb-drag-over-top {
|
2025-08-06 17:08:41 +00:00
|
|
|
|
border-top: 3px solid var(--interactive-accent) !important;
|
|
|
|
|
|
border-top-left-radius: 10px !important;
|
|
|
|
|
|
border-top-right-radius: 10px !important;
|
2025-08-05 19:22:59 +00:00
|
|
|
|
margin-top: 6px;
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
}
|
|
|
|
|
|
/* 拖拽放置区域顶部指示线(通用) */
|
|
|
|
|
|
.dtb-drag-over-top::before {
|
|
|
|
|
|
content: "";
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: -8px;
|
|
|
|
|
|
left: 0;
|
|
|
|
|
|
right: 0;
|
|
|
|
|
|
height: 2px;
|
|
|
|
|
|
background: var(--interactive-accent);
|
|
|
|
|
|
border-radius: 1px;
|
|
|
|
|
|
box-shadow: 0 0 8px var(--interactive-accent);
|
2025-08-06 17:08:41 +00:00
|
|
|
|
z-index: 1;
|
2025-08-05 19:22:59 +00:00
|
|
|
|
}
|
|
|
|
|
|
/* 拖拽放置区域样式 - 底部(通用) */
|
|
|
|
|
|
.dtb-drag-over-bottom {
|
2025-08-06 17:08:41 +00:00
|
|
|
|
border-bottom: 3px solid var(--interactive-accent) !important;
|
|
|
|
|
|
border-bottom-left-radius: 10px !important;
|
|
|
|
|
|
border-bottom-right-radius: 10px !important;
|
2025-08-05 19:22:59 +00:00
|
|
|
|
margin-bottom: 6px;
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
}
|
|
|
|
|
|
/* 拖拽放置区域底部指示线(通用) */
|
|
|
|
|
|
.dtb-drag-over-bottom::after {
|
|
|
|
|
|
content: "";
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
bottom: -8px;
|
|
|
|
|
|
left: 0;
|
|
|
|
|
|
right: 0;
|
|
|
|
|
|
height: 2px;
|
|
|
|
|
|
background: var(--interactive-accent);
|
|
|
|
|
|
border-radius: 1px;
|
|
|
|
|
|
box-shadow: 0 0 8px var(--interactive-accent);
|
2025-08-06 17:08:41 +00:00
|
|
|
|
z-index: 1;
|
2025-08-02 05:48:51 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-08-08 06:35:57 +00:00
|
|
|
|
/* 响应式设计 (Responsive Design) */
|
|
|
|
|
|
@media (max-width: 600px) {
|
|
|
|
|
|
.dtb-button-container {
|
|
|
|
|
|
margin-left: 0;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
}
|
|
|
|
|
|
.dtb-button-container button {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
min-width: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* 拖拽响应式样式 */
|
|
|
|
|
|
.dtb-drag-handle {
|
|
|
|
|
|
min-width: 32px;
|
|
|
|
|
|
height: 32px;
|
|
|
|
|
|
font-size: 1.2em;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* 添加背景容器响应式 */
|
|
|
|
|
|
.dtb-large-button-container .setting-item-control {
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
align-items: stretch;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.dtb-large-button-container button {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-08-02 05:48:51 +00:00
|
|
|
|
/* =============================================================================
|
2025-08-05 19:22:59 +00:00
|
|
|
|
背景项元素样式 (Background Item Elements)
|
2025-08-02 05:48:51 +00:00
|
|
|
|
============================================================================= */
|
|
|
|
|
|
|
2025-08-05 19:22:59 +00:00
|
|
|
|
/* 背景项内容容器 */
|
|
|
|
|
|
.dtb-bg-content {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 1.2rem;
|
|
|
|
|
|
flex: 1;
|
2025-08-02 01:23:32 +00:00
|
|
|
|
}
|
2025-08-05 19:22:59 +00:00
|
|
|
|
/* 背景名称 */
|
|
|
|
|
|
.dtb-bg-name {
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
font-size: 0.95rem;
|
|
|
|
|
|
letter-spacing: -0.01em;
|
|
|
|
|
|
color: var(--text-normal);
|
2025-08-02 01:23:32 +00:00
|
|
|
|
}
|
2025-08-05 19:22:59 +00:00
|
|
|
|
/* 背景预览图 */
|
|
|
|
|
|
.dtb-bg-preview {
|
|
|
|
|
|
width: 48px;
|
|
|
|
|
|
height: 48px;
|
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
|
border: 2px solid var(--background-modifier-border);
|
|
|
|
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
|
|
|
|
transition: all 0.2s ease;
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
/* 默认背景样式 */
|
|
|
|
|
|
background-color: var(--background-secondary);
|
|
|
|
|
|
background-size: cover;
|
|
|
|
|
|
background-position: center;
|
|
|
|
|
|
background-repeat: no-repeat;
|
2025-08-02 01:23:32 +00:00
|
|
|
|
}
|
2025-08-05 19:22:59 +00:00
|
|
|
|
/* 图片类型预览的特殊样式 */
|
|
|
|
|
|
.dtb-bg-preview.dtb-preview-image {
|
|
|
|
|
|
background-image: var(--dtb-preview-bg-image, none);
|
|
|
|
|
|
background-size: cover;
|
|
|
|
|
|
background-position: center;
|
|
|
|
|
|
background-repeat: no-repeat;
|
2025-08-02 01:23:32 +00:00
|
|
|
|
}
|
2025-08-05 19:22:59 +00:00
|
|
|
|
/* 颜色和渐变类型预览的特殊样式 */
|
|
|
|
|
|
.dtb-bg-preview.dtb-preview-color,
|
|
|
|
|
|
.dtb-bg-preview.dtb-preview-gradient {
|
|
|
|
|
|
background: var(--dtb-preview-bg, var(--background-secondary));
|
|
|
|
|
|
background-size: auto;
|
|
|
|
|
|
background-position: initial;
|
|
|
|
|
|
background-repeat: initial;
|
2025-08-02 01:23:32 +00:00
|
|
|
|
}
|
2025-08-05 19:22:59 +00:00
|
|
|
|
/* 预览图加载失败时的占位样式 */
|
|
|
|
|
|
.dtb-bg-preview::before {
|
|
|
|
|
|
content: "";
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
inset: 0;
|
|
|
|
|
|
background: var(--background-secondary);
|
|
|
|
|
|
opacity: 0;
|
|
|
|
|
|
transition: opacity 0.2s ease;
|
|
|
|
|
|
z-index: -1;
|
2025-08-02 01:23:32 +00:00
|
|
|
|
}
|
2025-08-05 19:22:59 +00:00
|
|
|
|
/* 当背景图片加载失败时显示占位符 */
|
|
|
|
|
|
.dtb-bg-preview.dtb-preview-image:not([style*="--dtb-preview-bg-image"])::before {
|
|
|
|
|
|
opacity: 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
/* 预览图内侧光晕效果 */
|
|
|
|
|
|
.dtb-bg-preview::after {
|
|
|
|
|
|
content: "";
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
inset: 0;
|
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
|
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
|
|
|
|
|
|
}
|
|
|
|
|
|
/* 预览图悬停效果 */
|
|
|
|
|
|
.dtb-bg-preview:hover {
|
|
|
|
|
|
transform: scale(1.05);
|
|
|
|
|
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-08-02 05:48:51 +00:00
|
|
|
|
/* =============================================================================
|
2025-08-05 19:22:59 +00:00
|
|
|
|
API管理样式 (API Management Styles)
|
2025-08-02 05:48:51 +00:00
|
|
|
|
============================================================================= */
|
2025-08-02 04:53:06 +00:00
|
|
|
|
|
2025-08-05 19:22:59 +00:00
|
|
|
|
/* API loading状态样式 */
|
|
|
|
|
|
.dtb-loading {
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
opacity: 0.6;
|
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
.dtb-loading::after {
|
|
|
|
|
|
content: "";
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 50%;
|
|
|
|
|
|
left: 50%;
|
|
|
|
|
|
width: 12px;
|
|
|
|
|
|
height: 12px;
|
|
|
|
|
|
margin: -6px 0 0 -6px;
|
|
|
|
|
|
border: 2px solid transparent;
|
|
|
|
|
|
border-top: 2px solid var(--interactive-accent);
|
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
animation: dtb-spin 1s linear infinite;
|
|
|
|
|
|
}
|
|
|
|
|
|
@keyframes dtb-spin {
|
|
|
|
|
|
0% {
|
|
|
|
|
|
transform: rotate(0deg);
|
2025-08-02 05:48:51 +00:00
|
|
|
|
}
|
2025-08-05 19:22:59 +00:00
|
|
|
|
100% {
|
|
|
|
|
|
transform: rotate(360deg);
|
2025-08-02 05:48:51 +00:00
|
|
|
|
}
|
2025-08-05 19:22:59 +00:00
|
|
|
|
}
|
2025-08-02 04:53:06 +00:00
|
|
|
|
|
2025-08-05 19:22:59 +00:00
|
|
|
|
/* API状态指示器 */
|
|
|
|
|
|
.dtb-api-status {
|
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 4px;
|
|
|
|
|
|
font-size: 0.8em;
|
|
|
|
|
|
margin-left: 8px;
|
2025-08-02 04:53:06 +00:00
|
|
|
|
}
|
2025-08-05 19:22:59 +00:00
|
|
|
|
.dtb-api-status-dot {
|
|
|
|
|
|
width: 6px;
|
|
|
|
|
|
height: 6px;
|
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
background: var(--text-muted);
|
|
|
|
|
|
}
|
|
|
|
|
|
.dtb-api-status-dot.enabled {
|
|
|
|
|
|
background: var(--color-green);
|
|
|
|
|
|
}
|
|
|
|
|
|
.dtb-api-status-dot.disabled {
|
|
|
|
|
|
background: var(--text-muted);
|
|
|
|
|
|
}
|
|
|
|
|
|
.dtb-api-status-dot.error {
|
|
|
|
|
|
background: var(--color-red);
|
|
|
|
|
|
}
|
|
|
|
|
|
.dtb-api-status-dot.loading {
|
|
|
|
|
|
background: var(--interactive-accent);
|
|
|
|
|
|
animation: dtb-pulse 1.5s ease-in-out infinite;
|
|
|
|
|
|
}
|
|
|
|
|
|
@keyframes dtb-pulse {
|
|
|
|
|
|
0%,
|
|
|
|
|
|
100% {
|
|
|
|
|
|
opacity: 1;
|
2025-08-02 05:48:51 +00:00
|
|
|
|
}
|
2025-08-05 19:22:59 +00:00
|
|
|
|
50% {
|
|
|
|
|
|
opacity: 0.3;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* =============================================================================
|
|
|
|
|
|
模态框样式 (Modal Styles)
|
|
|
|
|
|
============================================================================= */
|
|
|
|
|
|
|
2025-08-08 06:35:57 +00:00
|
|
|
|
/* api 模态框容器样式 - 限制宽度并居中 */
|
2025-08-05 19:22:59 +00:00
|
|
|
|
.dtb-api-modal-container {
|
|
|
|
|
|
max-width: 800px;
|
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
|
}
|
|
|
|
|
|
/* 模态框在较小屏幕上的响应式适配 */
|
|
|
|
|
|
@media (max-width: 900px) {
|
|
|
|
|
|
.dtb-api-modal-container {
|
|
|
|
|
|
max-width: 95vw;
|
|
|
|
|
|
padding: 16px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
@media (max-width: 600px) {
|
2025-08-08 06:35:57 +00:00
|
|
|
|
.dtb-api-modal-container {
|
2025-08-05 19:22:59 +00:00
|
|
|
|
max-width: 100vw;
|
|
|
|
|
|
padding: 12px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.dtb-flex-container-end {
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
align-items: stretch;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
/* API模态框特定样式优化 */
|
|
|
|
|
|
.dtb-api-modal-container .dtb-section-container {
|
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
|
padding: 16px;
|
|
|
|
|
|
}
|
2025-08-08 06:35:57 +00:00
|
|
|
|
.dtb-api-modal-container .dtb-field {
|
2025-08-05 19:22:59 +00:00
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
|
}
|
2025-08-08 06:35:57 +00:00
|
|
|
|
.dtb-api-modal-container .dtb-field label {
|
2025-08-05 19:22:59 +00:00
|
|
|
|
display: block;
|
|
|
|
|
|
margin-bottom: 6px;
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
color: var(--text-normal);
|
|
|
|
|
|
}
|
|
|
|
|
|
.dtb-api-modal-container .dtb-input,
|
|
|
|
|
|
.dtb-api-modal-container .dtb-dropdown {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
margin-bottom: 8px;
|
|
|
|
|
|
}
|
|
|
|
|
|
/* 多选容器优化 */
|
2025-08-08 06:35:57 +00:00
|
|
|
|
.dtb-api-modal-container .dtb-multiselect {
|
2025-08-05 19:22:59 +00:00
|
|
|
|
max-height: 200px;
|
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
border: 1px solid var(--background-modifier-border);
|
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
|
padding: 8px;
|
|
|
|
|
|
background-color: var(--background-primary);
|
|
|
|
|
|
}
|
2025-08-08 06:35:57 +00:00
|
|
|
|
.dtb-api-modal-container .dtb-checkbox {
|
2025-08-05 19:22:59 +00:00
|
|
|
|
margin-bottom: 6px;
|
|
|
|
|
|
padding: 4px;
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
transition: background-color 0.15s ease;
|
|
|
|
|
|
}
|
2025-08-08 06:35:57 +00:00
|
|
|
|
.dtb-api-modal-container .dtb-checkbox:hover {
|
2025-08-05 19:22:59 +00:00
|
|
|
|
background-color: var(--background-modifier-hover);
|
|
|
|
|
|
}
|
|
|
|
|
|
/* 列表行样式优化 */
|
|
|
|
|
|
.dtb-api-modal-container .dtb-list-row {
|
|
|
|
|
|
margin-bottom: 8px;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
.dtb-api-modal-container .dtb-list-row .dtb-input {
|
|
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
/* 按钮容器优化 */
|
|
|
|
|
|
.dtb-api-modal-container .dtb-flex-container-end {
|
|
|
|
|
|
margin-top: 24px;
|
|
|
|
|
|
padding-top: 16px;
|
|
|
|
|
|
border-top: 1px solid var(--background-modifier-border);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Section Header 样式 */
|
|
|
|
|
|
.dtb-section-header {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
margin-bottom: 12px;
|
|
|
|
|
|
}
|