mirror of
https://github.com/SilenceLurker/ST-Amily2-Chat-Optimisation.git
synced 2026-06-06 11:15:50 +00:00
Update optimization.css
This commit is contained in:
@@ -1,111 +1,144 @@
|
||||
/* --- Amily2 剧情优化面板统一样式 --- */
|
||||
#amily2_plot_optimization_panel .settings-group {
|
||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
||||
border-radius: 12px;
|
||||
padding: 12px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .amily2-header {
|
||||
#amily2_plot_optimization_panel .settings-group > legend {
|
||||
color: #e0e0e0;
|
||||
font-weight: bold;
|
||||
padding: 0 10px;
|
||||
margin-left: 10px;
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .settings-group > legend > i {
|
||||
margin-right: 8px;
|
||||
color: #9e8aff;
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .sinan-navigation-deck {
|
||||
display: flex;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .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;
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .sinan-nav-item:hover {
|
||||
background-color: rgba(255, 255, 255, 0.05);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .sinan-nav-item.active {
|
||||
color: #9e8aff;
|
||||
border-bottom-color: #9e8aff;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .sinan-nav-item i {
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .sinan-content-wrapper {
|
||||
padding: 10px 0;
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .sinan-tab-pane {
|
||||
display: none;
|
||||
animation: fadeIn 0.5s;
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .sinan-tab-pane.active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .control-block-with-switch {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 0 5px;
|
||||
padding: 10px;
|
||||
background-color: rgba(255, 255, 255, 0.05);
|
||||
border-radius: 8px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .control-block-with-switch label {
|
||||
font-weight: bold;
|
||||
color: #ddd;
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .inline-settings-grid {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr;
|
||||
gap: 8px 12px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .inline-settings-grid label {
|
||||
font-weight: bold;
|
||||
text-align: right;
|
||||
white-space: nowrap;
|
||||
color: #ddd;
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .inline-settings-grid .text_pole,
|
||||
#amily2_plot_optimization_panel .inline-settings-grid input[type="range"],
|
||||
#amily2_plot_optimization_panel .inline-settings-grid .amily2_opt_preset_selector_wrapper {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .additional-features-title {
|
||||
font-size: 1.2em;
|
||||
font-weight: bold;
|
||||
color: #eee;
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .additional-features-title i {
|
||||
margin-right: 8px;
|
||||
color: #7e57c2;
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel hr.header-divider {
|
||||
border: none;
|
||||
border-top: 1px solid rgba(255,255,255,0.1);
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .settings-group {
|
||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
||||
border-radius: 8px;
|
||||
padding: 15px;
|
||||
margin: 0 0 20px 0;
|
||||
#amily2_plot_optimization_panel .prompt-editor-area {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 15px;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .settings-group legend {
|
||||
font-size: 1.1em;
|
||||
font-weight: bold;
|
||||
color: #eee;
|
||||
padding: 0 10px;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .settings-group legend > i {
|
||||
margin-right: 8px;
|
||||
color: #7e57c2;
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .amily2_opt_settings_block,
|
||||
#amily2_plot_optimization_panel .amily2_opt_settings_block_radio {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .amily2_opt_settings_block label,
|
||||
#amily2_plot_optimization_panel .amily2_opt_settings_block_radio > label {
|
||||
#amily2_plot_optimization_panel .prompt-editor-area > label {
|
||||
font-weight: bold;
|
||||
color: #ddd;
|
||||
margin-bottom: 0;
|
||||
margin-bottom: -5px;
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .amily2_opt_settings_block .notes,
|
||||
#amily2_plot_optimization_panel .amily2_opt_settings_block_hint {
|
||||
font-size: 0.8em;
|
||||
color: #aaa;
|
||||
opacity: 0.9;
|
||||
font-style: italic;
|
||||
align-self: flex-start;
|
||||
padding-left: 5px;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .settings-group > .amily2_opt_settings_block:nth-child(2),
|
||||
#amily2_plot_optimization_panel .settings-group > .amily2_opt_settings_block:nth-child(3) {
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
#amily2_plot_optimization_panel .settings-group > .amily2_opt_settings_block:nth-child(2) .notes,
|
||||
#amily2_plot_optimization_panel .settings-group > .amily2_opt_settings_block:nth-child(3) .notes {
|
||||
flex-basis: 50%;
|
||||
text-align: right;
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
|
||||
#amily2_plot_optimization_panel .amily2_opt_preset_selector_wrapper {
|
||||
#amily2_plot_optimization_panel .editor-with-button {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 5px;
|
||||
align-items: center;
|
||||
}
|
||||
#amily2_plot_optimization_panel .amily2_opt_preset_selector_wrapper select {
|
||||
|
||||
#amily2_plot_optimization_panel .editor-with-button textarea {
|
||||
flex-grow: 1;
|
||||
}
|
||||
#amily2_plot_optimization_panel .amily2_opt_preset_selector_wrapper .menu_button {
|
||||
padding: 0 10px;
|
||||
|
||||
#amily2_plot_optimization_panel .amily2_opt_reset_button {
|
||||
padding: 5px 10px;
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .settings-group .settings-group {
|
||||
#amily2_plot_optimization_panel .scrollable-container {
|
||||
border: 1px solid #444;
|
||||
border-radius: 5px;
|
||||
padding: 10px;
|
||||
border-style: dashed;
|
||||
height: 150px;
|
||||
overflow-y: auto;
|
||||
background-color: #222;
|
||||
margin-top: 5px;
|
||||
}
|
||||
#amily2_plot_optimization_panel .settings-group .settings-group .amily2_opt_settings_block {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 15px;
|
||||
|
||||
#amily2_plot_optimization_panel .worldbook-column {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 5px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .amily2_opt_label_with_button_wrapper,
|
||||
@@ -113,35 +146,17 @@
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
#amily2_plot_optimization_panel .amily2_opt_reset_button {
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .toggle-switch {
|
||||
position: relative; display: inline-block; width: 50px; height: 26px; flex-shrink: 0;
|
||||
}
|
||||
#amily2_plot_optimization_panel .toggle-switch input { opacity: 0; width: 0; height: 0; }
|
||||
#amily2_plot_optimization_panel .slider {
|
||||
position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
|
||||
background-color: #333; border-radius: 26px; transition: .4s;
|
||||
}
|
||||
#amily2_plot_optimization_panel .slider:before {
|
||||
position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px;
|
||||
background-color: white; border-radius: 50%; transition: .4s;
|
||||
}
|
||||
#amily2_plot_optimization_panel input:checked + .slider { background-color: #7e57c2; }
|
||||
#amily2_plot_optimization_panel input:checked + .slider:before { transform: translateX(24px); }
|
||||
|
||||
#amily2_plot_optimization_panel .amily2_opt_radio_group {
|
||||
#amily2_plot_optimization_panel .radio-group {
|
||||
display: flex;
|
||||
border: 1px solid #555;
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
}
|
||||
#amily2_plot_optimization_panel .amily2_opt_radio_group input[type="radio"] { display: none; }
|
||||
#amily2_plot_optimization_panel .amily2_opt_radio_group label {
|
||||
#amily2_plot_optimization_panel .radio-group input[type="radio"] { display: none; }
|
||||
#amily2_plot_optimization_panel .radio-group label {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
padding: 8px 10px;
|
||||
@@ -153,69 +168,99 @@
|
||||
margin: 0 !important;
|
||||
font-weight: normal !important;
|
||||
}
|
||||
#amily2_plot_optimization_panel .amily2_opt_radio_group label:first-of-type { border-left: none; }
|
||||
#amily2_plot_optimization_panel .amily2_opt_radio_group input[type="radio"]:checked + label {
|
||||
#amily2_plot_optimization_panel .radio-group label:first-of-type { border-left: none; }
|
||||
#amily2_plot_optimization_panel .radio-group input[type="radio"]:checked + label {
|
||||
background-color: #7e57c2;
|
||||
color: white;
|
||||
font-weight: bold !important;
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .amily2_opt_model_selector_wrapper {
|
||||
display: flex;
|
||||
gap: 5px;
|
||||
}
|
||||
#amily2_plot_optimization_panel .amily2_opt_model_selector_wrapper select {
|
||||
flex-grow: 1;
|
||||
@keyframes fadeIn {
|
||||
from { opacity: 0; }
|
||||
to { opacity: 1; }
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .amily2_opt_preset_selector_wrapper,
|
||||
#amily2_plot_optimization_panel #amily2_opt_worldbook_entry_controls {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 5px;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
#amily2_plot_optimization_panel #amily2_opt_worldbook_entry_count {
|
||||
font-size: 0.9em;
|
||||
color: #ccc;
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .amily2_opt_worldbook_entry_list {
|
||||
max-height: 200px;
|
||||
overflow-y: auto;
|
||||
border: 1px solid #444;
|
||||
padding: 10px;
|
||||
border-radius: 8px;
|
||||
background-color: #1A1A1A;
|
||||
margin-top: 8px;
|
||||
#amily2_plot_optimization_panel .amily2_opt_preset_selector_wrapper > .text_pole {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .amily2_opt_footer {
|
||||
text-align: center;
|
||||
padding-top: 15px;
|
||||
|
||||
#amily2_plot_optimization_panel .jqyh-button-row {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
justify-content: center;
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .jqyh-button-row .menu_button {
|
||||
min-width: 120px;
|
||||
height: 35px;
|
||||
padding: 8px 16px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 6px;
|
||||
border-radius: 20px;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
transition: all 0.3s ease;
|
||||
text-transform: none;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .jqyh-button-row .menu_button.primary {
|
||||
background: linear-gradient(135deg, #4CAF50, #45a049);
|
||||
border: 1px solid #388e3c;
|
||||
color: white;
|
||||
text-shadow: 0 1px 2px rgba(0,0,0,0.2);
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .jqyh-button-row .menu_button.primary:hover {
|
||||
background: linear-gradient(135deg, #5CBF60, #4CAF50);
|
||||
box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .jqyh-button-row .menu_button.secondary {
|
||||
background: linear-gradient(135deg, #2196F3, #1976D2);
|
||||
border: 1px solid #1565C0;
|
||||
color: white;
|
||||
text-shadow: 0 1px 2px rgba(0,0,0,0.2);
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .jqyh-button-row .menu_button.secondary:hover {
|
||||
background: linear-gradient(135deg, #42A5F5, #2196F3);
|
||||
box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .jqyh-button-row .menu_button i {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .unified-prompt-editor {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel .prompt-editor-buttons {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
gap: 10px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
#amily2_plot_optimization_panel .amily2_opt_footer .notes {
|
||||
font-size: 0.8em;
|
||||
color: #aaa;
|
||||
opacity: 0.9;
|
||||
font-style: italic;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
/* Override default .text_pole styles for the multi-select worldbook list */
|
||||
#amily2_plot_optimization_panel #amily2_opt_selected_worldbooks[multiple] {
|
||||
height: auto !important; /* Allow the 'size' attribute to determine the height */
|
||||
padding: 5px;
|
||||
background-color: var(--bg1) !important;
|
||||
border: 1px solid var(--border);
|
||||
-webkit-appearance: none !important; /* Remove default appearance */
|
||||
appearance: none !important;
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel #amily2_opt_selected_worldbooks[multiple] option {
|
||||
padding: 5px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
#amily2_plot_optimization_panel #amily2_opt_selected_worldbooks[multiple] option:checked {
|
||||
background-color: var(--accent);
|
||||
color: var(--text_light);
|
||||
#amily2_plot_optimization_panel .prompt-editor-buttons .menu_button {
|
||||
min-width: 120px;
|
||||
padding: 8px 12px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user