mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-12 09:26:33 +01:00
00fc40408a
* Update engine.js to allow char scpoed regex no ui because i'm not good at it, but works. * add typedef * update * little fix * Rework scoped scripts UI * Add locale attributes * Purge allowance on delete * add d&d for `saved_scoped_scripts` * better code * Save settings on regex scope toggle * Fix reordering logic * Fix scoped setter * Add unique ids for regex scripts * Wording * Reload chat after deleting scripts * Reload chat after toggling scoped regex --------- Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
108 lines
1.9 KiB
CSS
108 lines
1.9 KiB
CSS
.regex_settings .menu_button {
|
|
width: fit-content;
|
|
display: flex;
|
|
gap: 10px;
|
|
flex-direction: row;
|
|
}
|
|
|
|
.regex_settings .checkbox {
|
|
align-items: center;
|
|
}
|
|
|
|
.regex-script-container {
|
|
margin-top: 10px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.regex-script-container:empty::after {
|
|
content: "No scripts found";
|
|
font-size: 0.95em;
|
|
opacity: 0.7;
|
|
display: block;
|
|
text-align: center;
|
|
}
|
|
|
|
#scoped_scripts_block {
|
|
opacity: 1;
|
|
transition: opacity 0.2s ease-in-out;
|
|
}
|
|
|
|
#scoped_scripts_block .move_to_scoped {
|
|
display: none;
|
|
}
|
|
|
|
#global_scripts_block .move_to_global {
|
|
display: none;
|
|
}
|
|
|
|
#scoped_scripts_block:not(:has(#regex_scoped_toggle:checked)) {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.enable_scoped:checked ~ .regex-toggle-on {
|
|
display: block;
|
|
}
|
|
|
|
.enable_scoped:checked ~ .regex-toggle-off {
|
|
display: none;
|
|
}
|
|
|
|
.enable_scoped:not(:checked) ~ .regex-toggle-on {
|
|
display: none;
|
|
}
|
|
|
|
.enable_scoped:not(:checked) ~ .regex-toggle-off {
|
|
display: block;
|
|
}
|
|
|
|
.regex-script-label {
|
|
align-items: center;
|
|
border: 1px solid var(--SmartThemeBorderColor);
|
|
border-radius: 10px;
|
|
padding: 0 5px;
|
|
margin-top: 1px;
|
|
margin-bottom: 1px;
|
|
}
|
|
|
|
.regex-script-label:has(.disable_regex:checked) .regex_script_name {
|
|
text-decoration: line-through;
|
|
filter: grayscale(0.5);
|
|
}
|
|
|
|
input.disable_regex,
|
|
input.enable_scoped {
|
|
display: none !important;
|
|
}
|
|
|
|
.regex-toggle-off {
|
|
cursor: pointer;
|
|
opacity: 0.5;
|
|
filter: grayscale(0.5);
|
|
transition: opacity 0.2s ease-in-out;
|
|
}
|
|
|
|
.regex-toggle-off:hover {
|
|
opacity: 1;
|
|
filter: none;
|
|
}
|
|
|
|
.regex-toggle-on {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.disable_regex:checked ~ .regex-toggle-off {
|
|
display: block;
|
|
}
|
|
|
|
.disable_regex:checked ~ .regex-toggle-on {
|
|
display: none;
|
|
}
|
|
|
|
.disable_regex:not(:checked) ~ .regex-toggle-off {
|
|
display: none;
|
|
}
|
|
|
|
.disable_regex:not(:checked) ~ .regex-toggle-on {
|
|
display: block;
|
|
}
|