mirror of
https://github.com/Wx-2025/ST-Amily2-Chat-Optimisation.git
synced 2026-06-06 19:45:50 +00:00
Add files via upload
This commit is contained in:
194
CharacterWorldBook/cwb_settings.html
Normal file
194
CharacterWorldBook/cwb_settings.html
Normal file
@@ -0,0 +1,194 @@
|
||||
<div class="cwb-settings-container">
|
||||
<div class="cwb-header">
|
||||
<div class="cwb-title">
|
||||
<i class="fa-solid fa-book-atlas"></i> 角色世界书
|
||||
</div>
|
||||
<button id="amily2_back_to_main_from_cwb" class="menu_button secondary small_button interactable">
|
||||
返回主殿 <i class="fas fa-arrow-right"></i>
|
||||
</button>
|
||||
</div>
|
||||
<hr class="header-divider">
|
||||
|
||||
<fieldset class="settings-group master-control-group">
|
||||
<legend><i class="fas fa-power-off"></i> 最高权限</legend>
|
||||
<div class="control-block-with-switch" id="cwb_master_enabled">
|
||||
<label for="cwb_master_enabled-checkbox">CharacterWorldBook 总开关</label>
|
||||
<label class="toggle-switch">
|
||||
<input id="cwb_master_enabled-checkbox" type="checkbox">
|
||||
<span class="slider"></span>
|
||||
</label>
|
||||
</div>
|
||||
<p class="notes" style="text-align: left; margin-top: 5px;">
|
||||
这是最高优先级的总开关。关闭后,CharacterWorldBook的所有功能(包括自动更新、查看器等)都将被禁用。
|
||||
</p>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="settings-group">
|
||||
<legend><i class="fas fa-brain"></i> 中枢决策室</legend>
|
||||
|
||||
<div class="sinan-navigation-deck">
|
||||
<button class="sinan-nav-item active" data-tab="api-settings"><i class="fas fa-cogs"></i> API设置</button>
|
||||
<button class="sinan-nav-item" data-tab="prompt-settings"><i class="fas fa-robot"></i> 指令模板</button>
|
||||
<button class="sinan-nav-item" data-tab="feature-settings"><i class="fas fa-toolbox"></i> 功能设置</button>
|
||||
</div>
|
||||
|
||||
<div class="sinan-content-wrapper">
|
||||
<!-- API Settings Tab -->
|
||||
<div id="cwb-api-settings-tab" class="sinan-tab-pane active">
|
||||
<div class="inline-settings-grid">
|
||||
<label for="cwb-api-mode">API模式</label>
|
||||
<select id="cwb-api-mode" class="text_pole">
|
||||
<option value="openai_test">全兼容模式</option>
|
||||
<option value="sillytavern_preset">预设模式</option>
|
||||
</select>
|
||||
|
||||
<label for="cwb-api-url">API基础URL</label>
|
||||
<input type="text" id="cwb-api-url" class="text_pole" placeholder="例如: http://127.0.0.1:8080">
|
||||
|
||||
<label for="cwb-api-key">API密钥</label>
|
||||
<input type="password" id="cwb-api-key" class="text_pole" placeholder="可选">
|
||||
|
||||
<label for="cwb-api-model">选择模型</label>
|
||||
<div class="cwb-input-with-button">
|
||||
<select id="cwb-api-model" class="text_pole"></select>
|
||||
<button id="cwb-load-models" class="menu_button"><i class="fa-solid fa-cloud-download"></i> 加载</button>
|
||||
</div>
|
||||
|
||||
<label for="cwb-tavern-profile">SillyTavern预设</label>
|
||||
<select id="cwb-tavern-profile" class="text_pole" style="display: none;">
|
||||
<option value="">选择预设</option>
|
||||
</select>
|
||||
</div>
|
||||
<div id="cwb-api-status" class="notes" style="text-align: left; margin-top: 10px;"></div>
|
||||
<div class="editor-buttons-panel" style="margin-top: 15px;">
|
||||
<button id="cwb-clear-config" class="menu_button danger small_button"><i class="fa-solid fa-trash-can"></i> 清除</button>
|
||||
<button id="cwb-save-config" class="menu_button accent small_button"><i class="fa-solid fa-floppy-disk"></i> 保存</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="cwb-prompt-settings-tab" class="sinan-tab-pane">
|
||||
<fieldset class="settings-group" style="border-style: dashed; padding: 8px; margin-bottom: 10px;">
|
||||
<legend><i class="fas fa-scroll"></i> 破限提示</legend>
|
||||
<div class="prompt-editor-area">
|
||||
<textarea id="cwb-break-armor-prompt-textarea" class="text_pole" rows="5"></textarea>
|
||||
<div class="editor-buttons-panel">
|
||||
<button id="cwb-reset-break-armor-prompt" class="menu_button secondary small_button"><i class="fas fa-undo"></i> 默认</button>
|
||||
<button id="cwb-save-break-armor-prompt" class="menu_button accent small_button"><i class="fas fa-save"></i> 保存</button>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="settings-group" style="border-style: dashed; padding: 8px;">
|
||||
<legend><i class="fas fa-tasks"></i> 更新预设</legend>
|
||||
<div class="prompt-editor-area">
|
||||
<textarea id="cwb-char-card-prompt-textarea" class="text_pole" rows="8"></textarea>
|
||||
<div class="editor-buttons-panel">
|
||||
<button id="cwb-reset-char-card-prompt" class="menu_button secondary small_button"><i class="fas fa-undo"></i> 默认</button>
|
||||
<button id="cwb-save-char-card-prompt" class="menu_button accent small_button"><i class="fas fa-save"></i> 保存</button>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<div id="cwb-feature-settings-tab" class="sinan-tab-pane">
|
||||
<fieldset class="settings-group" style="border-style: solid; padding: 15px; margin-bottom: 15px;">
|
||||
<legend><i class="fas fa-toggle-on"></i> 基础功能开关</legend>
|
||||
|
||||
<div class="control-block-with-switch" id="cwb-incremental-update-enabled">
|
||||
<label for="cwb-incremental-update-enabled-checkbox">增量更新模式</label>
|
||||
<label class="toggle-switch">
|
||||
<input id="cwb-incremental-update-enabled-checkbox" type="checkbox">
|
||||
<span class="slider"></span>
|
||||
</label>
|
||||
</div>
|
||||
<p class="notes" style="text-align: left; margin-top: 5px; margin-bottom: 15px;">基于已有世界书内容进行增量更新,而非完全覆盖</p>
|
||||
|
||||
<div class="control-block-with-switch" id="cwb-auto-update-enabled">
|
||||
<label for="cwb-auto-update-enabled-checkbox">自动更新</label>
|
||||
<label class="toggle-switch">
|
||||
<input id="cwb-auto-update-enabled-checkbox" type="checkbox">
|
||||
<span class="slider"></span>
|
||||
</label>
|
||||
</div>
|
||||
<p class="notes" style="text-align: left; margin-top: 5px; margin-bottom: 15px;">达到消息阈值时自动触发AI更新角色卡</p>
|
||||
|
||||
<div class="inline-settings-grid" style="margin-bottom: 15px;">
|
||||
<label for="cwb-auto-update-threshold">更新阈值</label>
|
||||
<div class="cwb-input-with-button">
|
||||
<input type="number" id="cwb-auto-update-threshold" class="text_pole" min="1" max="100" placeholder="消息数">
|
||||
<button id="cwb-save-auto-update-threshold" class="menu_button accent small_button">保存</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-block-with-switch" id="cwb-viewer-enabled">
|
||||
<label for="cwb-viewer-enabled-checkbox">查看器浮窗</label>
|
||||
<label class="toggle-switch">
|
||||
<input id="cwb-viewer-enabled-checkbox" type="checkbox">
|
||||
<span class="slider"></span>
|
||||
</label>
|
||||
</div>
|
||||
<p class="notes" style="text-align: left; margin-top: 5px;">在主界面显示可拖动的角色卡查看按钮</p>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="settings-group" style="border-style: solid; padding: 15px; margin-bottom: 15px;">
|
||||
<legend><i class="fas fa-database"></i> 存储目标</legend>
|
||||
|
||||
<div class="amily2_opt_settings_block_radio">
|
||||
<div class="amily2_opt_radio_group">
|
||||
<input type="radio" id="cwb_worldbook_target_primary" name="cwb_worldbook_target" value="primary" checked>
|
||||
<label for="cwb_worldbook_target_primary">写入主世界书</label>
|
||||
<input type="radio" id="cwb_worldbook_target_custom" name="cwb_worldbook_target" value="custom">
|
||||
<label for="cwb_worldbook_target_custom">自定义世界书</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="cwb_worldbook_select_wrapper" style="display: none; margin-top: 15px;">
|
||||
<div class="cwb-worldbook-selection-container">
|
||||
<div class="cwb-worldbook-column">
|
||||
<div class="amily2_opt_label_with_button_wrapper">
|
||||
<label>选择世界书</label>
|
||||
<button id="cwb_refresh_worldbooks" class="menu_button small_button" title="刷新世界书列表">
|
||||
<i class="fa-solid fa-sync"></i> 刷新
|
||||
</button>
|
||||
</div>
|
||||
<div id="cwb_worldbook_radio_list" class="cwb-scrollable-container">
|
||||
</div>
|
||||
<small class="notes">选择一个世界书作为角色卡写入目标</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="settings-group" style="border-style: solid; padding: 15px; margin-bottom: 15px;">
|
||||
<legend><i class="fas fa-sync-alt"></i> 更新操作</legend>
|
||||
|
||||
<div class="inline-settings-grid" style="margin-bottom: 15px;">
|
||||
<label for="cwb-start-floor">起始楼层</label>
|
||||
<input type="number" id="cwb-start-floor" class="text_pole" min="1" value="1">
|
||||
|
||||
<label for="cwb-end-floor">结束楼层</label>
|
||||
<input type="number" id="cwb-end-floor" class="text_pole" min="1" value="1">
|
||||
</div>
|
||||
|
||||
<div class="update-buttons-panel" style="margin-bottom: 15px;">
|
||||
<button id="cwb-floor-range-update" class="menu_button">
|
||||
<i class="fa-solid fa-layer-group"></i> 楼层范围更新
|
||||
</button>
|
||||
<button id="cwb-batch-update-card" class="menu_button accent">
|
||||
<i class="fa-solid fa-bolt"></i> 全量批量更新
|
||||
</button>
|
||||
<button id="cwb-manual-update-card" class="menu_button secondary">
|
||||
<i class="fa-solid fa-pencil"></i> 快速更新 (最新阈值条)
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div style="margin-top: 15px;">
|
||||
<div id="cwb-status-message" class="notes"></div>
|
||||
<div id="cwb-batch-progress" class="notes" style="display: none;"></div>
|
||||
<div id="cwb-card-update-status-display" class="notes"></div>
|
||||
<div id="cwb-total-messages-display" class="notes"></div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
560
CharacterWorldBook/cwb_style.css
Normal file
560
CharacterWorldBook/cwb_style.css
Normal file
@@ -0,0 +1,560 @@
|
||||
|
||||
:root {
|
||||
--cwb-cyber-bg: #0d0c1d;
|
||||
--cwb-cyber-primary: #7f5af0;
|
||||
--cwb-cyber-secondary: #2cb67d;
|
||||
--cwb-cyber-text: #ffffff;
|
||||
--cwb-cyber-border: rgba(127, 90, 240, 0.5);
|
||||
--cwb-cyber-shadow: 0 0 15px rgba(127, 90, 240, 0.7);
|
||||
--cwb-cyber-danger: #ff3d71;
|
||||
--cwb-cyber-font: 'Roboto', 'Segoe UI', sans-serif;
|
||||
}
|
||||
|
||||
.cwb-settings-container {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
padding: 8px 5px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.cwb-settings-container .cwb-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.cwb-settings-container .cwb-title {
|
||||
font-size: 1.1em;
|
||||
font-weight: bold;
|
||||
color: #e0e0e0;
|
||||
}
|
||||
.cwb-settings-container .cwb-title i {
|
||||
margin-right: 8px;
|
||||
color: #9e8aff;
|
||||
}
|
||||
.cwb-settings-container .header-divider {
|
||||
margin-top: 5px;
|
||||
margin-bottom: 10px;
|
||||
border-color: rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
.cwb-settings-container .settings-group {
|
||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
||||
border-radius: 12px;
|
||||
padding: 12px;
|
||||
margin: 0;
|
||||
}
|
||||
.cwb-settings-container .settings-group > legend {
|
||||
color: #e0e0e0;
|
||||
font-weight: bold;
|
||||
padding: 0 10px;
|
||||
margin-left: 10px;
|
||||
font-size: 1.1em;
|
||||
}
|
||||
.cwb-settings-container .settings-group > legend > i {
|
||||
margin-right: 8px;
|
||||
color: #9e8aff;
|
||||
}
|
||||
.cwb-settings-container .sinan-navigation-deck {
|
||||
display: flex;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
.cwb-settings-container .sinan-nav-item {
|
||||
padding: 10px 20px;
|
||||
cursor: pointer;
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
color: #ccc;
|
||||
font-size: 1em;
|
||||
border-bottom: 3px solid transparent;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
.cwb-settings-container .sinan-nav-item:hover {
|
||||
background-color: rgba(255, 255, 255, 0.05);
|
||||
color: #fff;
|
||||
}
|
||||
.cwb-settings-container .sinan-nav-item.active {
|
||||
color: #9e8aff;
|
||||
border-bottom-color: #9e8aff;
|
||||
font-weight: bold;
|
||||
}
|
||||
.cwb-settings-container .sinan-nav-item i {
|
||||
margin-right: 8px;
|
||||
}
|
||||
.cwb-settings-container .sinan-content-wrapper {
|
||||
padding: 10px;
|
||||
}
|
||||
.cwb-settings-container .sinan-tab-pane {
|
||||
display: none;
|
||||
animation: cwb-fadeIn 0.5s;
|
||||
}
|
||||
.cwb-settings-container .sinan-tab-pane.active {
|
||||
display: block;
|
||||
}
|
||||
@keyframes cwb-fadeIn {
|
||||
from { opacity: 0; }
|
||||
to { opacity: 1; }
|
||||
}
|
||||
.cwb-settings-container .inline-settings-grid {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr;
|
||||
gap: 8px 12px;
|
||||
align-items: center;
|
||||
}
|
||||
.cwb-settings-container .inline-settings-grid label {
|
||||
font-weight: bold;
|
||||
text-align: right;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.cwb-settings-container .cwb-input-with-button {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
.cwb-settings-container .cwb-input-with-button .text_pole {
|
||||
flex-grow: 1;
|
||||
}
|
||||
.cwb-settings-container .prompt-editor-area {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
.cwb-settings-container .editor-buttons-panel {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 8px;
|
||||
}
|
||||
.cwb-settings-container .update-buttons-panel {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 10px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.cwb-settings-container .update-buttons-panel .menu_button {
|
||||
flex: 1;
|
||||
min-width: 140px;
|
||||
max-width: 200px;
|
||||
}
|
||||
.cwb-settings-container .quick-update-wrapper {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin-top: 10px;
|
||||
}
|
||||
.cwb-settings-container .control-block-with-switch {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 10px;
|
||||
background-color: rgba(255, 255, 255, 0.05);
|
||||
border-radius: 8px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.cwb-settings-container .control-block-with-switch label {
|
||||
font-weight: bold;
|
||||
color: #ddd;
|
||||
}
|
||||
.cwb-settings-container .toggle-switch {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 50px;
|
||||
height: 28px;
|
||||
}
|
||||
.cwb-settings-container .toggle-switch input {
|
||||
opacity: 0;
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
.cwb-settings-container .slider {
|
||||
position: absolute;
|
||||
cursor: pointer;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-color: #555;
|
||||
transition: .4s;
|
||||
border-radius: 28px;
|
||||
}
|
||||
.cwb-settings-container .slider:before {
|
||||
position: absolute;
|
||||
content: "";
|
||||
height: 20px;
|
||||
width: 20px;
|
||||
left: 4px;
|
||||
bottom: 4px;
|
||||
background-color: white;
|
||||
transition: .4s;
|
||||
border-radius: 50%;
|
||||
}
|
||||
.cwb-settings-container input:checked + .slider {
|
||||
background-color: #8a72ff;
|
||||
}
|
||||
.cwb-settings-container input:focus + .slider {
|
||||
box-shadow: 0 0 1px #8a72ff;
|
||||
}
|
||||
.cwb-settings-container input:checked + .slider:before {
|
||||
transform: translateX(22px);
|
||||
}
|
||||
.cwb-settings-container .notes {
|
||||
font-size: 0.9em;
|
||||
color: #aaa;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
/* --- 世界书选择列表容器样式 --- */
|
||||
.cwb-scrollable-container {
|
||||
max-height: 250px;
|
||||
overflow-y: auto;
|
||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
||||
border-radius: 6px;
|
||||
padding: 8px;
|
||||
background-color: rgba(255, 255, 255, 0.02);
|
||||
}
|
||||
.cwb-scrollable-container::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
}
|
||||
.cwb-scrollable-container::-webkit-scrollbar-track {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
border-radius: 4px;
|
||||
}
|
||||
.cwb-scrollable-container::-webkit-scrollbar-thumb {
|
||||
background: rgba(158, 138, 255, 0.5);
|
||||
border-radius: 4px;
|
||||
}
|
||||
.cwb-scrollable-container::-webkit-scrollbar-thumb:hover {
|
||||
background: rgba(158, 138, 255, 0.8);
|
||||
}
|
||||
|
||||
/* --- Floating Viewer Button (Cyberpunk Theme) --- */
|
||||
#cwb-viewer-button {
|
||||
position: fixed;
|
||||
z-index: 1001;
|
||||
width: 45px;
|
||||
height: 45px;
|
||||
background-color: var(--cwb-cyber-primary);
|
||||
color: var(--cwb-cyber-text);
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 20px;
|
||||
cursor: grab;
|
||||
box-shadow: var(--cwb-cyber-shadow), 0 2px 10px rgba(0,0,0,0.5);
|
||||
transition: all 0.3s ease;
|
||||
border: 2px solid var(--cwb-cyber-border);
|
||||
user-select: none;
|
||||
}
|
||||
#cwb-viewer-button:hover {
|
||||
transform: scale(1.1);
|
||||
box-shadow: 0 0 25px rgba(127, 90, 240, 1);
|
||||
}
|
||||
#cwb-viewer-button:active {
|
||||
cursor: grabbing;
|
||||
}
|
||||
|
||||
.cwb-cyber-popup {
|
||||
position: fixed;
|
||||
z-index: 2000;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
width: 90vw;
|
||||
max-width: 1200px;
|
||||
height: 85vh;
|
||||
background: var(--cwb-cyber-bg);
|
||||
border: 2px solid var(--cwb-cyber-primary);
|
||||
box-shadow: var(--cwb-cyber-shadow);
|
||||
color: var(--cwb-cyber-text);
|
||||
font-family: var(--cwb-cyber-font);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
backdrop-filter: blur(5px);
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.cwb-cyber-popup__header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 10px 15px;
|
||||
background: rgba(0,0,0,0.3);
|
||||
border-bottom: 1px solid var(--cwb-cyber-border);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.cwb-cyber-popup__title {
|
||||
font-size: 1.2em;
|
||||
font-weight: bold;
|
||||
text-shadow: 0 0 5px var(--cwb-cyber-primary);
|
||||
margin: 0;
|
||||
}
|
||||
.cwb-cyber-popup__actions {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
}
|
||||
.cwb-viewer-popup-close-button {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--cwb-cyber-text);
|
||||
font-size: 24px;
|
||||
cursor: pointer;
|
||||
padding: 0 10px;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
.cwb-viewer-popup-close-button:hover {
|
||||
color: var(--cwb-cyber-danger);
|
||||
}
|
||||
|
||||
.cwb-cyber-popup__main-content {
|
||||
display: flex;
|
||||
flex-grow: 1;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.cwb-cyber-tabs {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 0;
|
||||
width: 200px;
|
||||
background: rgba(0,0,0,0.2);
|
||||
border-right: 1px solid var(--cwb-cyber-border);
|
||||
overflow-y: auto;
|
||||
padding: 5px;
|
||||
}
|
||||
.cwb-cyber-tab {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 5px;
|
||||
border-radius: 4px;
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
.cwb-cyber-tab.active {
|
||||
background-color: rgba(127, 90, 240, 0.3);
|
||||
}
|
||||
.cwb-cyber-tab:hover {
|
||||
background-color: rgba(127, 90, 240, 0.2);
|
||||
}
|
||||
.cwb-cyber-tab__button {
|
||||
flex-grow: 1;
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--cwb-cyber-text);
|
||||
padding: 10px;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.cwb-cyber-tab__delete {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--cwb-cyber-text);
|
||||
padding: 0 10px;
|
||||
cursor: pointer;
|
||||
opacity: 0.5;
|
||||
transition: opacity 0.2s, color 0.2s;
|
||||
}
|
||||
.cwb-cyber-tab__delete:hover {
|
||||
opacity: 1;
|
||||
color: var(--cwb-cyber-danger);
|
||||
}
|
||||
/* --- Content Body --- */
|
||||
.cwb-cyber-popup__body {
|
||||
flex-grow: 1;
|
||||
padding: 15px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
.cwb-cyber-popup__body--empty {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
font-size: 1.1em;
|
||||
color: rgba(255,255,255,0.7);
|
||||
}
|
||||
.cwb-cyber-content-pane {
|
||||
display: none;
|
||||
}
|
||||
.cwb-cyber-content-pane.active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.cwb-cyber-card {
|
||||
background: rgba(0,0,0,0.2);
|
||||
border: 1px solid var(--cwb-cyber-border);
|
||||
border-radius: 6px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
.cwb-cyber-card__title {
|
||||
padding: 8px 12px;
|
||||
margin: 0;
|
||||
font-size: 1em;
|
||||
background: rgba(127, 90, 240, 0.1);
|
||||
border-bottom: 1px solid var(--cwb-cyber-border);
|
||||
text-shadow: 0 0 3px var(--cwb-cyber-primary);
|
||||
}
|
||||
.cwb-cyber-card__content {
|
||||
padding: 12px;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||
gap: 10px;
|
||||
}
|
||||
.cwb-cyber-card--nested {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.cwb-cyber-field {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.cwb-cyber-field__label {
|
||||
font-size: 0.8em;
|
||||
margin-bottom: 4px;
|
||||
color: rgba(255,255,255,0.7);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.cwb-cyber-field__input {
|
||||
background: rgba(0,0,0,0.4);
|
||||
border: 1px solid var(--cwb-cyber-border);
|
||||
border-radius: 4px;
|
||||
color: var(--cwb-cyber-text);
|
||||
padding: 8px;
|
||||
font-family: inherit;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
transition: border-color 0.2s, box-shadow 0.2s;
|
||||
}
|
||||
.cwb-cyber-field__input:focus {
|
||||
outline: none;
|
||||
border-color: var(--cwb-cyber-primary);
|
||||
box-shadow: 0 0 5px var(--cwb-cyber-primary);
|
||||
}
|
||||
|
||||
.cwb-cyber-button {
|
||||
background: rgba(127, 90, 240, 0.2);
|
||||
border: 1px solid var(--cwb-cyber-primary);
|
||||
color: var(--cwb-cyber-text);
|
||||
padding: 8px 12px;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
font-family: inherit;
|
||||
}
|
||||
.cwb-cyber-button:hover {
|
||||
background: var(--cwb-cyber-primary);
|
||||
box-shadow: var(--cwb-cyber-shadow);
|
||||
}
|
||||
.cwb-cyber-button:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
.cwb-cyber-button--danger {
|
||||
background: rgba(255, 61, 113, 0.2);
|
||||
border-color: var(--cwb-cyber-danger);
|
||||
}
|
||||
.cwb-cyber-button--danger:hover {
|
||||
background: var(--cwb-cyber-danger);
|
||||
box-shadow: 0 0 15px var(--cwb-cyber-danger);
|
||||
}
|
||||
.cwb-cyber-button--primary {
|
||||
background: var(--cwb-cyber-secondary);
|
||||
border-color: var(--cwb-cyber-secondary);
|
||||
}
|
||||
.cwb-cyber-button--primary:hover {
|
||||
box-shadow: 0 0 15px var(--cwb-cyber-secondary);
|
||||
}
|
||||
.cwb-cyber-content-pane__footer {
|
||||
margin-top: 20px;
|
||||
text-align: right;
|
||||
}
|
||||
@media (max-width: 768px) {
|
||||
.cwb-cyber-popup {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
top: 0;
|
||||
left: 0;
|
||||
transform: none;
|
||||
border-radius: 0;
|
||||
}
|
||||
.cwb-cyber-popup__main-content {
|
||||
flex-direction: column;
|
||||
}
|
||||
.cwb-cyber-tabs {
|
||||
flex-direction: row;
|
||||
width: 100%;
|
||||
border-right: none;
|
||||
border-bottom: 1px solid var(--cwb-cyber-border);
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
}
|
||||
.cwb-cyber-tab {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.cwb-cyber-card__content {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
.cwb-worldbook-selection-container {
|
||||
display: flex;
|
||||
gap: 15px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.cwb-worldbook-column {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.cwb-scrollable-container .worldbook-radio-item {
|
||||
display: block;
|
||||
margin-bottom: 8px;
|
||||
padding: 5px;
|
||||
border-radius: 4px;
|
||||
background-color: rgba(255, 255, 255, 0.02);
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
|
||||
.cwb-scrollable-container .worldbook-radio-item:hover {
|
||||
background-color: rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
|
||||
.cwb-scrollable-container .worldbook-radio-item input[type="radio"] {
|
||||
margin-right: 8px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.cwb-scrollable-container .worldbook-radio-item label {
|
||||
cursor: pointer;
|
||||
font-size: 0.9em;
|
||||
color: #ddd;
|
||||
vertical-align: middle;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.cwb-scrollable-container .checkbox-item {
|
||||
display: block;
|
||||
margin-bottom: 8px;
|
||||
padding: 5px;
|
||||
border-radius: 4px;
|
||||
background-color: rgba(255, 255, 255, 0.02);
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
|
||||
.cwb-scrollable-container .checkbox-item:hover {
|
||||
background-color: rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
|
||||
.cwb-scrollable-container .checkbox-item input[type="checkbox"] {
|
||||
margin-right: 8px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.cwb-scrollable-container .checkbox-item label {
|
||||
cursor: pointer;
|
||||
font-size: 0.9em;
|
||||
color: #ddd;
|
||||
vertical-align: middle;
|
||||
display: inline;
|
||||
}
|
||||
Reference in New Issue
Block a user