Add common togglable class for coloring buttons

59928d37ffdd82b512010c034d4d43e73d1d8bb1

Cohee <18619528+Cohee1207@users.noreply.github.com>

2 files changed, +5 -7Showing whitespace changes
public/index.html+3 -3
@@ -1628,7 +1628,7 @@
16281628 </div>
16291629 <label id="send_banned_tokens_label" for="send_banned_tokens_textgenerationwebui" class="checkbox_label">
16301630 <input id="send_banned_tokens_textgenerationwebui" type="checkbox" style="display:none;" />
16311631 <small><i class="fa-solid fa-power-off menu_button togglable margin0"></i></small>
16321632 </label>
16331633 </div>
16341634 <div id="banned_tokens_controls_ooba">
@@ -3534,7 +3534,7 @@
35343534 </label>
35353535 <label id="instruct_enabled_label"for="instruct_enabled" class="checkbox_label flex1" title="Enable Instruct Mode" data-i18n="[title]instruct_enabled">
35363536 <input id="instruct_enabled" type="checkbox" style="display:none;" />
35373537 <small><i class="fa-solid fa-power-off menu_button togglable margin0"></i></small>
35383538 </label>
35393539 </div>
35403540 </h4>
@@ -3712,7 +3712,7 @@
37123712 <div class="flex-container">
37133713 <label id="sysprompt_enabled_label" for="sysprompt_enabled" class="checkbox_label flex1" title="Enable System Prompt" data-i18n="[title]sysprompt_enabled">
37143714 <input id="sysprompt_enabled" type="checkbox" style="display:none;" />
37153715 <small><i class="fa-solid fa-power-off menu_button togglable margin0"></i></small>
37163716 </label>
37173717 </div>
37183718 </h4>
public/style.css+2 -4
@@ -2879,10 +2879,8 @@ select option:not(:checked) {
28792879 color: var(--active) !important;
28802880}
28812881
28822882#instruct_enabled_label .menu_button.togglable:not(.toggleEnabled), {
2883-#sysprompt_enabled_label .menu_button:not(.toggleEnabled),
2883+ color: red;
2884-#send_banned_tokens_label .menu_button:not(.toggleEnabled) {
2885- color: Red;
28862884}
28872885
28882886.displayBlock {